0021301: Allow 255.255.255.255 netmask on non point-to-point interfaces
Migrated from: https://tracker.clearos.com/view.php?id=21301
Reported by: PBaldwin
Some providers will set an external/WAN IP with a 255.255.255.255 netmask on a non point-to-point interface. Here's an example on a system configured as a DHCP client:
route
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface default gateway 0.0.0.0 UG 0 0 0 eth0 gateway 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
ClearOS considers a 255.255.255.255 netmask on a non point-to-point interface invalid.
Loosen this validation at the API layer, but continue to disallow it's use in the UI or when configuring IPs via the API. In other word, it will be allowed by DHCP clients, but not allowed in the UI.