Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pcmcia wrap bpfdetach() with NBPFILTER > 0.



details:   https://anonhg.NetBSD.org/src/rev/eae84941b9e8
branches:  trunk
changeset: 481570:eae84941b9e8
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Feb 02 07:47:33 2000 +0000

description:
wrap bpfdetach() with NBPFILTER > 0.

diffstat:

 sys/dev/pcmcia/if_ep_pcmcia.c |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 8148f3a8e5a2 -r eae84941b9e8 sys/dev/pcmcia/if_ep_pcmcia.c
--- a/sys/dev/pcmcia/if_ep_pcmcia.c     Wed Feb 02 07:45:13 2000 +0000
+++ b/sys/dev/pcmcia/if_ep_pcmcia.c     Wed Feb 02 07:47:33 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ep_pcmcia.c,v 1.25 2000/02/02 07:23:28 augustss Exp $       */
+/*     $NetBSD: if_ep_pcmcia.c,v 1.26 2000/02/02 07:47:33 itojun Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -419,7 +419,9 @@
        /* Free our i/o space. */
        pcmcia_io_free(psc->sc_pf, &psc->sc_pcioh);
 
+#if NBPFILTER > 0
        bpfdetach(ifp);
+#endif
        ether_ifdetach(ifp);
        if_detach(ifp);
 



Home | Main Index | Thread Index | Old Index