gvisor icon indicating copy to clipboard operation
gvisor copied to clipboard

UDPv4 sockets don't return EAFNOSUPPORT when sending to IPv6 addresses

Open puradox opened this issue 4 years ago • 4 comments

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.

puradox avatar May 10 '21 23:05 puradox

A friendly reminder that this issue had no activity for 120 days.

github-actions[bot] avatar Sep 14 '23 00:09 github-actions[bot]

This issue has been closed due to lack of activity.

github-actions[bot] avatar Dec 13 '23 00:12 github-actions[bot]

There are TODOs still referencing this issue:

  1. test/packetimpact/tests/generic_dgram_socket_send_recv_test.go:640: Remove this if statement once UDPv4 sockets

Search TODO

github-actions[bot] avatar Dec 14 '23 00:12 github-actions[bot]

A friendly reminder that this issue had no activity for 120 days.

github-actions[bot] avatar Apr 13 '24 00:04 github-actions[bot]