summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-06-10 09:20:22 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-06-10 09:20:22 +0000
commitbb79007aa81b142e64a1f260b2e3dd610c7fcb76 (patch)
tree26c33bf27dc2408aefa53caf69ba69942a824214 /sys/net
parentdb3f0d96ea67eb6e9d291b085bed5a107cd6df2f (diff)
Add missing include.
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/trunklacp.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/sys/net/trunklacp.c b/sys/net/trunklacp.c
index da9280a953d..2a31254b57e 100644
--- a/sys/net/trunklacp.c
+++ b/sys/net/trunklacp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trunklacp.c,v 1.22 2015/06/09 14:50:14 mpi Exp $ */
+/* $OpenBSD: trunklacp.c,v 1.23 2015/06/10 09:20:21 mpi Exp $ */
/* $NetBSD: ieee8023ad_lacp.c,v 1.3 2005/12/11 12:24:54 christos Exp $ */
/* $FreeBSD:ieee8023ad_lacp.c,v 1.15 2008/03/16 19:25:30 thompsa Exp $ */
@@ -54,6 +54,11 @@
#include "if_trunk.h"
#include "trunklacp.h"
+#include "bpfilter.h"
+#if NBPFILTER > 0
+#include <net/bpf.h>
+#endif
+
/*
* actor system priority and port priority.
* XXX should be configurable.
@@ -230,8 +235,8 @@ lacp_input(struct trunk_port *tp, struct mbuf *m)
if (ntohs(eh->ether_type) == ETHERTYPE_SLOW) {
#if NBPFILTER > 0
- if (ifp->if_bpf)
- bpf_mtap_ether(ifp->if_bpf, m, BPF_DIRECTION_IN);
+ if (tp->tp_if->if_bpf)
+ bpf_mtap_ether(tp->tp_if->if_bpf, m, BPF_DIRECTION_IN);
#endif
if (m->m_pkthdr.len < (sizeof(*eh) + sizeof(subtype)))