Add IPv6 support to network library
|Reported by:||Owned by:|
|Type of failure:||None/Unknown||Test Case:|
|Related Tickets:||Differential Rev(s):|
This proposal adds two standard protocol-independent functions to Network.BSD to allow the networking code to work with both IPv6 and IPv4 addresses and protocols.
getAddrInfo is the equivalent of
getaddrinfo from RFC 2553.
getNameInfo is the equivalent of
getnameinfo from RFC 2553.
These functions rely on a few new types:
Several global values provide mnemonics for query hints and flags.
Both of these functions are available on all modern operating systems. They unify name and service lookup for IPv4 and IPv6. The code has been autoconfiscated so that it will not be compiled if IPv6 support is not available.
I have not touched existing code in any way, save to add and extend the smallest possible number of types and functions so that IPv6 addresses can be accommodated.