From owner-freebsd-bugs@FreeBSD.ORG Fri Oct 21 13:20:17 2005 Return-Path: X-Original-To: freebsd-bugs@hub.freebsd.org Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6C0DE16A41F for ; Fri, 21 Oct 2005 13:20:17 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5245443D4C for ; Fri, 21 Oct 2005 13:20:16 +0000 (GMT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.3/8.13.3) with ESMTP id j9LDKGcR017977 for ; Fri, 21 Oct 2005 13:20:16 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.3/8.13.1/Submit) id j9LDKGDv017976; Fri, 21 Oct 2005 13:20:16 GMT (envelope-from gnats) Resent-Date: Fri, 21 Oct 2005 13:20:16 GMT Resent-Message-Id: <200510211320.j9LDKGDv017976@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Mats Palmgren Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2FFF816A41F for ; 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 ; 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 ; 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 To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-2.3 Cc: Subject: misc/87783: netstat: "pfkey" support is not compiled in unless INET6 is defined (typo) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 21 Oct 2005 13:20:17 -0000 >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: