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

Giorgos Keramidas keramida at FreeBSD.org
Sun Nov 12 19:03:41 UTC 2006


keramida    2006-11-12 19:03:39 UTC

  FreeBSD src repository (doc committer)

  Modified files:
    usr.bin/sockstat     sockstat.c 
  Log:
  In revision 1.14 I broke the -4 and -6 options of sockstat(1).
  Using either one of the two would result in an empty protos[]
  array, and no sockets were actually listed:
  
    % sockstat -4
    USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
    % sockstat -6
    USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
    %
  
  Fix this bug by tweaking appropriately the logic of handling opt_4,
  opt_6, opt_u and protos_defined.
  
  Submitted by:   des
  Pointy hat:     keramida
  
  Revision  Changes    Path
  1.15      +5 -10     src/usr.bin/sockstat/sockstat.c


More information about the cvs-all mailing list