freebsd-skq/usr.bin/sockstat
keramida 9c9a9d1af8 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
2006-11-12 19:03:39 +00:00
..
Makefile Let bsd.prog.mk set SRCS and MAN to their default values. 2005-01-28 16:08:11 +00:00
sockstat.1 Add support for filtering sockets by protocol type. The default 2006-11-11 22:11:54 +00:00
sockstat.c In revision 1.14 I broke the -4 and -6 options of sockstat(1). 2006-11-12 19:03:39 +00:00