Expand Minimize

DHCP_SUBNET_ELEMENT_DATA structure

The DHCP_SUBNET_ELEMENT_DATA 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.

Syntax


typedef struct _DHCP_SUBNET_ELEMENT_DATA {
  DHCP_SUBNET_ELEMENT_TYPE ElementType;
  union {
    DHCP_IP_RANGE       *IpRange;
    DHCP_HOST_INFO      *SecondaryHost;
    DHCP_IP_RESERVATION *ReservedIp;
    DHCP_IP_RANGE       *ExcludeIpRange;
    DHCP_IP_CLUSTER     *IpUsedCluster;
  } Element;
} DHCP_SUBNET_ELEMENT_DATA, *LPDHCP_SUBNET_ELEMENT_DATA;

Members

ElementType

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

Element
IpRange

DHCP_IP_RANGE structure that contains the set of DHCP-served IP addresses. This member is present if ElementType is set to DhcpIpRanges.

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.

ReservedIp

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

ExcludeIpRange

DHCP_IP_RANGE structure that contains the set of excluded IP addresses. This member is present if ElementType is set to DhcpExcludedIpRanges.

IpUsedCluster

DHCP_IP_CLUSTER structure that contains the set of clusters within the subnet. This member is present if ElementType is set to DhcpIpUsedClusters.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2008, Windows Server 2008 R2 [desktop apps only]

Header

Dhcpsapi.h

See also

DHCP_SUBNET_ELEMENT_TYPE
DHCP_SUBNET_ELEMENT_INFO_ARRAY

 

 

Community Additions

ADD
Show:
© 2014 Microsoft