Open puradox opened 3 years ago
Description
While writing a PacketImpact test for ICMP sockets, I found a discrepancy with Linux.
When binding to the following IPv6 multicast addresses,
ff01::1
ff02::1
ff02::2
Linux returns the EINVAL error code, but gVisor returns the EADDRNOTAVAIL error code.
EINVAL
EADDRNOTAVAIL
Steps to reproduce
//third_party/gvisor/test/packetimpact/tests:icmp_bind_native_test
//third_party/gvisor/test/packetimpact/tests:icmp_bind_netstack_test
--- FAIL: TestICMPSocketBind/IPv6MulticastInterfaceLocalAllNodes (0.00s) third_party/gvisor/test/packetimpact/tests/icmp_bind_test.go:127: got dut.BindWithErrno(_, _, 9, ff01::1) = (_, cannot assign requested address), want (_, invalid argument) --- FAIL: TestICMPSocketBind/IPv6MulticastLinkLocalAllRouters (0.00s) third_party/gvisor/test/packetimpact/tests/icmp_bind_test.go:127: got dut.BindWithErrno(_, _, 10, ff02::2) = (_, cannot assign requested address), want (_, invalid argument) --- FAIL: TestICMPSocketBind/IPv6MulticastLinkLocalAllNodes (0.00s) third_party/gvisor/test/packetimpact/tests/icmp_bind_test.go:127: got dut.BindWithErrno(_, _, 13, ff02::1) = (_, cannot assign requested address), want (_, invalid argument)
A friendly reminder that this issue had no activity for 120 days.
Description
While writing a PacketImpact test for ICMP sockets, I found a discrepancy with Linux.
When binding to the following IPv6 multicast addresses,
ff01::1
ff02::1
ff02::2
Linux returns the
EINVAL
error code, but gVisor returns theEADDRNOTAVAIL
error code.Steps to reproduce
//third_party/gvisor/test/packetimpact/tests:icmp_bind_native_test
//third_party/gvisor/test/packetimpact/tests:icmp_bind_netstack_test