From owner-svn-src-all@freebsd.org Fri Apr 29 20:13:36 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3F56BB2125F; Fri, 29 Apr 2016 20:13:36 +0000 (UTC) (envelope-from tuexen@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 10D571846; Fri, 29 Apr 2016 20:13:35 +0000 (UTC) (envelope-from tuexen@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u3TKDZqa006714; Fri, 29 Apr 2016 20:13:35 GMT (envelope-from tuexen@FreeBSD.org) Received: (from tuexen@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u3TKDZFm006713; Fri, 29 Apr 2016 20:13:35 GMT (envelope-from tuexen@FreeBSD.org) Message-Id: <201604292013.u3TKDZFm006713@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tuexen set sender to tuexen@FreeBSD.org using -f From: Michael Tuexen Date: Fri, 29 Apr 2016 20:13:35 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298798 - head/sys/netinet6 X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Apr 2016 20:13:36 -0000 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;