summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2011-07-02 22:00:54 +0000
committerclaudio <claudio@openbsd.org>2011-07-02 22:00:54 +0000
commit0b5cc60f390156221895d994020f24b3453ac84f (patch)
treeccc52cacb572187de44e4024759e074e816e8add
parentAllow the initial context on prompts to be set with the new -I option to (diff)
downloadwireguard-openbsd-0b5cc60f390156221895d994020f24b3453ac84f.tar.xz
wireguard-openbsd-0b5cc60f390156221895d994020f24b3453ac84f.zip
-interface is an alias of -iface so make sure route(8) accepts both
flags in the monitor case. Brought up on the mailing list some long time ago.
-rw-r--r--sbin/route/route.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/route/route.c b/sbin/route/route.c
index eb427e3beeb..701e31306b0 100644
--- a/sbin/route/route.c
+++ b/sbin/route/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.153 2011/04/25 11:14:37 sthen Exp $ */
+/* $OpenBSD: route.c,v 1.154 2011/07/02 22:00:54 claudio Exp $ */
/* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */
/*
@@ -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;