Date: Fri, 7 Oct 2022 02:35:41 GMT From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 51c0184297eb - main - systat: remove INP_TIMEWAIT Message-ID: <202210070235.2972ZfcF090647@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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"); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202210070235.2972ZfcF090647>