Skip to content

Commit 1837ff9

Browse files
committed
windows: add enums for IpAdapterUnicastAddress
These are for the enum fields in IpAdapterUnicastAddress.
1 parent 31ef9e7 commit 1837ff9

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

windows/types_windows.go

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
20342078
type SocketAddress struct {
20352079
Sockaddr *syscall.RawSockaddrAny
20362080
SockaddrLength int32

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy