diff options
author | Bernd Eckenfels <net-tools@lina.inka.de> | 2008-10-02 22:05:54 +0000 |
---|---|---|
committer | Bernd Eckenfels <net-tools@lina.inka.de> | 2008-10-02 22:05:54 +0000 |
commit | 3e179eba8e113184a36ae37c40977cad184f1547 (patch) | |
tree | 6c59d108f9a67b67aea113297d86c5d0a0b4ed94 /netstat.c | |
parent | 7ac5bd2e0c34e970ae6a9a504eb1151069479d1a (diff) | |
download | net-tools-3e179eba8e113184a36ae37c40977cad184f1547.tar.gz net-tools-3e179eba8e113184a36ae37c40977cad184f1547.tar.bz2 net-tools-3e179eba8e113184a36ae37c40977cad184f1547.zip |
allow netstat to print Rcv/Snd-Q for TCP_LISTEN (containing accept
backlog)
Diffstat (limited to 'netstat.c')
-rw-r--r-- | netstat.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -6,7 +6,7 @@ * NET-3 Networking Distribution for the LINUX operating * system. * - * Version: $Id: netstat.c,v 1.55 2007/12/01 19:00:40 ecki Exp $ + * Version: $Id: netstat.c,v 1.56 2008/10/02 22:05:54 ecki Exp $ * * Authors: Fred Baumgarten, <dc6iq@insu1.etec.uni-karlsruhe.de> * Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org> @@ -765,12 +765,6 @@ static void tcp_do_one(int lnr, const char *line) ((struct sockaddr *) &localaddr)->sa_family); return; } - if (state == TCP_LISTEN) { - time_len = 0; - retr = 0L; - rxq = 0L; - txq = 0L; - } safe_strncpy(local_addr, ap->sprint((struct sockaddr *) &localaddr, flag_not), sizeof(local_addr)); safe_strncpy(rem_addr, ap->sprint((struct sockaddr *) &remaddr, flag_not), |