From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vlad Yasevich Date: Wed, 03 Dec 2014 15:36:10 +0000 Subject: Re: wrong family for IP addresses given by sctp library Message-Id: <547F2DEA.3060609@gmail.com> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-sctp@vger.kernel.org On 12/03/2014 10:30 AM, Michael Tuexen wrote: > On 03 Dec 2014, at 14:27, Boiteux Frederic wrote: > >> Hello Ivan, Michael, Daniel, >> >>> Isn't the returned address simply a IPv6-mapped IPv4 address (::ffff:1.2.3.4) ? You can test it with IN6_IS_ADDR_V4MAPPED. >> >> Yes, it is (I've verified with the provided macro) ! I'll use this macro to detect and update provided addresses, thanks ! > Not sure if LKSCTP supports it, but you can use > https://tools.ietf.org/html/rfc6458#section-8.1.15 > to control if the addresses should be provided as IPv4 addresses or mapped IPv6 ones. Yes it's supported, but there was an issue that was recently fixed. -vlad > > Best regards > Michael >> >> >> Daniel, I'll try to test it on a recent kernel, but it will take some time to set up... thanks for the commit's reference ! >> >> Regards, >> Fred. >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-sctp" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> > > -- > To unsubscribe from this list: send the line "unsubscribe linux-sctp" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >