Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/netstat Print previously missing fields from a TCP6 ...



details:   https://anonhg.NetBSD.org/src/rev/1b592f1f4882
branches:  trunk
changeset: 819785:1b592f1f4882
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sat Dec 17 09:12:22 2016 +0000

description:
Print previously missing fields from a TCP6 PCB.

diffstat:

 usr.bin/netstat/inet6.c |  12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diffs (41 lines):

diff -r a241066261ae -r 1b592f1f4882 usr.bin/netstat/inet6.c
--- a/usr.bin/netstat/inet6.c   Sat Dec 17 07:44:59 2016 +0000
+++ b/usr.bin/netstat/inet6.c   Sat Dec 17 09:12:22 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: inet6.c,v 1.68 2015/02/08 15:09:45 christos Exp $      */
+/*     $NetBSD: inet6.c,v 1.69 2016/12/17 09:12:22 mlelstv Exp $       */
 /*     BSDI inet.c,v 2.3 1995/10/24 02:19:29 prb Exp   */
 
 /*
@@ -64,7 +64,7 @@
 #if 0
 static char sccsid[] = "@(#)inet.c     8.4 (Berkeley) 4/20/94";
 #else
-__RCSID("$NetBSD: inet6.c,v 1.68 2015/02/08 15:09:45 christos Exp $");
+__RCSID("$NetBSD: inet6.c,v 1.69 2016/12/17 09:12:22 mlelstv Exp $");
 #endif
 #endif /* not lint */
 
@@ -1494,6 +1494,9 @@
 #ifdef TCP6
        printf("peermaxseg %u, maxseg %u, force %d\n\n", mypcb.t_peermaxseg,
            mypcb.t_maxseg, mypcb.t_force);
+#else
+        printf("peermss %u, ourmss %u, segsz %u, segqlen %u\n\n",
+           tcpcb.t_peermss, tcpcb.t_ourmss, tcpcb.t_segsz, tcpcb.t_segqlen);
 #endif
 
        printf("snd_una %u, snd_nxt %u, snd_up %u\n",
@@ -1511,8 +1514,11 @@
            (unsigned long long)mypcb.snd_ssthresh);
 
 #ifdef TCP6
-       printf("idle %d, rtt %d, " mypcb.t_idle, mypcb.t_rtt)
+       printf("idle %d, rtt %d, " mypcb.t_idle, mypcb.t_rtt);
+#else
+       printf("rcvtime %u, rtttime %u, ", tcpcb.t_rcvtime, tcpcb.t_rtttime);
 #endif
+
        printf("rtseq %u, srtt %d, rttvar %d, rttmin %d, "
            "max_sndwnd %llu\n\n", mypcb.t_rtseq,
            mypcb.t_srtt, mypcb.t_rttvar, mypcb.t_rttmin,



Home | Main Index | Thread Index | Old Index