summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorwollman <wollman@FreeBSD.org>1996-06-05 17:20:35 +0000
committerwollman <wollman@FreeBSD.org>1996-06-05 17:20:35 +0000
commit63e056d1ae3993d6dc2428823832de6d015f0b53 (patch)
tree2254675cbda3dbf7613056886301773655d45500 /sys/netinet/udp_usrreq.c
parentb5c184c463875356ba7397a0697c0d6846a17f02 (diff)
downloadFreeBSD-src-63e056d1ae3993d6dc2428823832de6d015f0b53.zip
FreeBSD-src-63e056d1ae3993d6dc2428823832de6d015f0b53.tar.gz
Instrument UDP PCB hashing to see how often the hash lookup is effective
for incoming packets.
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index e51b320..e285b04 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.25 1996/05/02 05:54:14 fenner Exp $
+ * $Id: udp_usrreq.c,v 1.26 1996/05/09 20:15:26 wollman Exp $
*/
#include <sys/param.h>
@@ -276,6 +276,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);
}
OpenPOWER on IntegriCloud