Date: Fri, 29 Apr 2016 20:13:35 +0000 (UTC) From: Michael Tuexen <tuexen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298798 - head/sys/netinet6 Message-ID: <201604292013.u3TKDZFm006713@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604292013.u3TKDZFm006713>