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.
lwip_sendto() rejects IPv4 destinations on IPv6 socket
lwip_sendto() rejects IPv4 destinations on IPv6 socket
- Attachments
-
- lwip-allow-ipv4-sendto.diff.txt
- (614 Bytes) Downloaded 915 times
Who is online
Users browsing this forum: No registered users and 39 guests