Construct from a given network start and mask.
| Name | Description |
|---|---|
| addr [in] | Network start. Must be IPv4 or IPv6, otherwise an invalid subnet is created. |
| mask [in] | Network mask, must be of the same type as addr and not contain 0-bits followed by 1-bits. Otherwise an invalid subnet is created. |