network - Fix netstat output missing entries
commitba1cb0ca95a27198f513a5c8fa4bc821e2581597
authorMatthew Dillon <dillon@apollo.backplane.com>
Tue, 2 Nov 2010 05:08:35 +0000 (1 22:08 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Tue, 2 Nov 2010 05:08:35 +0000 (1 22:08 -0700)
tree8af03cc38a4f8f8deefaed91c12a340574a4fc90
parentdd8bea0af652195d5c6e9d7fb6cea41a29cb7999
network - Fix netstat output missing entries

* netstat was missing entries due to the kernel pcb listing sysctl
  code doing a bogus generation count test which did not take into
  account pcb's which move between cpus due to e.g. a bind() operation.

Reported-by: Thomas Nikolajsen <thomas.nikolajsen@mail.dk>
sys/netinet/in_pcb.c
sys/netinet/tcp_subr.c