systat: remove INP_TIMEWAIT

This commit is contained in:
Gleb Smirnoff 2022-10-06 19:22:23 -07:00
parent 9c3507f919
commit 51c0184297

View file

@ -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");
}