keramida e996b3d302 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
..
2006-09-25 15:06:24 +00:00
2006-09-29 15:20:48 +00:00
2006-09-29 15:20:48 +00:00
2006-10-08 10:31:44 +00:00
2006-07-27 14:20:14 +00:00
2006-09-30 17:27:50 +00:00
2006-08-23 12:12:56 +00:00
2006-09-13 05:06:12 +00:00
2006-11-06 15:58:35 +00:00
2006-08-20 15:52:17 +00:00
2006-09-29 15:20:48 +00:00
2006-09-29 15:20:48 +00:00
2006-09-29 15:20:48 +00:00
2006-07-18 10:19:46 +00:00
2006-08-28 08:27:02 +00:00
2006-09-29 15:20:48 +00:00
2006-09-29 15:20:48 +00:00
2006-07-30 07:41:28 +00:00
2006-09-29 15:20:48 +00:00
2006-10-21 18:05:06 +00:00
2006-09-29 15:20:48 +00:00
2006-10-12 21:10:55 +00:00
2006-09-29 15:20:48 +00:00
2006-09-29 15:20:48 +00:00
2006-08-29 18:11:20 +00:00
2006-09-29 15:20:48 +00:00
2006-09-29 15:20:48 +00:00
2006-09-29 15:20:48 +00:00
2006-08-22 03:22:17 +00:00