DHCP_SUBNET_ELEMENT_DATA_V5 structure (dhcpsapi.h)

The DHCP_SUBNET_ELEMENT_DATA_V5 structure defines an element that describes a feature or restriction of a subnet. Together, a set of elements describes the set of IP addresses served for a subnet by DHCP or BOOTP. DHCP_SUBNET_ELEMENT_DATA_V5 specifically allows for the definition of BOOTP-served addresses.

Syntax

typedef struct _DHCP_SUBNET_ELEMENT_DATA_V5 {
  DHCP_SUBNET_ELEMENT_TYPE      ElementType;
#if ...
  union {
    DHCP_BOOTP_IP_RANGE    *IpRange;
    DHCP_HOST_INFO         *SecondaryHost;
    DHCP_IP_RESERVATION_V4 *ReservedIp;
    DHCP_IP_RANGE          *ExcludeIpRange;
    DHCP_IP_CLUSTER        *IpUsedCluster;
  } Element;
#if ...
  _DHCP_SUBNET_ELEMENT_UNION_V5 _DHCP_SUBNET_ELEMENT_UNION_V5;
#else
  union {
    DHCP_BOOTP_IP_RANGE    *IpRange;
    DHCP_HOST_INFO         *SecondaryHost;
    DHCP_IP_RESERVATION_V4 *ReservedIp;
    DHCP_IP_RANGE          *ExcludeIpRange;
    DHCP_IP_CLUSTER        *IpUsedCluster;
  } Element;
#endif
#else
  _DHCP_SUBNET_ELEMENT_UNION_V5 _DHCP_SUBNET_ELEMENT_UNION_V5;
#endif
} DHCP_SUBNET_ELEMENT_DATA_V5, *LPDHCP_SUBNET_ELEMENT_DATA_V5;

Members

ElementType

DHCP_SUBNET_ELEMENT_TYPE enumeration value describing the type of element in the subsequent field.

Element

Element.IpRange

DHCP_BOOTP_IP_RANGE structure that contains the set of BOOTP-served IP addresses. This member is present if ElementType is set to DhcpIpRangesBootpOnly.

Element.SecondaryHost

DHCP_HOST_INFO structure that contains the IP addresses of secondary DHCP servers available on the subnet. This member is present if ElementType is set to DhcpSecondaryHosts.

Element.ReservedIp

DHCP_IP_RESERVATION_V4 structure that contains the set of reserved IP addresses for the subnet. This member is present if ElementType is set to DhcpReservedIps.

Element.ExcludeIpRange

DHCP_IP_RANGE structure that contains a range of IP addresses. This member is present if ElementType is set to DhcpIpRanges or DhcpExcludedIpRanges.

Element.IpUsedCluster

_DHCP_SUBNET_ELEMENT_UNION_V5

Requirements

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