freebsd-dev/usr.bin/sockstat
Giorgos Keramidas 1f3d67aade Add support for filtering sockets by protocol type. The default
behavior of sockstat(1) will still be to show "udp", "tcp" and
"divert" protocols, but we can now provide a (comma-separated)
list of protocols, as in:

    % sockstat -P tcp

to list only TCP sockets, or we can filter more than one protocol
by separating the protocol names with a comma:

    % sockstat -P tcp,udp

Protocol names are parsed with getprotobyname(3), so any protocol
whose name is listed in `/etc/protocols' should work fine.

Submitted by:	Josh Carroll <josh.carroll@psualum.com>
Approved by:	des
2006-11-11 22:11:54 +00:00
..
Makefile Let bsd.prog.mk set SRCS and MAN to their default values. 2005-01-28 16:08:11 +00:00
sockstat.1 Add support for filtering sockets by protocol type. The default 2006-11-11 22:11:54 +00:00
sockstat.c Add support for filtering sockets by protocol type. The default 2006-11-11 22:11:54 +00:00