RTM_IPV4_MAKE_NET_ADDRESS macro (rtmv2.h)

The RTM_IPV4_MAKE_NET_ADDRESS macro converts an IPv4 address and a length to a generic RTM_NET_ADDRESS structure.

Syntax

void RTM_IPV4_MAKE_NET_ADDRESS(
   NetAddress,
   Addr,
   Len
);

Parameters

NetAddress

Receives the converted address structure.

Addr

Specifies the IPv4 address to convert.

Len

Specifies the length to convert.

Return value

None

Remarks

For example, if a client supplies the Addr 10.10.10.0 and the Len 24, the NetAddress 10.10.10/24 is returned.

The macro is defined as follows:

#include <windows.h>

#define RTM_IPV4_MAKE_NET_ADDRESS(NetAddress, Addr, Len)    \
        RTM_IPV4_SET_ADDR_AND_LEN(NetAddress, Addr, Len)      

Requirements

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

See also

RTM_IPV4_GET_ADDR_AND_LEN

RTM_IPV4_GET_ADDR_AND_MASK

RTM_IPV4_LEN_FROM_MASK

RTM_IPV4_MASK_FROM_LEN

RTM_IPV4_SET_ADDR_AND_LEN

RTM_IPV4_SET_ADDR_AND_MASK

RTM_NET_ADDRESS