summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Gross <vgross@cvs.openbsd.org>2016-03-30 13:02:23 +0000
committerVincent Gross <vgross@cvs.openbsd.org>2016-03-30 13:02:23 +0000
commite58c34b6be73ba5b74b7e0a014f2aad26b53c75c (patch)
tree54f43b9dcd533546713bc566d71630403c218909
parent630b2e18b54fcec807a1c2fe9721cd26fe34edec (diff)
Use in6_pcbhashlookup() in in6_pcbconnect(). We don't need in_pcblookup()
broad search and in_pcbconnect() already uses in_pcbhashlookup(). ok bluhm@ mpi@ jca@
-rw-r--r--sys/netinet6/in6_pcb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c
index 617150eac6c..4fde2100475 100644
--- a/sys/netinet6/in6_pcb.c
+++ b/sys/netinet6/in6_pcb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_pcb.c,v 1.89 2016/03/23 15:50:36 vgross Exp $ */
+/* $OpenBSD: in6_pcb.c,v 1.90 2016/03/30 13:02:22 vgross Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -304,9 +304,9 @@ in6_pcbconnect(struct inpcb *inp, struct mbuf *nam)
inp->inp_ipv6.ip6_hlim = (u_int8_t)in6_selecthlim(inp);
- if (in_pcblookup(inp->inp_table, &sin6->sin6_addr, sin6->sin6_port,
+ if (in6_pcbhashlookup(inp->inp_table, &sin6->sin6_addr, sin6->sin6_port,
IN6_IS_ADDR_UNSPECIFIED(&inp->inp_laddr6) ? in6a : &inp->inp_laddr6,
- inp->inp_lport, INPLOOKUP_IPV6, inp->inp_rtableid)) {
+ inp->inp_lport, inp->inp_rtableid)) {
return (EADDRINUSE);
}