RTM_NET_ADDRESS structure (rtmv2.h)

The RTM_NET_ADDRESS structure is used to communicate address information to the routing table manager for any address family. The address family must use only with contiguous address masks that are less than 8 bytes.

Syntax

typedef struct _RTM_NET_ADDRESS {
  USHORT AddressFamily;
  USHORT NumBits;
  UCHAR  AddrBits[RTM_MAX_ADDRESS_SIZE];
} RTM_NET_ADDRESS, *PRTM_NET_ADDRESS;

Members

AddressFamily

Specifies the type of network address for this address (such as IPv4).

NumBits

Specifies the number of bits in the network part of the AddrBits bit array (for example, 192.168.0.0 has 8 bits).

AddrBits

Specifies an array of bits that form the address prefix.

Remarks

If the client specifies an address and a mask length that do not correspond to each other, inconsistent results are returned by the routing table manager. For example, if a client specifies an address as 10.10.10.10 and a length as 24 when calling RTM_IPV4_SET_ADDR_AND_LEN, the routing table manager may return an incorrect NetAddress.

Requirements

   
Minimum supported client None supported
Minimum supported server Windows 2000 Server [desktop apps only]
Header rtmv2.h

See also

RTM_DEST_INFO

RTM_NEXTHOP_INFO

RtmAddRouteToDest

RtmCreateDestEnum

RtmCreateNextHopEnum

RtmCreateRouteEnum

RtmGetExactMatchDestination

RtmGetExactMatchRoute

RtmGetMostSpecificDestination

RtmGetRouteInfo