2.2.1.2.41 DHCP_OPTION_SCOPE_INFO

The DHCP_OPTION_SCOPE_INFO structure defines the information about the option. The information consists of the option type and the level of the option (server level, scope level, or reservation level).

 typedef struct _DHCP_OPTION_SCOPE_INFO {
   DHCP_OPTION_SCOPE_TYPE ScopeType;
   [switch_is(ScopeType), switch_type(DHCP_OPTION_SCOPE_TYPE)] 
     union _DHCP_OPTION_SCOPE_UNION {
     [case(DhcpDefaultOptions)] 
             ;
     [case(DhcpGlobalOptions)] 
             ;
     [case(DhcpSubnetOptions)] DHCP_IP_ADDRESS SubnetScopeInfo;
     [case(DhcpReservedOptions)] 
       DHCP_RESERVED_SCOPE ReservedScopeInfo;
     [case(DhcpMScopeOptions)] 
       LPWSTR MScopeInfo;
   } ScopeInfo;
 } DHCP_OPTION_SCOPE_INFO,
  *LPDHCP_OPTION_SCOPE_INFO;

ScopeType: This is of type DHCP_OPTION_SCOPE_TYPE (section 2.2.1.1.4) enumeration, defining the scope of the DHCP option and indicating which of the following fields in the union is used.

ScopeInfo: This is a union from which one of the following fields is used based on the value of the ScopeType member:

SubnetScopeInfo: This is of type DHCP_IP_ADDRESS (section 2.2.1.2.1), containing the IPv4 subnet ID as a DWORD.

ReservedScopeInfo: This is a DHCP_RESERVED_SCOPE (section 2.2.1.2.40) structure that contains an IPv4 reservation and its corresponding IPv4 subnet ID.

MScopeInfo: This is a pointer to a null-terminated Unicode string that contains the multicast scope name.