SCOPE_LEVEL enumeration (ws2def.h)
The SCOPE_LEVEL enumeration is used with the IP_ADAPTER_ADDRESSES structure to identify scope levels for IPv6 addresses.
Syntax
typedef enum {
ScopeLevelInterface = 1,
ScopeLevelLink = 2,
ScopeLevelSubnet = 3,
ScopeLevelAdmin = 4,
ScopeLevelSite = 5,
ScopeLevelOrganization = 8,
ScopeLevelGlobal = 14,
ScopeLevelCount = 16
} SCOPE_LEVEL;
Constants
ScopeLevelInterface Value: 1 The scope is interface-level. |
ScopeLevelLink Value: 2 The scope is link-level. |
ScopeLevelSubnet Value: 3 The scope is subnet-level. |
ScopeLevelAdmin Value: 4 The scope is admin-level. |
ScopeLevelSite Value: 5 The scope is site-level. |
ScopeLevelOrganization Value: 8 The scope is organization-level. |
ScopeLevelGlobal Value: 14 The scope is global. |
ScopeLevelCount Value: 16 |
Remarks
The SCOPE_LEVEL enumeration is used in the ZoneIndices member of the IP_ADAPTER_ADDRESSES structure.
On Windows Vista and later as well as on the Microsoft Windows Software Development Kit (SDK), the organization of header files has changed and the SCOPE_LEVEL enumeration type is defined in the Ws2def.h header file. Note that the Ws2def.h header file is automatically included in Winsock2.h, and should never be used directly.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows XP [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Header | ws2def.h (include Winsock2.h) |