git: 51c0184297eb - main - systat: remove INP_TIMEWAIT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 07 Oct 2022 02:35:41 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=51c0184297eb7c57361927cf9632a85320bc4adc
commit 51c0184297eb7c57361927cf9632a85320bc4adc
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2022-10-07 02:22:23 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2022-10-07 02:24:37 +0000
systat: remove INP_TIMEWAIT
---
usr.bin/systat/netstat.c | 14 +++-----------
1 file changed, 3 insertions(+), 11 deletions(-)
diff --git a/usr.bin/systat/netstat.c b/usr.bin/systat/netstat.c
index 96d4194db72d..dc1e08c590dd 100644
--- a/usr.bin/systat/netstat.c
+++ b/usr.bin/systat/netstat.c
@@ -222,17 +222,9 @@ again:
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");
}