summaryrefslogtreecommitdiffstats
path: root/sys/net/bpf.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-05-25 16:34:35 +0000
committersam <sam@FreeBSD.org>2009-05-25 16:34:35 +0000
commit4578aab13485e4b51134e1d41989caeb2058e2e2 (patch)
tree10ff63287fa287ab47f04c19b3b0ed7b7ca3a85b /sys/net/bpf.c
parentc46edbdb7c8be84056bb69a0f028a1420ad1d5dc (diff)
downloadFreeBSD-src-4578aab13485e4b51134e1d41989caeb2058e2e2.zip
FreeBSD-src-4578aab13485e4b51134e1d41989caeb2058e2e2.tar.gz
rev bpf attach/detach event api to include the dlt
Diffstat (limited to 'sys/net/bpf.c')
-rw-r--r--sys/net/bpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c
index 5bca0eb..b944e29 100644
--- a/sys/net/bpf.c
+++ b/sys/net/bpf.c
@@ -535,7 +535,7 @@ bpf_attachd(struct bpf_d *d, struct bpf_if *bp)
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.
OpenPOWER on IntegriCloud