diff options
author | Nathan Binkert <nate@cvs.openbsd.org> | 2002-04-26 18:42:50 +0000 |
---|---|---|
committer | Nathan Binkert <nate@cvs.openbsd.org> | 2002-04-26 18:42:50 +0000 |
commit | 44a1f5f20024de83c575b7c34d09fd84946d36c8 (patch) | |
tree | a9f5ce3c013fd915138923cdefaff6ed47494062 /sys/dev | |
parent | ce5bd636dabf7741180511f949c7a442dfa1ad30 (diff) |
Only call bpf_mtap if we have bpf in the kernel
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/if_bge.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_bge.c b/sys/dev/pci/if_bge.c index d16be0beadd..9c43401b32c 100644 --- a/sys/dev/pci/if_bge.c +++ b/sys/dev/pci/if_bge.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bge.c,v 1.9 2002/04/08 21:46:23 nate Exp $ */ +/* $OpenBSD: if_bge.c,v 1.10 2002/04/26 18:42:49 nate Exp $ */ /* * Copyright (c) 2001 Wind River Systems * Copyright (c) 1997, 1998, 1999, 2001 @@ -2281,12 +2281,14 @@ bge_start(ifp) IFQ_DEQUEUE(&ifp->if_snd, m_head); pkts++; +#if NBPFILTER > 0 /* * If there's a BPF listener, bounce a copy of this frame * to him. */ if (ifp->if_bpf) bpf_mtap(ifp->if_bpf, m_head); +#endif } if (pkts == 0) return; |