summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.h
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2014-10-07 11:16:23 +0000
committerdlg <dlg@openbsd.org>2014-10-07 11:16:23 +0000
commitad7bdc7f72d0b375583701cc3ac25cd800b4f86d (patch)
tree19bf5f4db5257cd4b6c2e59060874d021d2488d2 /sys/net/bpf.h
parentUse L1_S_V7_AP instead of L1_S_AP for the v7 case (diff)
downloadwireguard-openbsd-ad7bdc7f72d0b375583701cc3ac25cd800b4f86d.tar.xz
wireguard-openbsd-ad7bdc7f72d0b375583701cc3ac25cd800b4f86d.zip
when running bpf on an outgoing vlan interface that doesnt have a
parent that doesnt offload the tag insertion, we need to chop the vlan subheader out before the filter is run, not after. this moves the mbuf surgery out from the bpf layer into the vlan layer. ok henning@ jmatthew@
Diffstat (limited to 'sys/net/bpf.h')
-rw-r--r--sys/net/bpf.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/net/bpf.h b/sys/net/bpf.h
index 6bbb73c9fd5..f733ef7de4c 100644
--- a/sys/net/bpf.h
+++ b/sys/net/bpf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: bpf.h,v 1.46 2014/07/10 09:46:29 henning Exp $ */
+/* $OpenBSD: bpf.h,v 1.47 2014/10/07 11:16:23 dlg Exp $ */
/* $NetBSD: bpf.h,v 1.15 1996/12/13 07:57:33 mikel Exp $ */
/*
@@ -272,7 +272,6 @@ struct bpf_dltlist {
int bpf_validate(struct bpf_insn *, int);
int bpf_tap(caddr_t, u_char *, u_int, u_int);
void bpf_mtap(caddr_t, struct mbuf *, u_int);
-void bpf_mtap_stripvlan(caddr_t, struct mbuf *, u_int);
void bpf_mtap_hdr(caddr_t, caddr_t, u_int, struct mbuf *, u_int,
void (*)(const void *, void *, size_t));
void bpf_mtap_af(caddr_t, u_int32_t, struct mbuf *, u_int);