From owner-freebsd-pf@FreeBSD.ORG Thu Sep 16 03:54:08 2004 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 674) id 0E99716A4CF; Thu, 16 Sep 2004 03:54:08 +0000 (GMT) Delivered-To: mlaier@vampire.homelinux.org Received: (qmail 5273 invoked by uid 1005); 9 Oct 2003 13:34:54 -0000 Delivered-To: max@vampire.homelinux.org Received: (qmail 5270 invoked from network); 9 Oct 2003 13:34:54 -0000 Received: from moutng.kundenserver.de (212.227.126.184) by p50839839.dip.t-dialin.net with SMTP; 9 Oct 2003 13:34:54 -0000 Received: from [212.227.126.147] (helo=mxng04.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1A7atm-0001KW-00 for max@vampire.homelinux.org; Thu, 09 Oct 2003 15:32:10 +0200 Received: from [206.53.239.180] (helo=turing.freelists.org) by mxng04.kundenserver.de with esmtp (Exim 3.35 #1) id 1A7atj-0006AM-00 for max@love2party.net; Thu, 09 Oct 2003 15:32:07 +0200 Received: from turing (localhost [127.0.0.1])ESMTP id 2EF00390D41; Thu, 9 Oct 2003 08:26:10 -0500 (EST) Received: with ECARTIS (v1.0.0; list pf4freebsd); Thu, 09 Oct 2003 08:26:04 -0500 (EST) X-Original-To: pf4freebsd@freelists.org Delivered-To: pf4freebsd@freelists.org Received: from isrv.tric.tomsk.gov.ru (isrv.tric.tomsk.gov.ru [213.183.106.13])ESMTP id 17923390168 for ; Thu, 9 Oct 2003 08:26:03 -0500 (EST) Received: from admin (admin.sobes [192.168.8.2])h99DVmdk066951 for ; Thu, 9 Oct 2003 20:31:48 +0700 (NOVST) (envelope-from mike@tric.tomsk.gov.ru) From: "Michael O. Boev" To: Message-ID: MIME-Version: 1.0 Content-type: text/plain; charset=koi8-r X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.6604 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal X-Virus-Scanned: by amavisd-new X-archive-position: 189 X-ecartis-version: Ecartis v1.0.0 Sender: pf4freebsd-bounce@freelists.org Errors-To: pf4freebsd-bounce@freelists.org X-original-sender: mike@tric.tomsk.gov.ru Precedence: normal X-list: pf4freebsd Content-Transfer-Encoding: quoted-printable X-UID: 304 X-Length: 3670 X-Mailman-Approved-At: Thu, 16 Sep 2004 03:55:51 +0000 Subject: [pf4freebsd] [patch] NOINET6 ; port numbers X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.1 Reply-To: pf4freebsd@freelists.org List-Id: Technical discussion and general questions about packet filter (pf) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Thu, 16 Sep 2004 03:54:08 -0000 X-Original-Date: Thu, 9 Oct 2003 20:31:48 +0700 X-List-Received-Date: Thu, 16 Sep 2004 03:54:08 -0000 Hello! It's me again, asking for an IPv6-free port. When I build current port (1.66) and define NOINET6, the build fails inside pftcpdump. This simple patch seems to fix the build issue. ) --- freebsd_tcpdump/print-tcp.c.orig Thu Oct 9 20:11:05 2003 +++ freebsd_tcpdump/print-tcp.c Thu Oct 9 20:11:35 2003 @@ -406,7 +406,11 @@ } /* OS Fingerprint */ +#ifndef INET6 + if (oflag && (flags & (TH_SYN|TH_ACK)) =3D=3D TH_SYN) { +#else if (oflag && ip6 =3D=3D NULL && (flags & (TH_SYN|TH_ACK)) =3D=3D = TH_SYN) { +#endif struct pf_osfp_enlist *head =3D NULL; struct pf_osfp_entry *fp; unsigned long left; P.S. pftcpdump doesn't show tcp/udp ports. It prints colons after destination, but no number after it. It prints nothing after source address. gw# pftcpdump -i pflog0 pftcpdump: WARNING: pflog0: no IPv4 address assigned pftcpdump: listening on pflog0 20:30:20.670224 213.183.101.200 > 213.183.101.207: [|udp] 20:30:32.168202 200-171-18-234.speedyterra.com.br > 1.tric.tomsk.gov.ru: [|tcp] (DF) [tos 0x20] Am I missing something? -- Best wishes, [mike@tric.tomsk.gov.ru].