Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jun 2012 19:11:37 +0000
From:      "Bjoern A. Zeeb" <bzeeb-lists@lists.zabbadoz.net>
To:        darrenr@freebsd.org
Cc:        freebsd-net@freebsd.org
Subject:   Re: bin/102701 - ifconfig xx0 inet6 delete always fails
Message-ID:  <57EDF758-FF3F-4BA5-B44E-398846B92925@lists.zabbadoz.net>
In-Reply-To: <4FCA36F6.8040308@freebsd.org>
References:  <4FCA36F6.8040308@freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 2. Jun 2012, at 15:53 , Darren Reed wrote:

> Is there any reason that this patch hasn't been applied
> to -current? I've just run into this and I can't believe
> that it still exists, given that it falls into the "low
> hanging fruit" category. I'll note that if it wasn't for
> subversion, I'd be doing a commit rather than an email.

     ifconfig [-L] [-k] [-m] [-n] interface [create] address_family =
[address
              [dest_address]] [parameters]
...


     The following parameters may be set with ifconfig:
...
     -alias  Remove the network address specified.  This would be used =
if you
             incorrectly specified an alias, or it was no longer needed. =
 If
             you have incorrectly set an NS address having the side =
effect of
             specifying the host portion, removing all NS addresses will =
allow
             you to respecify the host portion.
...
     delete  Another name for the -alias parameter.


Parameters go last as clearly stated in the beginning of the man page =
and
that works well:

root@lion3:/home/test # ifconfig lo0 inet6 2001:db8:ffff::ffff/128 alias
root@lion3:/home/test # ifconfig lo0 inet6 2001:db8:ffff::ffff/128 =
delete
root@lion3:/home/test #=20


The fact that for inet you could give it in the beginning and other =
minor
things leniently allowed have caused a lot of trouble the last years.
We try to stay more strict even if there's no real grammar, even if it
wasn't for SVN.

/bz

--=20
Bjoern A. Zeeb                                 You have to have visions!
   It does not matter how good you are. It matters what good you do!




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?57EDF758-FF3F-4BA5-B44E-398846B92925>