Author: sam Date: Mon May 25 16:34:35 2009 New Revision: 192763 URL: http://svn.freebsd.org/changeset/base/192763
Log: rev bpf attach/detach event api to include the dlt Modified: head/sys/net/bpf.c head/sys/sys/eventhandler.h Modified: head/sys/net/bpf.c ============================================================================== --- head/sys/net/bpf.c Mon May 25 15:48:10 2009 (r192762) +++ head/sys/net/bpf.c Mon May 25 16:34:35 2009 (r192763) @@ -535,7 +535,7 @@ bpf_attachd(struct bpf_d *d, struct bpf_ bpf_bpfd_cnt++; BPFIF_UNLOCK(bp); - EVENTHANDLER_INVOKE(bpf_track, bp->bif_ifp, 1); + EVENTHANDLER_INVOKE(bpf_track, bp->bif_ifp, bp->bif_dlt, 1); } /* @@ -563,7 +563,7 @@ bpf_detachd(struct bpf_d *d) BPFD_UNLOCK(d); BPFIF_UNLOCK(bp); - EVENTHANDLER_INVOKE(bpf_track, ifp, 0); + EVENTHANDLER_INVOKE(bpf_track, ifp, bp->bif_dlt, 0); /* * Check if this descriptor had requested promiscuous mode. Modified: head/sys/sys/eventhandler.h ============================================================================== --- head/sys/sys/eventhandler.h Mon May 25 15:48:10 2009 (r192762) +++ head/sys/sys/eventhandler.h Mon May 25 16:34:35 2009 (r192763) @@ -184,7 +184,8 @@ EVENTHANDLER_DECLARE(vlan_unconfig, vlan /* BPF attach/detach events */ struct ifnet; -typedef void (*bpf_track_fn)(void *, struct ifnet *, int /* 1 =>'s attach */); +typedef void (*bpf_track_fn)(void *, struct ifnet *, int /* dlt */, + int /* 1 =>'s attach */); EVENTHANDLER_DECLARE(bpf_track, bpf_track_fn); /* _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"