public inbox for netdev@vger.kernel.org 
 help / color / mirror / Atom feed
From: Simon Horman <simon.horman@netronome•com>
To: Joe Harvell <joe.harvell@tekcomms•com>
Cc: netdev@vger•kernel.org, Stephen Hemminger <shemming@brocade•com>,
	Vadim Kochan <vadim4j@gmail•com>
Subject: Re: [PATCH] iproute2: enhance addr label validation
Date: Wed, 25 Mar 2015 09:23:11 +0900	[thread overview]
Message-ID: <20150325002309.GF23124@vergenet.net> (raw)
In-Reply-To: <55101D07.6090301@tekcomms.com>

Hi Joe,

On Mon, Mar 23, 2015 at 09:02:47AM -0500, Joe Harvell wrote:
> >Hi Joe,
> >
> >On Sat, Mar 21, 2015 at 03:14:53PM -0500, Joe Harvell wrote:
> >>The ip addr command today rejects address labels that would break
> >>ifconfig.  However, it allows some labels which still break it. Enhance
> >>enforcement to reject all known incompatible labels, and allow the
> >>existing -force option to allow someone to use a label even if it is not
> >>ifconfig compatible
> >I am concerned this will break existing users who are relying on setting
> >labels that would now be rejected without using -force.
> >
> [snip]
> 
> Simon,
> 
> Good point.  I propose the following:
> 
> When a label is specified without -force, and that label begins with the
> interface name but is followed by something other than a colon, accept
> the label but emit a warning message indicating this label is
> incompatible with ifconfig and that later versions of the 'ip address'
> command may reject it.  This message can also indicate that -force can be
> specified to explicitly indicate a label that is non ifconfig compatible
> is desired.
> 
> At some point in the future, the behavior could then be changed to reject
> such labels.
> 
> What do you think?

That sounds entirely reasonable to me.

  parent reply	other threads:[~2015-03-25  0:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-21 20:14 [PATCH] iproute2: enhance addr label validation Joe Harvell
2015-03-23  1:15 ` Simon Horman
2015-03-23 14:02   ` Joe Harvell
2015-03-23 15:43     ` Joe Harvell
2015-03-25  0:22       ` Simon Horman
2015-03-25  0:23     ` Simon Horman [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-03-21 20:00 Joe Harvell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150325002309.GF23124@vergenet.net \
    --to=simon.horman@netronome$(echo .)com \
    --cc=joe.harvell@tekcomms$(echo .)com \
    --cc=netdev@vger$(echo .)kernel.org \
    --cc=shemming@brocade$(echo .)com \
    --cc=vadim4j@gmail$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox