From cd5a90420939d92075abfcd44cc7ada39b42d84a Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Tue, 7 Oct 2014 11:16:24 +0000 Subject: 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@ --- sys/net/bpf.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/net/bpf.h') 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); -- cgit v1.2.3