Date: Mon, 7 Sep 2020 17:18:02 -0700 From: Doug Hardie <bc979@lafn.org> To: Michael Tuexen <michael.tuexen@lurchi.franken.de> Cc: freebsd-net@freebsd.org Subject: Re: Address Differences between UDP and SCTP Message-ID: <6DB5BF95-F7D8-4933-8633-644A553E8C75@mail.sermon-archive.info> In-Reply-To: <7CF5C0CF-A173-4253-9F93-70199578A8F7@lurchi.franken.de> References: <6A9D0A4B-F35C-4012-A868-5450D60EC13B@mail.sermon-archive.info> <7CF5C0CF-A173-4253-9F93-70199578A8F7@lurchi.franken.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> On 7 September 2020, at 13:57, Michael Tuexen = <michael.tuexen@lurchi.franken.de> wrote: >=20 > For UDP and TCP you always get IPv6 addresses on AF_INET6 sockets. If = you are actually using IPv4, IPv4-mapped IPv6 addresses are used. For = SCTP you an choose if you want IPv4-mapped IPv6 addresses or IPv4 = address. It is controlled by > the socket option specified in = https://tools.ietf.org/html/rfc6458#section-8.1.15 I used: optval =3D 1; rc =3D setsockopt (recv_fd, IPPROTO_IPV6, = SCTP_I_WANT_MAPPED_V4_ADDR, &optval, sizeof(optval)); FreeBSD 12.1. Result was "Operation not supported" -- Doug
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6DB5BF95-F7D8-4933-8633-644A553E8C75>