I noticed route treats the flags -iface and -interface as synonyms.
Almost synonyms.
This little diff makes monitor accept -interface as the other commands
do. It also makes the manual consistent such that only -iface is used
throughout it.
Index: src/sbin/route/route.8
===================================================================
RCS file: /cvs/src/sbin/route/route.8,v
retrieving revision 1.66
diff -u -p -r1.66 route.8
--- src/sbin/route/route.8 21 Sep 2010 14:46:40 -0000 1.66
+++ src/sbin/route/route.8 24 Jan 2011 03:29:47 -0000
@@ -271,7 +271,7 @@ or alternately
If the destination is directly reachable
via an interface requiring
no intermediary system to act as a gateway, the
-.Fl interface
+.Fl iface
modifier should be specified;
the gateway given is the address of this host on the common network,
indicating the interface to be used for transmission.
Index: src/sbin/route/route.c
===================================================================
RCS file: /cvs/src/sbin/route/route.c,v
retrieving revision 1.152
diff -u -p -r1.152 route.c
--- src/sbin/route/route.c 25 Oct 2010 19:39:55 -0000 1.152
+++ src/sbin/route/route.c 24 Jan 2011 03:29:47 -0000
@@ -1035,6 +1035,7 @@ monitor(int argc, char *argv[])
af = AF_INET6;
break;
case K_IFACE:
+ case K_INTERFACE:
filter = ROUTE_FILTER(RTM_IFINFO) |
ROUTE_FILTER(RTM_IFANNOUNCE);
break;