"ifconfig -vlandev" syntax

Ragnar Lonn raglon at packetfront.com
Thu Sep 29 01:30:08 PDT 2005


Yar Tikhiy wrote:

>On Sun, Sep 25, 2005 at 02:37:41PM -0700, Brooks Davis wrote:
>  
>
>>On Thu, Sep 22, 2005 at 02:41:05PM +0400, Yar Tikhiy wrote:
>>    
>>
>>>As our ifconfig(8) is growing more options for special interface
>>>types, inconsistencies sneak into their syntax.  In particular,
>>>-vlandev takes a useless argument (vlan(4) cannot attach to more
>>>than one parent anyway) while, e.g., -carpdev doesn't need one.
>>>Personally, I like the latter since having to type unneeded words
>>>on the command line annoys me.  Do you think that making -vlandev
>>>need no arguments in CURRENT would break many existing things?
>>>      
>>>
>>I agree the argument is useless.  Unfortunatly, it's going to be hard to
>>deprecate the old syntax so we may need to keep it around.
>>    
>>
>
>Alas, there doesn't seem to exist an easy way to support both
>syntaxes in the ifconfig(8) parameter parser.  Perhaps we can
>  
>

You could always introduce a command-line switch that enabled the new 
syntax ;)

  /Ragnar



More information about the freebsd-current mailing list