Subject: kern/7632: option bpfilter needed for ppp
To: None <gnats-bugs@gnats.netbsd.org>
From: Bjoern Labitzke <hermit@cs.tu-berlin.de>
List: netbsd-bugs
Date: 05/23/1999 14:22:57
>Number:         7632
>Category:       kern
>Synopsis:       options bpfilter  needed for ppp
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 23 14:20:01 1999
>Last-Modified:
>Originator:     Bjoern Labitzke
>Organization:
Bjoern Labitzke  <hermit@cs.tu-berlin.de>
   Use PGP! (Don't you use envelopes for your letters?)
>Release:        -current 23.05.99 <NetBSD-current source date>
>Environment:
	
System: NetBSD labitzke.isdn.cs.tu-berlin.de 1.4C NetBSD 1.4C (LABITZKE) #47: Sun May 23 00:22:14 CEST 1999 root@labitzke.isdn.cs.tu-berlin.de:/usr/src/sys/arch/i386/compile/LABITZKE i386


>Description:
	I guess this is architecture independent, but anyway the hint
	that I am using an i386-architecture.
	A kernel can't be built with ppp, but without options bpfilter.
	That produces:
cc  -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes  -Wpointer-arith -Wno-main -I. -I../../../../arch -I../../../.. -nostdinc -DLKM -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -Di386  -c ../../../../net/ppp_tty.c
cc1: warnings being treated as errors
../../../../net/ppp_tty.c: In function `pppasyncrelinq':
../../../../net/ppp_tty.c:265: warning: implicit declaration of function `bpf_change_type'
../../../../net/ppp_tty.c:265: `DLT_NULL' undeclared (first use in this function)
../../../../net/ppp_tty.c:265: (Each undeclared identifier is reported only once
../../../../net/ppp_tty.c:265: for each function it appears in.)
*** Error code 1

	There is no error, when options bpfilter is in the kernel config. As
	this wasn't the case for months I guess something was introduced that
	created this problem.
	
>How-To-Repeat:
	Build a kernel (on the i386-platform) with ppp but without bpfilter.
	
>Fix:
	Revert the change between 1.4 and -current that changed ppp_tty.c or
	fix the change. Sorry, don't know the kernel enough to provide a fix.
	
>Audit-Trail:
>Unformatted: