RTM_IPV4_MASK_FROM_LEN macro (rtmv2.h)

La macro RTM_IPV4_MASK_FROM_LEN convierte una longitud de ruta genérica en una máscara IPv4.

Sintaxis

void RTM_IPV4_MASK_FROM_LEN(
  Len
);

Parámetros

Len

Especifica la longitud genérica que se va a convertir.

Valor devuelto

None

Observaciones

Por ejemplo, si un cliente proporciona len 24, se devuelve la máscara 255.255.255.255.

La macro se define de la siguiente manera:

#include <windows.h>

#define RTM_IPV4_MASK_FROM_LEN(Len)                         \
        ((Len) ? htonl(~0 << (32 - (Len))): 0);             \       

Requisitos

Requisito Value
Cliente mínimo compatible No se admite ninguno
Servidor mínimo compatible Windows 2000 Server [solo aplicaciones de escritorio]
Plataforma de destino Windows
Encabezado rtmv2.h

Consulte también

RTM_IPV4_GET_ADDR_AND_LEN

RTM_IPV4_GET_ADDR_AND_MASK

RTM_IPV4_LEN_FROM_MASK

RTM_IPV4_MAKE_NET_ADDRESS

RTM_IPV4_SET_ADDR_AND_LEN

RTM_IPV4_SET_ADDR_AND_MASK

RTM_NET_ADDRESS