Re: Help on socket lib and TCP/IP handshake
- From: Rainer Weikusat <rweikusat@xxxxxxxxxxx>
- Date: Tue, 12 Aug 2008 11:20:28 +0200
Rainer Weikusat <rweikusat@xxxxxxxxxxx> writes:
[...]
and it is somewhat accessible by looking at the
contents of /proc/net/netstat. A way to get this into readable form
would be:
head -n 2 /proc/net/netstat | tr ' ' '\n' | perl -ne 'BEGIN { $a =
\@t; } /TcpExt:/ && do { $x and $a = \@v; ++$x; next; }; chomp;
push(@$a, $_); END { for (1 .. $#t) { printf("%s\t%s\n", $t[$_], $v[$_]); } }'
To really see all values, for (1 .. should be for (0 .. :-(
.
- Follow-Ups:
- Re: Help on socket lib and TCP/IP handshake
- From: arnab
- Re: Help on socket lib and TCP/IP handshake
- References:
- Help on socket lib and TCP/IP handshake
- From: arnab
- Re: Help on socket lib and TCP/IP handshake
- From: David Schwartz
- Re: Help on socket lib and TCP/IP handshake
- From: Rainer Weikusat
- Re: Help on socket lib and TCP/IP handshake
- From: David Schwartz
- Re: Help on socket lib and TCP/IP handshake
- From: Rainer Weikusat
- Re: Help on socket lib and TCP/IP handshake
- From: David Schwartz
- Re: Help on socket lib and TCP/IP handshake
- From: arnab
- Re: Help on socket lib and TCP/IP handshake
- From: Rainer Weikusat
- Help on socket lib and TCP/IP handshake
- Prev by Date: Re: Help on socket lib and TCP/IP handshake
- Next by Date: man-pages-3.07 is released
- Previous by thread: Re: Help on socket lib and TCP/IP handshake
- Next by thread: Re: Help on socket lib and TCP/IP handshake
- Index(es):