3.1.4.9 ValidateDhcpScope

The ValidateDhcpScope event captures the common validation rules for the DhcpScope data. The rest of the section assumes the DhcpScope to be validated is passed as a parameter with the name Param_dhcpScope.

The following validations MUST pass for the DhcpScope instance to be valid:

  1. Param_dhcpScope MUST be a valid DhcpScopeV4 or DhcpScopeV6 object as specified in section 2.2.4.151 and section 2.2.4.153 respectively.

  2. Bit-wise AND operation between Param_dhcpScope.StartAddress and Param_dhcpScope.SubnetMask MUST yield Param_dhcpScope.ScopeId.

  3. Similarly, bit-wise AND operation between Param_dhcpScope.EndAddress and Param_dhcpScope.SubnetMask MUST yield Param_dhcpScope.ScopeId.

  4. Param_dhcpScope.StartAddress MUST be less than Param_dhcpScope.EndAddress.