diff options
| author | David Greenman <dg@FreeBSD.org> | 1996-09-19 09:54:38 +0000 |
|---|---|---|
| committer | David Greenman <dg@FreeBSD.org> | 1996-09-19 09:54:38 +0000 |
| commit | 10a87ad77ed0e521eb8c0ca8ba6f47e7e5601a79 (patch) | |
| tree | 9f3b5ad17e8a611ec3e211a26e769e76dca8dfe6 | |
| parent | 1f219de96c3cf9c6a6f1d6edafb755e5a47dba84 (diff) | |
Notes
| -rw-r--r-- | sys/netinet/tcp_input.c | 6 | ||||
| -rw-r--r-- | sys/netinet/tcp_var.h | 3 | ||||
| -rw-r--r-- | sys/netinet/udp_usrreq.c | 3 | ||||
| -rw-r--r-- | sys/netinet/udp_var.h | 3 |
4 files changed, 10 insertions, 5 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index ccc3138d04063..fda53e3390331 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * From: @(#)tcp_input.c 8.5 (Berkeley) 4/10/94 - * $Id: tcp_input.c,v 1.25.4.4 1996/03/04 04:56:25 davidg Exp $ + * $Id: tcp_input.c,v 1.25.4.5 1996/09/19 08:18:28 pst Exp $ */ #ifndef TUBA_INCLUDE @@ -381,8 +381,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 .... * diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h index 7458b5882ec22..3df6f4a722b91 100644 --- a/sys/netinet/tcp_var.h +++ b/sys/netinet/tcp_var.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)tcp_var.h 8.3 (Berkeley) 4/10/94 - * $Id: tcp_var.h,v 1.11.4.4 1996/03/04 04:56:27 davidg Exp $ + * $Id: tcp_var.h,v 1.11.4.5 1996/09/19 08:18:43 pst Exp $ */ #ifndef _NETINET_TCP_VAR_H_ @@ -289,6 +289,7 @@ struct tcpstat { u_long tcps_persistdrop; /* timeout in persist state */ u_long tcps_badsyn; /* bogus SYN, e.g. premature ACK */ u_long tcps_mturesent; /* resends due to MTU discovery */ + u_long tcps_listendrop; /* listen queue overflows */ }; /* diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index d5abe2633bc38..9b65d5815d8c9 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)udp_usrreq.c 8.6 (Berkeley) 5/23/95 - * $Id: udp_usrreq.c,v 1.14 1995/09/22 19:56:26 wollman Exp $ + * $Id: udp_usrreq.c,v 1.12.4.2 1995/10/07 20:20:58 davidg Exp $ */ #include <sys/param.h> @@ -264,6 +264,7 @@ udp_input(m, iphlen) * ...and if that fails, do a wildcard search. */ if (inp == NULL) { + udpstat.udpps_pcbhashmiss++; inp = in_pcblookup(&udb, ip->ip_src, uh->uh_sport, ip->ip_dst, uh->uh_dport, INPLOOKUP_WILDCARD); } diff --git a/sys/netinet/udp_var.h b/sys/netinet/udp_var.h index 6e98e9c4a7ace..12b5c9c262069 100644 --- a/sys/netinet/udp_var.h +++ b/sys/netinet/udp_var.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)udp_var.h 8.1 (Berkeley) 6/10/93 - * $Id: udp_var.h,v 1.4 1995/02/16 00:27:47 wollman Exp $ + * $Id: udp_var.h,v 1.5 1995/04/09 01:29:31 davidg Exp $ */ #ifndef _NETINET_UDP_VAR_H_ @@ -66,6 +66,7 @@ struct udpstat { u_long udps_noportbcast; /* of above, arrived as broadcast */ u_long udps_fullsock; /* not delivered, input socket full */ u_long udpps_pcbcachemiss; /* input packets missing pcb cache */ + u_long udpps_pcbhashmiss; /* input packets not for hashed pcb */ /* output statistics: */ u_long udps_opackets; /* total output packets */ }; |
