misc/87783: netstat: "pfkey" support is not compiled in unless
INET6 is defined (typo)
Mats Palmgren
mats.palmgren at bredband.net
Fri Oct 21 06:20:17 PDT 2005
>Number: 87783
>Category: misc
>Synopsis: netstat: "pfkey" support is not compiled in unless INET6 is defined (typo)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Oct 21 13:20:15 GMT 2005
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:
More information about the freebsd-bugs
mailing list