keramida 2006-11-11 22:11:54 UTC FreeBSD src repository (doc committer)
Modified files: usr.bin/sockstat sockstat.1 sockstat.c Log: 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 <[EMAIL PROTECTED]> Approved by: des Revision Changes Path 1.21 +12 -2 src/usr.bin/sockstat/sockstat.1 1.14 +115 -12 src/usr.bin/sockstat/sockstat.c _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "[EMAIL PROTECTED]"