ICMP bind errors do not match Linux
Description
While creating a syscall test for ICMP socket binding, I found a discrepancy with Linux.
When binding an ICMP socket with an IPv6 address, bind() returns EINVAL whereas Linux returns EAFNOSUPPORT.
Steps to reproduce
Run test //third_party/gvisor/test/syscalls:ping_socket_test_runsc_kvm_vfs2 with the if statement linked to this bug removed.
We also return EADDRNOTAVAIL instead of EINVAL when binding to multicast addresses
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/syscalls/linux/ping_socket.cc:549: Remove want_gvisor from all the
Search TODO
A friendly reminder that this issue had no activity for 120 days.