On Mon, Jun 30, 2014 at 07:31:45PM +0200, Gregor Best wrote:
> Hi people,
>
> the attached patch fixes two minor issues with the ifconfig(8) manpage.
>
> The first part makes the operation of the `delete' option without an
> argument a bit more obvious.
>
> The second is a simple fix for the range of the `priority' option.
>
> --
> Gregor Best
i've just committed a fix based on your diff. i had to tweak the bit
about "delete", since henning pointed out that this works:
ifconfig if inet6 delete
my fix below. it was a bit of a pain to work, and i tried to do it
briefly rather than labouring the point. hope it suits.
jmc
Index: ifconfig.8
===================================================================
RCS file: /cvs/src/sbin/ifconfig/ifconfig.8,v
retrieving revision 1.242
diff -u -r1.242 ifconfig.8
--- ifconfig.8 23 Jun 2014 18:55:29 -0000 1.242
+++ ifconfig.8 2 Jul 2014 05:51:45 -0000
@@ -183,8 +183,9 @@
.It Fl debug
Disable driver-dependent debugging code.
.It Cm delete
-Remove the specified network address,
-including any netmask or destination address configured with this address.
+Remove the default inet address associated with the interface,
+including any netmask or destination address configured with it.
+An address and address family can be given to make the deletion more specific.
.It Cm description Ar value
Specify a description of the interface.
This can be used to label interfaces in situations where they may
@@ -403,7 +404,7 @@
This will influence the default routing priority of new static routes added to
the kernel.
.Ar n
-is in the range of 0 to 16 with smaller numbers being better.
+is in the range of 0 to 15 with smaller numbers being better.
.It Cm rdomain Ar rdomainid
Attach the interface to the routing domain with the specified
.Ar rdomainid .