Hi, This netstat diff is already needed to avoid compiler warnings since it uses struct tcpcb directly.
ok? Index: usr.bin/netstat/inet.c =================================================================== RCS file: /cvs/src/usr.bin/netstat/inet.c,v retrieving revision 1.177 diff -u -p -r1.177 inet.c --- usr.bin/netstat/inet.c 2 Jul 2023 19:59:15 -0000 1.177 +++ usr.bin/netstat/inet.c 7 Jul 2023 09:01:04 -0000 @@ -1556,8 +1556,8 @@ tcpcb_dump(u_long off) p("%lu", snd_cwnd, ", "); p("%lu", snd_ssthresh, ", "); p("%lu", max_sndwnd, "\n "); - p("%u", t_rcvtime, ", "); - p("%u", t_rtttime, ", "); + p("%llu", t_rcvtime, ", "); + p("%llu", t_rtttime, ", "); p("%u", t_rtseq, "\n "); p("%u", t_srtt, ", "); p("%u", t_rttvar, ", "); @@ -1570,7 +1570,7 @@ tcpcb_dump(u_long off) p("%u", request_r_scale, ", "); p("%u", requested_s_scale, "\n "); p("%u", ts_recent, ", "); - p("%u", ts_recent_age, "\n "); + p("%llu", ts_recent_age, "\n "); p("%u", last_ack_sent, "\n "); HTONS(tcpcb.t_pmtud_ip_len); HTONS(tcpcb.t_pmtud_nextmtu);