Date: Sat, 11 Nov 2006 22:11:54 +0000 (UTC) From: Giorgos Keramidas <keramida@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/sockstat sockstat.1 sockstat.c Message-ID: <200611112211.kABMBsHp073602@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <josh.carroll@psualum.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611112211.kABMBsHp073602>