Subject: kern/7921: ah_core.c won't compile w/out INET6
To: None <gnats-bugs@gnats.netbsd.org>
From: None <rafal@mediaone.net>
List: netbsd-bugs
Date: 07/05/1999 20:22:32
>Number:         7921
>Category:       kern
>Synopsis:       ah_core.c won't compile w/out INET6
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul  5 20:20:01 1999
>Last-Modified:
>Originator:     Charlie Root
>Organization:
	none
>Release:        -current as of 7/05/99
>Environment:
System: NetBSD groo-the-wanderer.waterside.net 1.4D NetBSD 1.4D (GROO) #0: Mon Jul 5 11:34:43 EDT 1999 rafal@groo-the-wanderer.old-oak.net:/usr/src/sys/arch/i386/compile/GROO i386


>Description:
	ah_core.c declares zerobuf static, but doesn't use it if not compiling
	with INET6.  Compiler whines, kernel doesn't build.
>How-To-Repeat:
	build kernel with IPSEC, but not INET6 (or IPSEC_ESP, yet)
>Fix:

--- ah_core.c.orig	Mon Jul  5 11:04:38 1999
+++ ah_core.c	Mon Jul  5 18:10:33 1999
@@ -98,8 +98,10 @@
 
 #define	HMACSIZE	16
 
+#ifdef INET6
 #define ZEROBUFLEN	256
 static char zerobuf[ZEROBUFLEN];
+#endif
 
 static int ah_sumsiz_1216 __P((struct secas *));
 static int ah_sumsiz_zero __P((struct secas *));
>Audit-Trail:
>Unformatted: