summaryrefslogtreecommitdiffstats
path: root/sys/net/if_stf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/net/if_stf.c')
-rw-r--r--sys/net/if_stf.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/net/if_stf.c b/sys/net/if_stf.c
index 76b92ec..88214f9 100644
--- a/sys/net/if_stf.c
+++ b/sys/net/if_stf.c
@@ -430,17 +430,17 @@ stf_output(ifp, m, dst, rt)
* will only read from the mbuf (i.e., it won't
* try to free it or keep a pointer a to it).
*/
- struct mbuf m0;
u_int32_t af = AF_INET6;
+#ifdef HAVE_OLD_BPF
+ struct mbuf m0;
m0.m_next = m;
m0.m_len = 4;
m0.m_data = (char *)⁡
-#ifdef HAVE_OLD_BPF
BPF_MTAP(ifp, &m0);
#else
- bpf_mtap(ifp->if_bpf, &m0);
+ bpf_mtap2(ifp->if_bpf, &af, sizeof(af), m);
#endif
}
#endif /*NBPFILTER > 0*/
@@ -685,17 +685,17 @@ in_stf_input(m, off)
* will only read from the mbuf (i.e., it won't
* try to free it or keep a pointer a to it).
*/
- struct mbuf m0;
u_int32_t af = AF_INET6;
+#ifdef HAVE_OLD_BPF
+ struct mbuf m0;
m0.m_next = m;
m0.m_len = 4;
m0.m_data = (char *)⁡
-#ifdef HAVE_OLD_BPF
BPF_MTAP(ifp, &m0);
#else
- bpf_mtap(ifp->if_bpf, &m0);
+ bpf_mtap2(ifp->if_bpf, &af, sizeof(ah), m);
#endif
}
OpenPOWER on IntegriCloud