Sorry, my bad.  I forgot an #include.

In sys/netinet/ip_fw.c add this #include:
@@ -48,6 +47,7 @@
 #include <net/route.h>
 #include <netinet/in.h>
 #include <netinet/in_systm.h>
+#include <netinet/in_var.h>
 #include <netinet/in_pcb.h>
 #include <netinet/ip.h>
 #include <netinet/ip_var.h>

I have committed it.

Poul-Henning

In message <[EMAIL PROTECTED]>, Kenneth Wayne 
Culver writes:
>With the recent commits to -STABLE (I'm assuming these are MFC that's why
>I sent to both freebsd-current and freebsd-stable) having to do with the
>ipfw code, I have had a problem compiling the kernel. These are the
>errors.
>
>cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes     
>-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  
>-fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I../../../include   
>-D_KERNEL -include opt_global.h -elf  -mpreferred-stack-boundary=2  vers.c
>linking kernel
>ip_fw.o: In function `ip_fw_chk':
>ip_fw.o(.text+0xff7): undefined reference to `INADDR_TO_IFP'
>ip_fw.o(.text+0x1017): undefined reference to `INADDR_TO_IFP'
>*** Error code 1
>
>Before anyone asks, I did a make depend first, and I used config -r
>instead of config when config'ing my kernel. 
>
>Did I miss a message or something saying that I need something new in my
>kernel for firewalls?
>
>Ken
>
>
>To Unsubscribe: send mail to [EMAIL PROTECTED]
>with "unsubscribe freebsd-current" in the body of the message
>

--
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED]         | TCP/IP since RFC 956
FreeBSD committer       | BSD since 4.3-tahoe    
Never attribute to malice what can adequately be explained by incompetence.

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to