[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150527170440.GA15308@obsidianresearch.com>
Date: Wed, 27 May 2015 11:04:40 -0600
From: Jason Gunthorpe <jgunthorpe@...idianresearch.com>
To: David Laight <David.Laight@...LAB.COM>
Cc: 'Daniel Borkmann' <daniel@...earbox.net>,
Neil Horman <nhorman@...driver.com>,
"linux-sctp@...r.kernel.org" <linux-sctp@...r.kernel.org>,
Vlad Yasevich <vyasevich@...il.com>,
"davem@...emloft.net" <davem@...emloft.net>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH] sctp: Fix mangled IPv4 addresses on a IPv6 listening
socket
On Wed, May 27, 2015 at 04:41:18PM +0000, David Laight wrote:
> The code will be sleeping in kernel_accept() and later calls
> kernel_getpeername().
> The code is used for both TCP and SCTP and this part is common (using
> the TCP semantics).
getpeername uses a different flow, it calls into inet6_getname which
will always return the AF_INET6 version.
The call to sctp_v6_addr_to_user after is to support the v6->v4 coversion
when SCTP_I_WANT_MAPPED_V4_ADDR=0, it will never do the broken v4->v6
conversion.
Jason
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists