cvs commit: src/usr.bin/sockstat sockstat.1 sockstat.c

Giorgos Keramidas keramida at FreeBSD.org
Sat Nov 11 22:12:02 UTC 2006


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 at 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


More information about the cvs-src mailing list