diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2003-11-04 21:43:17 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2003-11-04 21:43:17 +0000 |
commit | 294ba6e1f796fb9da4701923ee467469f6324633 (patch) | |
tree | b3f4ddad2fd73ae44b7f292216c707cfff008521 /sys/netinet/tcp_usrreq.c | |
parent | 81dab3d72aec5ca7f1ab6f8fed0d5683a5a5a986 (diff) |
add in(6)_pcblookup_listen() and replace all calls to in_pcblookup()
with either in(6)_pcbhashlookup() or in(6)_pcblookup_listen();
in_pcblookup is now only used by bind(2); speeds up pcb lookup for
listening sockets; from Claudio Jeker
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 501efc21a7b..ff9983289b7 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_usrreq.c,v 1.71 2003/06/09 07:40:25 itojun Exp $ */ +/* $OpenBSD: tcp_usrreq.c,v 1.72 2003/11/04 21:43:16 markus Exp $ */ /* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */ /* @@ -834,15 +834,13 @@ tcp_ident(oldp, oldlenp, newp, newlen) switch (tir.faddr.ss_family) { #ifdef INET6 case AF_INET6: - inp = in_pcblookup(&tcbtable, &f6, - fin6->sin6_port, &l6, lin6->sin6_port, - INPLOOKUP_WILDCARD | INPLOOKUP_IPV6); + inp = in6_pcblookup_listen(&tcbtable, + &l6, lin6->sin6_port); break; #endif case AF_INET: - inp = in_pcblookup(&tcbtable, &fin->sin_addr, - fin->sin_port, &lin->sin_addr, lin->sin_port, - INPLOOKUP_WILDCARD); + inp = in_pcblookup_listen(&tcbtable, + lin->sin_addr, lin->sin_port); break; } } |