sockstat tcp/udp switches
Dmitry Frolov
dfrolov at riss-telecom.ru
Mon Nov 6 05:58:45 UTC 2006
* Josh Carroll <josh.carroll at psualum.com> [04.11.2006 06:15]:
> Below is an initial attempt at the -P argument implementation.
[...]
> if (opt_4 || opt_6) {
> - gather_inet(IPPROTO_TCP);
> - gather_inet(IPPROTO_UDP);
> + if(protos[TCP_PROTO] == 1 || protos_defined == -1)
> + gather_inet(IPPROTO_TCP);
> + if(protos[UDP_PROTO] == 1 || protos_defined == -1)
> + gather_inet(IPPROTO_UDP);
> gather_inet(IPPROTO_DIVERT);
> }
[...]
I see You just let divert protocol pass through. Would be nice if divert
pseudo protocol is also covered.
wbr&w, dmitry.
--
Dmitry Frolov <frolov at riss-telecom.ru>
RISS-Telecom Network, Novosibirsk, Russia
66415911 at ICQ, +7 383 2278800, DVF-RIPE
More information about the freebsd-hackers
mailing list