Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci missing NBPFILTER > 0



details:   https://anonhg.NetBSD.org/src/rev/e399cabec852
branches:  trunk
changeset: 516912:e399cabec852
user:      uch <uch%NetBSD.org@localhost>
date:      Thu Nov 01 17:32:33 2001 +0000

description:
missing NBPFILTER > 0

diffstat:

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

diffs (22 lines):

diff -r ba527580a7cb -r e399cabec852 sys/dev/pci/if_lmc_media.c
--- a/sys/dev/pci/if_lmc_media.c        Thu Nov 01 17:25:37 2001 +0000
+++ b/sys/dev/pci/if_lmc_media.c        Thu Nov 01 17:32:33 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_lmc_media.c,v 1.10 2001/08/27 17:47:35 eeh Exp $    */
+/*     $NetBSD: if_lmc_media.c,v 1.11 2001/11/01 17:32:33 uch Exp $    */
 
 /*-
  * Copyright (c) 1997-1999 LAN Media Corporation (LMC)
@@ -1268,10 +1268,12 @@
                }
        }
 
+#if NBPFILTER > 0
        /* just in case we are going to change encap type */
        if ((sc->lmc_sppp.pp_flags & PP_CISCO) != 0)
                bpf_change_type(&sc->lmc_if, DLT_HDLC, PPP_HEADER_LEN);
        else
                bpf_change_type(&sc->lmc_if, DLT_PPP, PPP_HEADER_LEN);
+#endif /* NBPFILTER > 0 */
 #endif
 }



Home | Main Index | Thread Index | Old Index