Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
proposal: net: add functions for building an IPv6 Solicited-Node Address #25257
However it doesn't offer any convenience functions for converting an IPv6 address into a
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
changed the title
Functions for building an IPv6 `Solicited-Node Address` function
May 4, 2018
For what it's worth, I considered filing an issue for this when building my IPv6 NDP package, but wasn't sure it was a common enough need even for x/net.
I think that the best place for those functions should be an external package, for example, the IPv6 neighbor discovery package mentioned above.
FWIW, I guess that you perhaps might be amused longstanding discussions on IPv6 addressing architecture such as "64-bit IID vs. addressing on non-/64 networks" at IETF, RFC 7136, RFC 7217 and RFC 8064. I personally hope that the net package of the standard library and a few packages in x/net repository keep staying away from such amusement.
Agree that this does not belong in standard net.
What kind of program would need this functionality?