diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-11-13 01:36:28 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2019-11-13 01:36:28 +0000 |
commit | 12226c84215b21db762418b236e3f1afbceae768 (patch) | |
tree | 0fb4db174f26ed884acafd212e2d25f122f31add /sys/net | |
parent | fe98cab90b63e1f3c014127f0ef868774925c0dc (diff) |
unbreak ramdisks
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/if.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index 929ea5c0d82..c0c2657d9ab 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.596 2019/11/12 23:27:15 dlg Exp $ */ +/* $OpenBSD: if.c,v 1.597 2019/11/13 01:36:27 deraadt Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -2257,6 +2257,7 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p) case SIOCSPWE3FAT: case SIOCSPWE3NEIGHBOR: case SIOCDPWE3NEIGHBOR: +#if NBRIDGE > 0 case SIOCBRDGADD: case SIOCBRDGDEL: case SIOCBRDGSIFFLGS: @@ -2282,6 +2283,7 @@ ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p) case SIOCSWGDPID: case SIOCSWSPORTNO: case SIOCSWGMAXFLOW: +#endif if ((error = suser(p)) != 0) break; /* FALLTHROUGH */ |