diff options
author | guido <guido@FreeBSD.org> | 1996-02-26 21:47:13 +0000 |
---|---|---|
committer | guido <guido@FreeBSD.org> | 1996-02-26 21:47:13 +0000 |
commit | 89b4ca893fe13e54c6d973cb8ba18e9fb0e54dc0 (patch) | |
tree | e890c502794e318e0fbf56859dd4046cd36c5744 /sys/netinet/tcp_reass.c | |
parent | bf7c76b5e78a4af38d2a035ffa77e13ef8221015 (diff) | |
download | FreeBSD-src-89b4ca893fe13e54c6d973cb8ba18e9fb0e54dc0.zip FreeBSD-src-89b4ca893fe13e54c6d973cb8ba18e9fb0e54dc0.tar.gz |
Add a counter for the number of times the listen queue was overflowed to
the tcpstat structure. (netstat -s)
Reviewed by: wollman
Obtained from: Steves, TCP/IP Ill. vol.3, page 189
Diffstat (limited to 'sys/netinet/tcp_reass.c')
-rw-r--r-- | sys/netinet/tcp_reass.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c index 1c08251..b5cc0bb 100644 --- a/sys/netinet/tcp_reass.c +++ b/sys/netinet/tcp_reass.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_input.c 8.12 (Berkeley) 5/24/95 - * $Id: tcp_input.c,v 1.35 1996/01/31 08:22:24 olah Exp $ + * $Id: tcp_input.c,v 1.36 1996/02/22 11:46:39 davidg Exp $ */ #ifndef TUBA_INCLUDE @@ -396,8 +396,10 @@ findpcb: if (so->so_options & SO_ACCEPTCONN) { register struct tcpcb *tp0 = tp; so = sonewconn(so, 0); - if (so == 0) + if (so == 0) { + tcpstat.tcps_listendrop++; goto drop; + } /* * This is ugly, but .... * |