diff options
| author | David Greenman <dg@FreeBSD.org> | 1998-01-27 09:15:13 +0000 |
|---|---|---|
| committer | David Greenman <dg@FreeBSD.org> | 1998-01-27 09:15:13 +0000 |
| commit | c3229e05a368643ab2e7e7c210b40586d041ba04 (patch) | |
| tree | 6e590a83ef8e255ffe4974380799f25266f0e781 /sys/netinet/udp_usrreq.c | |
| parent | 5be975adf0385ccfc40821e603dcd5169a4dd1d4 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
| -rw-r--r-- | sys/netinet/udp_usrreq.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index 91981c1df295..773e42dbe759 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.42 1997/12/19 23:46:21 bde Exp $ + * $Id: udp_usrreq.c,v 1.43 1998/01/25 17:25:41 steve Exp $ */ #include <sys/param.h> @@ -78,7 +78,7 @@ static struct inpcbhead udb; /* from udp_var.h */ static struct inpcbinfo udbinfo; #ifndef UDBHASHSIZE -#define UDBHASHSIZE 64 +#define UDBHASHSIZE 16 #endif static struct udpstat udpstat; /* from udp_var.h */ @@ -97,6 +97,7 @@ udp_init() LIST_INIT(&udb); udbinfo.listhead = &udb; udbinfo.hashbase = hashinit(UDBHASHSIZE, M_PCB, &udbinfo.hashmask); + udbinfo.porthashbase = hashinit(UDBHASHSIZE, M_PCB, &udbinfo.porthashmask); } void @@ -274,7 +275,7 @@ udp_input(m, iphlen) /* * Locate pcb for datagram. */ - inp = in_pcblookuphash(&udbinfo, ip->ip_src, uh->uh_sport, + inp = in_pcblookup_hash(&udbinfo, ip->ip_src, uh->uh_sport, ip->ip_dst, uh->uh_dport, 1); if (inp == NULL) { if (log_in_vain) { |
