svn commit: r298798 - head/sys/netinet6
Michael Tuexen
tuexen at FreeBSD.org
Fri Apr 29 20:13:36 UTC 2016
Author: tuexen
Date: Fri Apr 29 20:13:35 2016
New Revision: 298798
URL: https://svnweb.freebsd.org/changeset/base/298798
Log:
Use correct order of source and destination address and port.
Modified:
head/sys/netinet6/udp6_usrreq.c
Modified: head/sys/netinet6/udp6_usrreq.c
==============================================================================
--- head/sys/netinet6/udp6_usrreq.c Fri Apr 29 20:12:45 2016 (r298797)
+++ head/sys/netinet6/udp6_usrreq.c Fri Apr 29 20:13:35 2016 (r298798)
@@ -556,8 +556,8 @@ udp6_common_ctlinput(int cmd, struct soc
if (!PRC_IS_REDIRECT(cmd)) {
/* Check to see if its tunneled */
struct inpcb *inp;
- inp = in6_pcblookup_mbuf(pcbinfo, &ip6->ip6_src,
- uh.uh_sport, &ip6->ip6_dst, uh.uh_dport,
+ inp = in6_pcblookup_mbuf(pcbinfo, &ip6->ip6_dst,
+ uh.uh_dport, &ip6->ip6_src, uh.uh_sport,
INPLOOKUP_WILDCARD | INPLOOKUP_RLOCKPCB,
m->m_pkthdr.rcvif, m);
if (inp != NULL) {
@@ -566,7 +566,7 @@ udp6_common_ctlinput(int cmd, struct soc
up = intoudpcb(inp);
if (up->u_icmp_func) {
/* Yes it is. */
- INP_RUNLOCK(inp);
+ INP_RUNLOCK(inp);
(*up->u_icmp_func)(cmd, (struct sockaddr *)ip6cp->ip6c_src,
d, up->u_tun_ctx);
return;
More information about the svn-src-head
mailing list