summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2016-11-21 08:28:00 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2016-11-21 08:28:00 +0000
commit7445ed909173171dab6cd28f67239171bd6a21e8 (patch)
treea65b36bb93a9712f4660fc1205549548db0cb69d
parent1b3d034976cd7226041228076082d1c75d07c0aa (diff)
bridge(4) does not distinguish between routing/forwarding ports, so
make "addlocal" an alias to "add" on bridge. addlocal is handled differently on switch(4). OK yasuoka@
-rw-r--r--sys/net/if_bridge.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_bridge.c b/sys/net/if_bridge.c
index e74be534663..af5b7b2e779 100644
--- a/sys/net/if_bridge.c
+++ b/sys/net/if_bridge.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_bridge.c,v 1.288 2016/11/14 03:51:53 dlg Exp $ */
+/* $OpenBSD: if_bridge.c,v 1.289 2016/11/21 08:27:59 reyk Exp $ */
/*
* Copyright (c) 1999, 2000 Jason L. Wright (jason@thought.net)
@@ -270,6 +270,8 @@ bridge_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
s = splnet();
switch (cmd) {
case SIOCBRDGADD:
+ /* bridge(4) does not distinguish between routing/forwarding ports */
+ case SIOCBRDGADDL:
if ((error = suser(curproc, 0)) != 0)
break;