net: ListenPacket cannot receive packets from non-localhost #66662
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-OpenBSD
Milestone
Go version
go version go1.22.1 openbsd/amd64
Output of
go env
in your module/workspace:What did you do?
Consider the following program:
What did you see happen?
On OpenBSD, 7.4, amd64 (Cross compiling from Linux/amd64 on 1.22.1), I did not see the packet arrive on the Listening Socket(Addresses retracted):
Note the lack of output. However if the traffic is generated on the same box, then we see packets arrive as expected:
This is unexpected, as we know the packet is arriving in userspace. If
tcpdump
can see the packet, and we can see the packets in Linux without issues, then we should also see a packet fromnet.ListenPacket
in OpenBSD.What did you expect to see?
This works as expected on Linux, where we bind to an external IP, and we see the ICMP (proto 1) packet arrive in both userspace, and at the connection:
The text was updated successfully, but these errors were encountered: