IP_ADDRESS_PREFIX structure
Applies to: desktop apps only
The IP_ADDRESS_PREFIX structure stores an IP address prefix.
Syntax
typedef struct _IP_ADDRESS_PREFIX {
SOCKADDR_INET Prefix;
UINT8 PrefixLength;
} IP_ADDRESS_PREFIX, *PIP_ADDRESS_PREFIX;
Members
- Prefix
-
The prefix or network part of IP the address represented as an IP address.
The SOCKADDR_INET union is defined in the Ws2ipdef.h header.
- PrefixLength
-
The length, in bits, of the prefix or network part of the IP address. For a unicast IPv4 address, any value greater than 32 is an illegal value. For a unicast IPv6 address, any value greater than 128 is an illegal value. A value of 255 is commonly used to represent an illegal value.
Remarks
The IP_ADDRESS_PREFIX structure is defined on Windows Vista and later.
The IP_ADDRESS_PREFIX structure is the data type of the DestinationPrefix member in the MIB_IPFORWARD_ROW2 structure. A number of functions use the MIB_IPFORWARD_ROW2 structure including CreateIpForwardEntry2, DeleteIpForwardEntry2, GetBestRoute2, GetIpForwardEntry2, GetIpForwardTable2, InitializeIpForwardEntry, NotifyRouteChange2, and SetIpForwardEntry2.
Requirements
|
Minimum supported client | None supported |
|---|---|
|
Minimum supported server | Windows Server 2008 |
|
Header |
|
See also
- CreateIpForwardEntry2
- DeleteIpForwardEntry2
- GetBestRoute2
- GetIpForwardEntry2
- GetIpForwardTable2
- InitializeIpForwardEntry
- MIB_IPFORWARD_ROW2
- NotifyRouteChange2
- SetIpForwardEntry2
- SOCKADDR_INET
Send comments about this topic to Microsoft
Build date: 2/3/2012