sockstat tcp/udp switches

Giorgos Keramidas keramida at ceid.upatras.gr
Fri Nov 3 02:46:47 UTC 2006


On 2006-11-02 18:34, Josh Carroll <josh.carroll at psualum.com> 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 :)



More information about the freebsd-hackers mailing list