From owner-freebsd-bugs Thu Aug 2 4: 0:20 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 9D3AD37B405 for ; Thu, 2 Aug 2001 04:00:05 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f72B05Z90401; Thu, 2 Aug 2001 04:00:05 -0700 (PDT) (envelope-from gnats) Received: from melchior.cuivre.fr.eu.org (melchior.enst.fr [137.194.161.6]) by hub.freebsd.org (Postfix) with ESMTP id 33F3B37B401 for ; Thu, 2 Aug 2001 03:55:37 -0700 (PDT) (envelope-from thomas@cuivre.fr.eu.org) Received: from melusine.cuivre.fr.eu.org (melusine.enst.fr [137.194.160.34]) by melchior.cuivre.fr.eu.org (Postfix) with ESMTP id E4FF58318 for ; Thu, 2 Aug 2001 12:55:34 +0200 (CEST) Received: by melusine.cuivre.fr.eu.org (Postfix, from userid 1000) id 51C8B24D45; Thu, 2 Aug 2001 12:55:33 +0200 (CEST) Message-Id: <20010802105533.51C8B24D45@melusine.cuivre.fr.eu.org> Date: Thu, 2 Aug 2001 12:55:33 +0200 (CEST) From: Thomas Quinot Reply-To: Thomas Quinot To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: bin/29384: ipfstat picks wrong headers Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 29384 >Category: bin >Synopsis: ipfstat picks wrong headers >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Aug 02 04:00:04 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Thomas Quinot >Release: FreeBSD 4.3-STABLE i386 >Organization: >Environment: System: FreeBSD melusine.cuivre.fr.eu.org 4.3-STABLE FreeBSD 4.3-STABLE #8: Fri Jul 6 16:46:45 CEST 2001 thomas@melusine.cuivre.fr.eu.org:/usr/obj/usr/src/sys/MELUSINE i386 >Description: ipfstat picks some ipfilter headers from /usr/include/netinet instead of /sys/contrib/ipfilter/netinet/. When the ipfilter structures are changed, this causes an inconsistence between the kernel ipfilter and the ipfstat binary. >How-To-Repeat: /usr/src/sbin/ipfstat # cc -O2 -pipe -DIPL_NAME=\"/dev/ipl\" -DSTATETOP -I- -I/usr/src/sbin/ipfstat/../../sys/netinet -I/usr/src/sbin/ipfstat/../../sys -I/usr/src/sbin/ipfstat/../../contrib/ipfilter -E /usr/src/sbin/ipfstat/../../contrib/ipfilter/fils.c (will pick headers from /usr/include/netinet/) >Fix: In src/sbin/ipfstat: --- Makefile.dist Thu Aug 2 12:01:13 2001 +++ Makefile Thu Aug 2 12:50:42 2001 @@ -8,6 +8,7 @@ CFLAGS+=-DIPL_NAME=\"/dev/ipl\" -DSTATETOP CFLAGS+=-I- -I${.CURDIR}/../../sys/netinet -I${.CURDIR}/../../sys CFLAGS+=-I${.CURDIR}/../../contrib/ipfilter +CFLAGS+=-I${.CURDIR}/../../sys/contrib/ipfilter DPADD= ${LIBNCURSES} LDADD= -lncurses >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message