diff options
author | sam <sam@FreeBSD.org> | 2002-11-15 00:00:15 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2002-11-15 00:00:15 +0000 |
commit | 6a05792540ffa00713f4b3a1521864f7dddc1f39 (patch) | |
tree | 2a5611d45149f91e7ddfd0e32391f1ef7d8590e1 /sys/net/if_tun.c | |
parent | 36661cddf10b1ee6cf5c6ca63413f6f860242c8e (diff) | |
download | FreeBSD-src-6a05792540ffa00713f4b3a1521864f7dddc1f39.zip FreeBSD-src-6a05792540ffa00713f4b3a1521864f7dddc1f39.tar.gz |
network interface and link layer changes:
o on input don't strip the Ethernet header from packets
o input packet handling is now done with if_input
o track changes to ether_ifattach/ether_ifdetach API
o track changes to bpf tapping
o call ether_ioctl for default handling of ioctl's
o use constants from net/ethernet.h where possible
Reviewed by: many
Approved by: re
Diffstat (limited to 'sys/net/if_tun.c')
-rw-r--r-- | sys/net/if_tun.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/if_tun.c b/sys/net/if_tun.c index 400cf05..719191b 100644 --- a/sys/net/if_tun.c +++ b/sys/net/if_tun.c @@ -487,7 +487,7 @@ tunoutput( m.m_len = 4; m.m_data = (char *)⁡ - bpf_mtap(ifp, &m); + BPF_MTAP(ifp, &m); } /* prepend sockaddr? this may abort if the mbuf allocation fails */ @@ -772,7 +772,7 @@ tunwrite(dev_t dev, struct uio *uio, int flag) return (ENOBUFS); *mtod(top, u_int32_t *) = ntohl(*mtod(top, u_int32_t *)); - bpf_mtap(ifp, top); + BPF_MTAP(ifp, top); *mtod(top, u_int32_t *) = htonl(*mtod(top, u_int32_t *)); } else { @@ -790,7 +790,7 @@ tunwrite(dev_t dev, struct uio *uio, int flag) m.m_len = 4; m.m_data = (char *)⁡ - bpf_mtap(ifp, &m); + BPF_MTAP(ifp, &m); } } |