x/net/ipv4: PacketConn.MulticastInterface is implemented incorrectly on Linux #41854
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
Per the man page:
However, the implementation uses the wrong type for retrieval:
https://github.com/golang/net/blob/a7d1128ccaa05167332a625f69773af1a0c6b39c/ipv4/dgramopt.go#L41
https://github.com/golang/net/blob/a7d1128ccaa05167332a625f69773af1a0c6b39c/ipv4/sys_linux.go#L27
https://github.com/golang/net/blob/a7d1128ccaa05167332a625f69773af1a0c6b39c/ipv4/sockopt_posix.go#L17
Oddly, the default case in
getMulticastInterface
would do the right thing.This looks to have been broken in golang/net@353547e
The text was updated successfully, but these errors were encountered: