Subject: kern/7639: sys/net/ppp_tty.c build failed without BPF.
To: None <gnats-bugs@gnats.netbsd.org>
From: Takahiro Kambe <taca@sky.yamashina.kyoto.jp>
List: netbsd-bugs
Date: 05/24/1999 09:36:37
>Number:         7639
>Category:       kern
>Synopsis:       sys/net/ppp_tty.c build failed without BPF.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon May 24 09:35:01 1999
>Last-Modified:
>Originator:     Takahiro Kambe
>Organization:
	
>Release:        NetBSD-current 1999/5/24
>Environment:
	
System: NetBSD land.sky.yamashina.kyoto.jp 1.4C NetBSD 1.4C (LAND) #45: Mon May 24 08:04:00 JST 1999 taca@land.sky.yamashina.kyoto.jp:/usr/src/sys/arch/i386/compile/LAND i386


>Description:
	Kernel compilation fail,

		with ppp.
		without bpf.
>How-To-Repeat:
	Build kernel with ppp device and without bpf.
>Fix:
Index: ppp_tty.c
===================================================================
RCS file: /usr/local/libdata/cvs/netbsd/sys/net/ppp_tty.c,v
retrieving revision 1.1.1.1.2.1
diff -u -r1.1.1.1.2.1 ppp_tty.c
--- ppp_tty.c	1999/05/23 14:36:41	1.1.1.1.2.1
+++ ppp_tty.c	1999/05/24 16:26:52
@@ -261,8 +261,10 @@
 {
     int s;
 
+#if NBPFILTER > 0
     /* Change DLT to back none. */
     bpf_change_type(&sc->sc_bpf, DLT_NULL, 0);
+#endif
 
     s = spltty();
     if (sc->sc_outm) {

>Audit-Trail:
>Unformatted: