Giorgos Keramidas d2d77d2aee 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
..
2005-01-18 13:43:56 +00:00
2005-01-25 22:24:04 +00:00
2005-11-18 12:08:31 +00:00
2005-01-25 22:32:48 +00:00
2006-09-25 15:06:24 +00:00
2005-11-18 10:36:29 +00:00
2005-02-13 22:25:33 +00:00
2005-01-25 22:32:48 +00:00
2005-11-18 10:36:29 +00:00
2005-01-25 22:32:48 +00:00
2005-01-18 13:43:56 +00:00
2006-09-29 15:20:48 +00:00
2006-09-29 15:20:48 +00:00
2006-10-08 10:31:44 +00:00
2006-07-27 14:20:14 +00:00
2006-09-30 17:27:50 +00:00
2005-02-13 22:25:33 +00:00
2006-08-23 12:12:56 +00:00
2005-02-09 18:07:17 +00:00
2006-09-13 05:06:12 +00:00
2006-05-15 08:20:38 +00:00
2005-02-13 22:25:33 +00:00
2006-11-06 15:58:35 +00:00
2004-07-03 00:24:45 +00:00
2005-02-13 22:25:33 +00:00
2006-08-20 15:52:17 +00:00
2006-09-29 15:20:48 +00:00
2005-02-13 22:25:33 +00:00
2006-09-29 15:20:48 +00:00
2006-09-29 15:20:48 +00:00
2004-03-06 23:36:41 +00:00
2005-01-25 14:22:20 +00:00
2006-07-18 10:19:46 +00:00
2005-01-24 20:06:16 +00:00
2006-08-28 08:27:02 +00:00
2005-01-18 13:43:56 +00:00
2005-01-18 13:43:56 +00:00
2004-03-14 05:51:20 +00:00
2006-09-29 15:20:48 +00:00
2006-09-29 15:20:48 +00:00
2005-01-17 17:45:38 +00:00
2005-11-18 10:36:29 +00:00
2005-02-07 08:44:34 +00:00
2005-04-09 14:31:41 +00:00
2006-07-30 07:41:28 +00:00
2005-11-13 21:03:56 +00:00
2004-07-03 00:24:45 +00:00
2005-01-18 13:43:56 +00:00
2006-09-29 15:20:48 +00:00
2005-06-14 11:50:53 +00:00
2006-10-21 18:05:06 +00:00
2005-03-11 14:17:12 +00:00
2005-02-13 22:25:33 +00:00
2006-09-29 15:20:48 +00:00
2006-10-12 21:10:55 +00:00
2006-09-29 15:20:48 +00:00
2006-09-29 15:20:48 +00:00
2005-02-13 22:25:33 +00:00
2005-01-18 13:43:56 +00:00
2005-02-13 22:25:33 +00:00
2005-01-18 13:43:56 +00:00
2006-08-29 18:11:20 +00:00
2005-02-13 22:25:33 +00:00
2006-05-11 17:25:36 +00:00
2005-02-26 04:14:20 +00:00
2005-06-14 11:50:53 +00:00
2005-04-09 14:31:41 +00:00
2005-02-10 16:04:22 +00:00
2006-09-29 15:20:48 +00:00
2005-08-25 14:09:35 +00:00
2006-09-29 15:20:48 +00:00
2006-09-29 15:20:48 +00:00
2005-01-18 13:43:56 +00:00
2006-08-22 03:22:17 +00:00