Page 1 of 1

lwip_sendto() rejects IPv4 destinations on IPv6 socket

Posted: Tue Oct 31, 2017 3:38 am
by davidm
Receiving IPv4 packets on an IPv6 socket works just fine but trying to reply to such a packet with sendto() causes EINVAL because lwip_sendto() rejects this case. The attached patch simply disables the check and that fixes the problem. However, I'm not sure if that has any other unintended consequences.

The lwip stable branch seems to have this issue fixed already.