From owner-freebsd-hackers@FreeBSD.ORG Fri Nov 3 02:46:47 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7738B16A407 for ; Fri, 3 Nov 2006 02:46:47 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7C2F043D45 for ; Fri, 3 Nov 2006 02:46:46 +0000 (GMT) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (host5.bedc.ondsl.gr [62.103.39.229]) (authenticated bits=128) by igloo.linux.gr (8.13.8/8.13.8/Debian-2) with ESMTP id kA32keaE007196 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 3 Nov 2006 04:46:41 +0200 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.13.8/8.13.8) with ESMTP id kA32kR3K016491; Fri, 3 Nov 2006 04:46:32 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.13.8/8.13.8/Submit) id kA32kM7X016490; Fri, 3 Nov 2006 04:46:22 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Fri, 3 Nov 2006 04:46:21 +0200 From: Giorgos Keramidas To: Josh Carroll Message-ID: <20061103024621.GB16445@kobe.laptop> References: <8cb6106e0610311058s7144d38bp2b1dafd114e2b433@mail.gmail.com> <20061102094748.G75543@mignon.ki.iif.hu> <8cb6106e0611021507n6315b629kad8cbbf901343c2@mail.gmail.com> <20061103021803.GC8508@kobe.laptop> <8cb6106e0611021834h17737556y4bb2fda39a4bfa0c@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <8cb6106e0611021834h17737556y4bb2fda39a4bfa0c@mail.gmail.com> X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (score=-2.536, required 5, AWL -0.14, BAYES_00 -2.60, DNS_FROM_RFC_ABUSE 0.20, UNPARSEABLE_RELAY 0.00) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: freebsd-hackers@freebsd.org Subject: Re: sockstat tcp/udp switches X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Nov 2006 02:46:47 -0000 On 2006-11-02 18:34, Josh Carroll wrote: > >Can we have something that doesn't need one option letter for each > >protocol, protocol family or socket type, please? :) > > I'd be willing to modify it to take a -P argument with one of: > > tcp > udp > tcp,udp > udp,tcp > > If the consensus is to add -P, I'd be happy to make the changes. I > assume without -P we'd want to show both, so perhaps udp,tcp and > tcp,udp aren't necessary. Quite right. If the default is to show *both*, then we only need to specify one of them in the -P argument. If you want, for the sake of completeness to support the "-P proto[,proto]" syntax too, that's also fine, I guess :)