Subject: kern/24565: #define LARGE_NAT in /sys/netinet/ip_nat.h doesn't compile clean
To: None <>
From: None <>
List: netbsd-bugs
Date: 02/26/2004 21:43:51
>Number:         24565
>Category:       kern
>Synopsis:       #define LARGE_NAT in /sys/netinet/ip_nat.h doesn't compile clean
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 26 20:44:00 UTC 2004
>Release:        NetBSD 1.6.2
System: NetBSD sirius 1.6.2 NetBSD 1.6.2 (SIRIUS (TINY)) #2: Wed Feb 25 13:29:47 CET 2004 axel@sirius:/usr/src/sys/arch/i386/compile/SIRIUS.TINY i386
Architecture: i386
Machine: i386
#define LARGE_NAT in /sys/netinet/ip_nat.h doesn't compile cleanly
	#define LARGE_NAT in /sys/netinet/ip_nat.h and recompile kernel,
	the build will fail in the default -Werr since some variables are
	unused in /sys/netinet/ip_nat.h (rulen, np)
	I did the #ifndef LARGE_NAT trick on the defines also:
	struct nat *nat;
	u_int type;
       		 struct natlog natl;
       		 void *items[1];
      		  size_t sizes[1];
#ifndef LARGE_NAT
       		 struct ipnat *np;
       		 int rulen;