2.2.1.2.8 DHCP_SUBNET_INFO

The DHCP_SUBNET_INFO structure defines the information about an IPv4 subnet. This structure is used in the R_DhcpCreateSubnet (section 3.1.4.1) method.

 typedef struct _DHCP_SUBNET_INFO {
   DHCP_IP_ADDRESS SubnetAddress;
   DHCP_IP_MASK SubnetMask;
   LPWSTR SubnetName;
   LPWSTR SubnetComment;
   DHCP_HOST_INFO PrimaryHost;
   DHCP_SUBNET_STATE SubnetState;
 } DHCP_SUBNET_INFO,
  *LPDHCP_SUBNET_INFO;

SubnetAddress: This is of type DHCP_IP_ADDRESS (section 2.2.1.2.1), specifying the IPv4 subnet ID.

SubnetMask: This is of type DHCP_IP_MASK (section 2.2.1.2.2), specifying the subnet IPv4 mask.

SubnetName: A pointer of type LPWSTR to a null-terminated Unicode string that points to the name of the subnet. There is no restriction on the length of this Unicode string.

SubnetComment: A pointer of type LPWSTR to a null-terminated Unicode string that points an optional comment specific to this subnet. There is no restriction on the length of this Unicode string.

PrimaryHost: This is of type DHCP_HOST_INFO (section 2.2.1.2.7) structure, containing information about the DHCPv4 server servicing this IPv4 subnet.

SubnetState: This is an enumeration of type DHCP_SUBNET_STATE (section 2.2.1.1.2), indicating the current state of this IPv4 subnet.