mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
systat: remove INP_TIMEWAIT
This commit is contained in:
parent
9c3507f919
commit
51c0184297
|
@ -222,17 +222,9 @@ fetchnetstat_kvm(void)
|
|||
if (nports && !checkport(&inpcb.inp_inc))
|
||||
continue;
|
||||
if (istcp) {
|
||||
if (inpcb.inp_flags & INP_TIMEWAIT) {
|
||||
bzero(&sockb, sizeof(sockb));
|
||||
enter_kvm(&inpcb, &sockb, TCPS_TIME_WAIT,
|
||||
"tcp");
|
||||
} else {
|
||||
KREAD(inpcb.inp_socket, &sockb,
|
||||
sizeof (sockb));
|
||||
KREAD(inpcb.inp_ppcb, &tcpcb, sizeof (tcpcb));
|
||||
enter_kvm(&inpcb, &sockb, tcpcb.t_state,
|
||||
"tcp");
|
||||
}
|
||||
KREAD(inpcb.inp_socket, &sockb, sizeof (sockb));
|
||||
KREAD(inpcb.inp_ppcb, &tcpcb, sizeof (tcpcb));
|
||||
enter_kvm(&inpcb, &sockb, tcpcb.t_state, "tcp");
|
||||
} else
|
||||
enter_kvm(&inpcb, &sockb, 0, "udp");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue