UDPv4 sockets don't return EAFNOSUPPORT when sending to IPv6 addresses
Description
While refactoring a PacketImpact test for UDP sockets, I found a discrepancy with Linux.
When bound to an IPv4 address and sending to an IPv6 address, sendto returns EINVAL whereas Linux returns EAFNOSUPPORT.
Steps to reproduce
Run test //third_party/gvisor/test/packetimpact/tests:generic_dgram_socket_send_recv_test with the if statement linked to this bug removed.
A friendly reminder that this issue had no activity for 120 days.
This issue has been closed due to lack of activity.
There are TODOs still referencing this issue:
- test/packetimpact/tests/generic_dgram_socket_send_recv_test.go:640: Remove this if statement once UDPv4 sockets
Search TODO
A friendly reminder that this issue had no activity for 120 days.