From owner-freebsd-current@FreeBSD.ORG Sat Jan 24 00:53:45 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F387616A4CE; Sat, 24 Jan 2004 00:53:44 -0800 (PST) Received: from mallaury.noc.nerim.net (smtp-106-saturday.noc.nerim.net [62.4.17.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0154543D1D; Sat, 24 Jan 2004 00:53:43 -0800 (PST) (envelope-from mycroft@virgaria.org) Received: from lotus.plug-it.com (lotus.plug-it.com [62.212.108.163]) by mallaury.noc.nerim.net (Postfix) with ESMTP id B493A62D57; Sat, 24 Jan 2004 09:53:40 +0100 (CET) Received: by lotus.plug-it.com (Postfix, from userid 11) id A40F24029; Sat, 24 Jan 2004 09:53:52 +0100 (CET) X-Scanned-By: Plug-It Antivirus System. Received: from newborn.in.virgaria.org (unknown [2001:7a8:30a3:42::84:254]) by lotus.plug-it.com (Postfix) with ESMTP id 4D4574010; Sat, 24 Jan 2004 09:53:48 +0100 (CET) Received: from newborn.in.virgaria.org (localhost [127.0.0.1]) by newborn.in.virgaria.org (Postfix) with ESMTP id CAEDF1CC7E; Sat, 24 Jan 2004 09:54:27 +0100 (CET) Received: (from mycroft@localhost) by newborn.in.virgaria.org (8.12.10/8.12.10/Submit) id i0O8sQaG007476; Sat, 24 Jan 2004 09:54:26 +0100 (CET) (envelope-from mycroft) Date: Sat, 24 Jan 2004 09:54:26 +0100 From: Patrick MARIE To: Vadim Chekan Message-ID: <20040124085426.GC2750@newborn.in.virgaria.org> References: <200401230002.18543.vchekan@rogers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200401230002.18543.vchekan@rogers.com> X-GPG-Key: http://www.minithins.net/~mycroft/key.txt X-GPG-Key-Fingerprint: 9117 6710 D241 53CA 2FBB AB3D 656D E3B8 99613BFB User-Agent: Mutt/1.5.5.1i X-Bogosity: No, tests=bogofilter, spamicity=0.000000, version=0.15.13 X-Spam-Status: No, hits=-9.1 required=6.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-current@FreeBSD.org cc: phk@FreeBSD.org Subject: Re: JKH: tcpdump improvement X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Jan 2004 08:53:45 -0000 On Fri, Jan 23, 2004 at 12:02:18AM +0000, Vadim Chekan wrote: > Hello Poul, > > I want to try to implement portrange feature in tcpdump as described on your > JKH TODO list if it's still actual. > > I have several thoughts about this task. > > 1. As soon as it is neccessary to implement portN to implement this > task it is a good idea to extend syntax with these operators. Actually after > implementing "<" and ">" operators task is 80% done because it is possible to > implement range by "port > N1 and port < N2" expression. > > 2. About range operator. I'd prefer to add functionality to existing "port" > operator instead of introducing new keyword "portrange". > It seems easier to remember and use syntax like: > "port 40-400 and port 500" > > What do you think? Well, if you want, you can rely on the following patch: http://www.virgaria.org/~mycroft/libpcap-20040124.diff It was done a while ago, submitted to libpcap/tcpdump developers without any new from them since. Cheers, - patrick -- Patrick MARIE pgp: http://www.minithins.net/~mycroft/key.txt