Subject: kern/30712: ALTQ breaks up pf
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: Andreas Wiese <awiese@despammed.com>
List: netbsd-bugs
Date: 07/10/2005 13:02:00
>Number:         30712
>Category:       kern
>Synopsis:       ALTQ breaks up pf
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jul 10 13:02:00 +0000 2005
>Originator:     Andreas Wiese
>Release:        NetBSD 3.99.7
>Organization:
	BSD-Crew Dresden, Germany
>Environment:
System: NetBSD schroeder.o-zonenloch.home 3.99.7 NetBSD 3.99.7 (SCHROEDER) #1: Fri Jun 24 00:19:34 CEST 2005 root@schroeder.o-zonenloch.home:/sys/arch/i386/compile/SCHROEDER i386
Architecture: i386
Machine: i386
>Description:

Building a kernel with both ALTQ and pf enabled fails with the following
message:

#v+
#   compile  SCHROEDER/pf.o
cc -ffreestanding -O2 -Werror -Wall -Wno-main -Wno-format-zero-length
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wreturn-type
-Wswitch -Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare
-Wno-shadow -fno-zero-initialized-in-bss -Di386 -I. -I../../../../arch
-I../../../.. -nostdinc -DCRYPTO_MD_DES_ENC -DCRYPTO_MD_DES_CBC
-DCRYPTO_MD_BF_ENC -DCRYPTO_MD_BF_CBC -DLKM -DALTQ_PRIQ -DMAXUSERS=32
-D_KERNEL -D_KERNEL_OPT -I../../../../dist/pf -I../../../../dist/ipf -c
../../../../dist/pf/net/pf.c
../../../../dist/pf/net/pf.c: In function `pf_send_tcp':
../../../../dist/pf/net/pf.c:1523: error: dereferencing pointer to
incomplete type
../../../../dist/pf/net/pf.c:1526: error: dereferencing pointer to
incomplete type
../../../../dist/pf/net/pf.c:1528: error: dereferencing pointer to
incomplete type
../../../../dist/pf/net/pf.c:1529: error: dereferencing pointer to
incomplete type
../../../../dist/pf/net/pf.c: In function `pf_send_icmp':
../../../../dist/pf/net/pf.c:1673: error: dereferencing pointer to
incomplete type
../../../../dist/pf/net/pf.c:1676: error: dereferencing pointer to
incomplete type
../../../../dist/pf/net/pf.c:1678: error: dereferencing pointer to
incomplete type
../../../../dist/pf/net/pf.c:1679: error: dereferencing pointer to
incomplete type
../../../../dist/pf/net/pf.c: In function `pf_test':
../../../../dist/pf/net/pf.c:6063: error: dereferencing pointer to
incomplete type
../../../../dist/pf/net/pf.c:6067: error: dereferencing pointer to
incomplete type
../../../../dist/pf/net/pf.c:6069: error: dereferencing pointer to
incomplete type
../../../../dist/pf/net/pf.c:6071: error: dereferencing pointer to
incomplete type
../../../../dist/pf/net/pf.c:6072: error: dereferencing pointer to
incomplete type
*** Error code 1

Stop.
make: stopped in /sys/arch/i386/compile/SCHROEDER
#v-

On the given lines, the code dereferences a variable abuf of type
'struct altq_tag'.  There ain't no definition of such structure in the
whole source tree.

>How-To-Repeat:
Build a kernel with ALTQ and pf enabled.
>Fix:
Dunno.