SCTP: connect() hangs when previously binding to more than 2 IP addresses
I am writing a client - server application over SCTP. I am using the latest LKSCTP release. Both client and server use AF_INET6, one-to-one SCTP sockets. The server has two IP addresses, one IPv4 and one IPv6 on the same interface. My client is also multi-homed: it has two IPv4 addresses and one IPv6 address: ethernet interface has both IPv4 and IPv6 and wlan has only IPv4.
In the client application, using sctp_bindx(), I bind to all three addresses successfully. Then, when I call connect() to connect to the server (by specifying the server's IPv4 or IPv6 address), my client process hangs - connect does not return at all. Not even the first packet (INIT) is sent by the client.
On the other hand, when I use sctp_bindx() to bind only to two addresses (2x IPv4 or 1xIPv4 + 1xIPv6) and then call connect(), it works fine. I can even use sctp_bindx() to bind to the third address just after connect() and I can see that all three addresses finally belong to the association.
Any help would be highly appreciated!
Thanks in advance