lwip_sendto() rejects IPv4 destinations on IPv6 socket

davidm
Posts: 6
Joined: Thu Feb 09, 2017 5:40 am

lwip_sendto() rejects IPv4 destinations on IPv6 socket

Postby davidm » Tue Oct 31, 2017 3:38 am

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.
Attachments
lwip-allow-ipv4-sendto.diff.txt
(614 Bytes) Downloaded 547 times

Who is online

Users browsing this forum: No registered users and 2 guests