mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-19 10:53:58 +00:00
remove HAVE_OLD_BPF part.
This commit is contained in:
parent
4b9a5e9f07
commit
2d106a00c9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=140044
@ -498,17 +498,7 @@ stf_output(ifp, m, dst, rt)
|
||||
* try to free it or keep a pointer a to it).
|
||||
*/
|
||||
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 *)⁡
|
||||
|
||||
BPF_MTAP(ifp, &m0);
|
||||
#else
|
||||
bpf_mtap2(ifp->if_bpf, &af, sizeof(af), m);
|
||||
#endif
|
||||
}
|
||||
#endif /*NBPFILTER > 0*/
|
||||
|
||||
@ -756,17 +746,7 @@ in_stf_input(m, off)
|
||||
* try to free it or keep a pointer a to it).
|
||||
*/
|
||||
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 *)⁡
|
||||
|
||||
BPF_MTAP(ifp, &m0);
|
||||
#else
|
||||
bpf_mtap2(ifp->if_bpf, &af, sizeof(af), m);
|
||||
#endif
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user