proposal: net: add functions for building an IPv6 Solicited-Node Address #25257
Labels
FrozenDueToAge
Proposal
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
The
net
library has variables for well-known IPv6 addresses like theAll Routers Addresses
andAll Nodes Addresses
multicast addresses: https://golang.org/pkg/net/#pkg-variablesHowever it doesn't offer any convenience functions for converting an IPv6 address into a
Solicited-Node Address
multicast address.Equally, when sending an ICMPv6 Neighbor Discovery request, the MAC address is also built by manipulating IPv6 address:
It would be nice if there was a a function which accepted a argument of type
net.IP
, checked that the argument was IPv6, and returned the corresponding Ethernet multicast address as anet.HardwareAddr
.The text was updated successfully, but these errors were encountered: