From nobody@FreeBSD.org  Fri Oct 21 13:14:07 2005
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 2FFF816A41F
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 21 Oct 2005 13:14:07 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id F307243D45
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 21 Oct 2005 13:14:06 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id j9LDE6fj062917
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 21 Oct 2005 13:14:06 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id j9LDE6hk062916;
	Fri, 21 Oct 2005 13:14:06 GMT
	(envelope-from nobody)
Message-Id: <200510211314.j9LDE6hk062916@www.freebsd.org>
Date: Fri, 21 Oct 2005 13:14:06 GMT
From: Mats Palmgren <mats.palmgren@bredband.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: netstat: "pfkey" support is not compiled in unless INET6 is defined (typo)
X-Send-Pr-Version: www-2.3

>Number:         87783
>Category:       bin
>Synopsis:       [patch] netstat: "pfkey" support is not compiled in unless INET6 is defined (typo)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    mlaier
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 21 13:20:15 GMT 2005
>Closed-Date:    Tue Nov 08 16:46:07 GMT 2005
>Last-Modified:  Tue Nov 08 16:46:07 GMT 2005
>Originator:     Mats Palmgren
>Release:        
>Organization:
>Environment:
>Description:
Build FreeBSD with IPSEC enabled, INET6 disabled
the run:

netstat -f pfkey -s

expected result: pfkey related counters printed
actual result: no output
>How-To-Repeat:

>Fix:
Index: main.c
===================================================================
RCS file: /cvs/freebsd/src/usr.bin/netstat/main.c,v
retrieving revision 1.78
diff -u -r1.78 main.c
--- main.c      27 Sep 2005 18:10:30 -0000      1.78
+++ main.c      21 Oct 2005 12:55:20 -0000
@@ -324,10 +324,10 @@
                        else if (strcmp(optarg, "inet6") == 0)
                                af = AF_INET6;
 #endif /*INET6*/
-#ifdef INET6
+#ifdef IPSEC
                        else if (strcmp(optarg, "pfkey") == 0)
                                af = PF_KEY;
-#endif /*INET6*/
+#endif /*IPSEC*/
                        else if (strcmp(optarg, "unix") == 0)
                                af = AF_UNIX;
                        else if (strcmp(optarg, "atalk") == 0)

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->mlaier 
Responsible-Changed-By: mlaier 
Responsible-Changed-When: Sat Oct 22 17:43:06 GMT 2005 
Responsible-Changed-Why:  
take over - triggered by "pf" via dolt 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87783 
State-Changed-From-To: open->patched 
State-Changed-By: mlaier 
State-Changed-When: Sat Oct 22 17:50:56 GMT 2005 
State-Changed-Why:  
committed to HEAD, will MFC in a week. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87783 
State-Changed-From-To: patched->closed 
State-Changed-By: mlaier 
State-Changed-When: Tue Nov 8 16:45:24 GMT 2005 
State-Changed-Why:  
MFCed to RELENG_5,6  Thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=87783 
>Unformatted:
