From owner-freebsd-pf@FreeBSD.ORG Thu Sep 16 03:54:13 2004 Return-Path: Delivered-To: freebsd-pf@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 674) id 1373B16A4CF; Thu, 16 Sep 2004 03:54:13 +0000 (GMT) Delivered-To: mlaier@vampire.homelinux.org Received: (qmail 5500 invoked by uid 1005); 9 Oct 2003 14:49:25 -0000 Delivered-To: max@vampire.homelinux.org Received: (qmail 5497 invoked from network); 9 Oct 2003 14:49:24 -0000 Received: from moutng.kundenserver.de (212.227.126.184) by p50839839.dip.t-dialin.net with SMTP; 9 Oct 2003 14:49:24 -0000 Received: from [212.227.126.146] (helo=mxng03.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1A7c3s-0005uW-00 for max@vampire.homelinux.org; Thu, 09 Oct 2003 16:46:40 +0200 Received: from [206.53.239.180] (helo=turing.freelists.org) by mxng03.kundenserver.de with esmtp (Exim 3.35 #1) id 1A7c3a-0005qu-00 for max@love2party.net; Thu, 09 Oct 2003 16:46:22 +0200 Received: from turing (localhost [127.0.0.1])ESMTP id 5B12E390E50; Thu, 9 Oct 2003 09:40:18 -0500 (EST) Received: with ECARTIS (v1.0.0; list pf4freebsd); Thu, 09 Oct 2003 09:40:12 -0500 (EST) X-Original-To: pf4freebsd@freelists.org Delivered-To: pf4freebsd@freelists.org Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.186])ESMTP id 672E8390E36 for ; Thu, 9 Oct 2003 09:40:11 -0500 (EST) Received: from [212.227.126.205] (helo=mrelayng.kundenserver.de) by moutng.kundenserver.de with esmtp (Exim 3.35 #1) id 1A7c35-0004U9-00; Thu, 09 Oct 2003 16:45:51 +0200 Received: from [80.131.152.57] (helo=max2400) by mrelayng.kundenserver.de with asmtp (Exim 3.35 #1) id 1A7c34-0004Y8-00; Thu, 09 Oct 2003 16:45:50 +0200 From: Max Laier X-Mailer: The Bat! (v2.00.6) X-Priority: 3 (Normal) Message-ID: <1878050828.20031009164620@love2party.net> To: "Michael O. Boev" In-Reply-To: References: MIME-Version: 1.0 Content-type: text/plain; charset=us-ascii X-archive-position: 190 X-ecartis-version: Ecartis v1.0.0 Sender: pf4freebsd-bounce@freelists.org Errors-To: pf4freebsd-bounce@freelists.org X-original-sender: max@love2party.net Precedence: normal X-list: pf4freebsd Content-Transfer-Encoding: quoted-printable X-UID: 305 X-Length: 4079 X-Mailman-Approved-At: Thu, 16 Sep 2004 03:55:52 +0000 cc: pf4freebsd@freelists.org Subject: [pf4freebsd] Re: [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:13 -0000 X-Original-Date: Thu, 9 Oct 2003 16:46:20 +0200 X-List-Received-Date: Thu, 16 Sep 2004 03:54:13 -0000 Hello Michael, Thursday, October 9, 2003, 3:31:48 PM, you wrote: MOB> It's me again, asking for an IPv6-free port. MOB> When I build current port (1.66) and define NOINET6, MOB> the build fails inside pftcpdump. MOB> This simple patch seems to fix the build issue. ) Looks good to me. I have forwarded it to the Mike Frantzen @OpenBSD who is responsible for the original code. Thanks! MOB> P.S. pftcpdump doesn't show tcp/udp ports. It prints colons after MOB> destination, MOB> but no number after it. It prints nothing after source address. MOB> gw# pftcpdump -i pflog0 MOB> pftcpdump: WARNING: pflog0: no IPv4 address assigned MOB> pftcpdump: listening on pflog0 MOB> 20:30:20.670224 213.183.101.200 > 213.183.101.207: [|udp] MOB> 20:30:32.168202 200-171-18-234.speedyterra.com.br > 1.tric.tomsk.gov= .ru: MOB> [|tcp] (DF) [tos 0x20] Hum ... I get the portnumbers correctly. Note that the print-udp.c is an unmodified copy from 5.1R and hence it should work as the normal tcpdump you have from your default installation. Output of pftcpdump -in pflog0 would look like: "16:37:04.203063 80.144.56.177.36068 > 80.131.152.57.4662: ..." Note that the port number is separated by another dot not a colon as you expected. Can you please check if the normal tcpdump (on a normal interface) prints portnumbers? MOB> Am I missing something? Yes, the portnumbers ... obviously ;) I'll investigate. --=20 Best regards, Max mailto:max@love2party.net