NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/43968: add "segqlen" to tcp_dump of netstat(1)
>Number: 43968
>Category: bin
>Synopsis: add "segqlen" to tcp_dump of netstat(1)
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: bin-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Oct 14 07:50:01 +0000 2010
>Originator: yasuoka%iij.ad.jp@localhost
>Release: NetBSD 5.0.1
>Organization:
Internet Initiative Japan Inc.
>Environment:
System: NetBSD yasuoka-nb.iij.ad.jp 5.0.1 NetBSD 5.0.1 (GENERIC) #0: Thu Jul 30
01:39:11 UTC 2009
builds%b8.netbsd.org@localhost:/home/builds/ab/netbsd-5-0-1-RELEASE/i386
/200907292356Z-obj/home/builds/ab/netbsd-5-0-1-RELEASE/src/sys/arch/i386/compile
/GENERIC i386
Architecture: i386
Machine: i386
>Description:
Usage of TCP segment queue is useful for debugging.
The diff is to add 'segqlen' of TCPCB to 'netstat -P'.
>How-To-Repeat:
>Fix:
Index: inet.c
===================================================================
RCS file: /cvsroot/NetBSD/src/usr.bin/netstat/inet.c,v
retrieving revision 1.92
diff -u -p -r1.92 inet.c
--- inet.c 7 Dec 2009 18:48:45 -0000 1.92
+++ inet.c 14 Oct 2010 05:06:55 -0000
@@ -946,8 +946,8 @@ tcp_dump(u_long pcbaddr)
printf("rxtshift %d, rxtcur %d, dupacks %d\n", tcpcb.t_rxtshift,
tcpcb.t_rxtcur, tcpcb.t_dupacks);
- printf("peermss %u, ourmss %u, segsz %u\n\n", tcpcb.t_peermss,
- tcpcb.t_ourmss, tcpcb.t_segsz);
+ printf("peermss %u, ourmss %u, segsz %u, segqlen %u\n\n",
+ tcpcb.t_peermss, tcpcb.t_ourmss, tcpcb.t_segsz, tcpcb.t_segqlen);
printf("snd_una %u, snd_nxt %u, snd_up %u\n",
tcpcb.snd_una, tcpcb.snd_nxt, tcpcb.snd_up);
Home |
Main Index |
Thread Index |
Old Index