@@ -2031,6 +2031,50 @@ const (
20312031 IF_TYPE_IEEE1394 = 144
20322032)
20332033
2034+ // Enum NL_PREFIX_ORIGIN for [IpAdapterUnicastAddress], see
2035+ // https://learn.microsoft.com/en-us/windows/win32/api/nldef/ne-nldef-nl_prefix_origin
2036+ const (
2037+ IpPrefixOriginOther = 0
2038+ IpPrefixOriginManual = 1
2039+ IpPrefixOriginWellKnown = 2
2040+ IpPrefixOriginDhcp = 3
2041+ IpPrefixOriginRouterAdvertisement = 4
2042+ IpPrefixOriginUnchanged = 1 << 4
2043+ )
2044+
2045+ // Enum NL_SUFFIX_ORIGIN for [IpAdapterUnicastAddress], see
2046+ // https://learn.microsoft.com/en-us/windows/win32/api/nldef/ne-nldef-nl_suffix_origin
2047+ const (
2048+ NlsoOther = 0
2049+ NlsoManual = 1
2050+ NlsoWellKnown = 2
2051+ NlsoDhcp = 3
2052+ NlsoLinkLayerAddress = 4
2053+ NlsoRandom = 5
2054+ IpSuffixOriginOther = 0
2055+ IpSuffixOriginManual = 1
2056+ IpSuffixOriginWellKnown = 2
2057+ IpSuffixOriginDhcp = 3
2058+ IpSuffixOriginLinkLayerAddress = 4
2059+ IpSuffixOriginRandom = 5
2060+ IpSuffixOriginUnchanged = 1 << 4
2061+ )
2062+
2063+ // Enum NL_DAD_STATE for [IpAdapterUnicastAddress], see
2064+ // https://learn.microsoft.com/en-us/windows/win32/api/nldef/ne-nldef-nl_dad_state
2065+ const (
2066+ NldsInvalid = 0
2067+ NldsTentative = 1
2068+ NldsDuplicate = 2
2069+ NldsDeprecated = 3
2070+ NldsPreferred = 4
2071+ IpDadStateInvalid = 0
2072+ IpDadStateTentative = 1
2073+ IpDadStateDuplicate = 2
2074+ IpDadStateDeprecated = 3
2075+ IpDadStatePreferred = 4
2076+ )
2077+
20342078type SocketAddress struct {
20352079 Sockaddr * syscall.RawSockaddrAny
20362080 SockaddrLength int32
0 commit comments