summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-10-04 23:17:28 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2000-10-04 23:17:28 +0000
commit23f878d0931274fc24aa0e208cf2ee73845ddbca (patch)
tree14b4de35f05eeb8c737345b7f9b6cd405bd3561d /sys/net
parentc008e1ef8e468ba8f9d63a4eac7f7964ba33a208 (diff)
make sure we have root priv on SIOCSIFPHY*. from thorpej@netbsd
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/if.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c
index c7ff82c5043..a9a2a1abe89 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.35 2000/06/20 06:49:04 art Exp $ */
+/* $OpenBSD: if.c,v 1.36 2000/10/04 23:17:27 itojun Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -100,6 +100,7 @@
#include <netinet/in.h>
#endif
#include <netinet6/in6_ifattach.h>
+#include <netinet6/in6_var.h>
#endif
#ifdef IPFILTER
@@ -786,6 +787,11 @@ ifioctl(so, cmd, data, p)
break;
}
+ case SIOCSIFPHYADDR:
+ case SIOCDIFPHYADDR:
+#ifdef INET6
+ case SIOCSIFPHYADDR_IN6:
+#endif
case SIOCADDMULTI:
case SIOCDELMULTI:
case SIOCSIFMEDIA: