Deleted Added
full compact
1c1
< /* $FreeBSD: head/sys/net/if_gif.c 121816 2003-10-31 18:32:15Z brooks $ */
---
> /* $FreeBSD: head/sys/net/if_gif.c 123922 2003-12-28 03:56:00Z sam $ */
352,359d351
< /*
< * We need to prepend the address family as
< * a four byte field. Cons up a dummy header
< * to pacify bpf. This is safe because bpf
< * 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;
361,366c353
<
< m0.m_next = m;
< m0.m_len = 4;
< m0.m_data = (char *)&af;
<
< BPF_MTAP(ifp, &m0);
---
> bpf_mtap2(ifp->if_bpf, &af, sizeof(af), m);
421,428d407
< /*
< * We need to prepend the address family as
< * a four byte field. Cons up a dummy header
< * to pacify bpf. This is safe because bpf
< * 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;
430,435c409
<
< m0.m_next = m;
< m0.m_len = 4;
< m0.m_data = (char *)&af1;
<
< BPF_MTAP(ifp, &m0);
---
> bpf_mtap2(ifp->if_bpf, &af1, sizeof(af1), m);