From: "Ivan Skytte Jørgensen" <isj-sctp@i1.dk>
To: linux-sctp@vger.kernel.org
Subject: Re: wrong family for IP addresses given by sctp library
Date: Wed, 03 Dec 2014 11:03:19 +0000 [thread overview]
Message-ID: <8607877.vlUqEHCzXe@isjsys> (raw)
In-Reply-To: <B8F3375A902A0648BD5D9A5ADDE687B00569F8CC@cadine.france.prosodie.local>
On Wednesday 03 December 2014 11:50:31 Boiteux Frederic wrote:
>
> I'm trying to use SCTP on Linux machines with 'old' kernels (Debian 5, 2.6.26 kernel and Debian 7, 3.2 kernel). I've setup a program which can handles IPv4 and IPv6 addresses, and for that, I use a socket with AF_INET6 family, then I bind it to IPv4 or v6 addresses with sctp_bindx() (its manual page says this call can handle both v4 and v6 adresses if the socket is an IPv6 one).
> It seems to work well, but I have a strange behavior : on a test platform with only IPv4 addresses, when I get messages or notifications (using sctp_recvmsg()), the addresses given in it (IP address of the sender, or confirmation/fail of some peer addresses) are always from the IPv6 family !
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.
/isj
next prev parent reply other threads:[~2014-12-03 11:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-03 10:50 wrong family for IP addresses given by sctp library Boiteux Frederic
2014-12-03 11:03 ` Ivan Skytte Jørgensen [this message]
2014-12-03 11:25 ` Michael Tuexen
2014-12-03 11:30 ` Daniel Borkmann
2014-12-03 13:27 ` Boiteux Frederic
2014-12-03 15:30 ` Michael Tuexen
2014-12-03 15:36 ` Vlad Yasevich
2014-12-03 15:41 ` Boiteux Frederic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8607877.vlUqEHCzXe@isjsys \
--to=isj-sctp@i1.dk \
--cc=linux-sctp@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.