From 6a05792540ffa00713f4b3a1521864f7dddc1f39 Mon Sep 17 00:00:00 2001 From: sam Date: Fri, 15 Nov 2002 00:00:15 +0000 Subject: 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 --- sys/net/if_arcsubr.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'sys/net/if_arcsubr.c') diff --git a/sys/net/if_arcsubr.c b/sys/net/if_arcsubr.c index a11dc44..df01b74 100644 --- a/sys/net/if_arcsubr.c +++ b/sys/net/if_arcsubr.c @@ -211,8 +211,7 @@ arc_output(ifp, m, dst, rt0) ah->arc_dhost = adst; ah->arc_shost = *IF_LLADDR(ifp); - if (ifp->if_bpf) - bpf_mtap(ifp, m); + BPF_MTAP(ifp, m); #if __FreeBSD_version < 500000 s = splimp(); @@ -541,8 +540,7 @@ arc_input(ifp, m) if (m == NULL) return; - if (ifp->if_bpf) - bpf_mtap(ifp, m); + BPF_MTAP(ifp, m); ah = mtod(m, struct arc_header *); -- cgit v1.1