> $ sudo ifconfig bridge0 delete athn0
> ifconfig: athn0: bad value
> $ sudo ifconfig bridge0 del athn0
> $
> 
> Uuhm?

This is an error in the manual page.

It came about due to the merge of brconfig(8) into ifconfig(8).  When
brconfig was a seperate program either "delete <if>" or "del <if>"
would do the same thing.

However in ifconfig, "delete (noargs)" has a different meaning: delete
the first IP address on the interface.  Hence, the first commandline
you entered is parsed as two commands: delete (with no argument), and
athn0.  athn0 is not a good command...

In the new world order where they are merged, the right command to issue
regarding the bridge is simply "del <if>".

Index: ifconfig.8
===================================================================
RCS file: /cvs/src/sbin/ifconfig/ifconfig.8,v
retrieving revision 1.227
diff -u -p -u -r1.227 ifconfig.8
--- ifconfig.8  18 Mar 2012 23:37:08 -0000      1.227
+++ ifconfig.8  31 May 2012 17:29:45 -0000
@@ -517,18 +517,15 @@ bridge member interfaces.
 Allow non-IPv4, IPv6, ARP, or Reverse ARP packets through
 .Ar interface .
 .It Cm del Ar interface
-Alias for
-.Cm delete .
-.It Cm deladdr Ar address
-Delete
-.Ar address
-from the cache.
-.It Cm delete Ar interface
 Remove
 .Ar interface
 from the bridge.
 Promiscuous mode is turned off for the interface when it is
 removed from the bridge.
+.It Cm deladdr Ar address
+Delete
+.Ar address
+from the cache.
 .It Cm delspan Ar interface
 Delete
 .Ar interface

Reply via email to