summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_input.c
diff options
context:
space:
mode:
authorbluhm <bluhm@openbsd.org>2013-07-01 10:53:52 +0000
committerbluhm <bluhm@openbsd.org>2013-07-01 10:53:52 +0000
commit99d67208bc62919a595405d0298705d2e48d2a2f (patch)
tree5e27f301d7e344371784de314558cbb47c3bd81f /sys/netinet/tcp_input.c
parentAdd the necessary -I options to use the libedit readline compatibilty headers (diff)
downloadwireguard-openbsd-99d67208bc62919a595405d0298705d2e48d2a2f.tar.xz
wireguard-openbsd-99d67208bc62919a595405d0298705d2e48d2a2f.zip
The reverse parameter of in_pcblookup_listen() is a boolean and not
a flag. Rename the variable inpl_flags in tcp_input() to inpl_reverse like in udp_input(). No binary change. OK mikeb@
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r--sys/netinet/tcp_input.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index 7ab5da190dc..4e39e7f1f6f 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_input.c,v 1.264 2013/06/20 20:21:20 mikeb Exp $ */
+/* $OpenBSD: tcp_input.c,v 1.265 2013/07/01 10:53:52 bluhm Exp $ */
/* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */
/*
@@ -613,20 +613,20 @@ findpcb:
#endif
}
if (inp == NULL) {
- int inpl_flags = 0;
+ int inpl_reverse = 0;
if (m->m_pkthdr.pf.flags & PF_TAG_TRANSLATE_LOCALHOST)
- inpl_flags = INPLOOKUP_WILDCARD;
+ inpl_reverse = 1;
++tcpstat.tcps_pcbhashmiss;
switch (af) {
#ifdef INET6
case AF_INET6:
inp = in6_pcblookup_listen(&tcbtable,
- &ip6->ip6_dst, th->th_dport, inpl_flags, m);
+ &ip6->ip6_dst, th->th_dport, inpl_reverse, m);
break;
#endif /* INET6 */
case AF_INET:
inp = in_pcblookup_listen(&tcbtable,
- ip->ip_dst, th->th_dport, inpl_flags, m,
+ ip->ip_dst, th->th_dport, inpl_reverse, m,
m->m_pkthdr.rdomain);
break;
}