diff options
author | 2014-07-11 10:48:50 +0000 | |
---|---|---|
committer | 2014-07-11 10:48:50 +0000 | |
commit | 2afbc418eeb0d4ed49a103c83df0a5a298d368cc (patch) | |
tree | bd954ddd2f65470efdd539e26ea455d0c11dfc24 | |
parent | Remove PSK from the ssl regress. (diff) | |
download | wireguard-openbsd-2afbc418eeb0d4ed49a103c83df0a5a298d368cc.tar.xz wireguard-openbsd-2afbc418eeb0d4ed49a103c83df0a5a298d368cc.zip |
switch from bpf_mtap to the shiny new bpf_mtap_stripvlan.
bpf listeners on a vlan interface don't expect to see a vlan header (you
expect those on the underlaying if). since we no longer prepend an ethernet
header to later throw it away and prepend an ether_vlan_header, we prepend
a ether_vlan_header right away. to unconfuse bpf listeners we need to cut
the 4 extra bytes out, which is what bpf_mtap_stripvlan does.
problem noticed by dlg with dhcrelay, ok benno dlg
-rw-r--r-- | sys/net/if_vlan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 9f5aca88b33..15a03d8a134 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vlan.c,v 1.106 2014/07/09 09:30:49 henning Exp $ */ +/* $OpenBSD: if_vlan.c,v 1.107 2014/07/11 10:48:50 henning Exp $ */ /* * Copyright 1998 Massachusetts Institute of Technology @@ -213,7 +213,7 @@ vlan_start(struct ifnet *ifp) #if NBPFILTER > 0 if (ifp->if_bpf) - bpf_mtap(ifp->if_bpf, m, BPF_DIRECTION_OUT); + bpf_mtap_stripvlan(ifp->if_bpf, m, BPF_DIRECTION_OUT); #endif /* |