diff options
| author | 1997-07-24 22:59:29 +0000 | |
|---|---|---|
| committer | 1997-07-24 22:59:29 +0000 | |
| commit | b1b24c71ed432b1046304ca8a929ed3be9afdbfd (patch) | |
| tree | c4488d2d16dc58c54ebb36443141b51a4c8a3364 /sys/net/if_ethersubr.c | |
| parent | make amd use /tmp_mnt by default (diff) | |
| download | wireguard-openbsd-b1b24c71ed432b1046304ca8a929ed3be9afdbfd.tar.xz wireguard-openbsd-b1b24c71ed432b1046304ca8a929ed3be9afdbfd.zip | |
do not ignore IFF_NOARP
Diffstat (limited to 'sys/net/if_ethersubr.c')
| -rw-r--r-- | sys/net/if_ethersubr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 5e89be42c8e..4dcba984205 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ethersubr.c,v 1.21 1997/07/23 20:37:19 mickey Exp $ */ +/* $OpenBSD: if_ethersubr.c,v 1.22 1997/07/24 22:59:29 deraadt Exp $ */ /* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */ /* @@ -484,11 +484,15 @@ decapsulate: break; case ETHERTYPE_ARP: + if (ifp->if_flags & IFF_NOARP) + goto dropanyway; schednetisr(NETISR_ARP); inq = &arpintrq; break; case ETHERTYPE_REVARP: + if (ifp->if_flags & IFF_NOARP) + goto dropanyway; revarpinput(m); /* XXX queue? */ return; |
