HomeFreeBSD

ifconfig: warn if setting an Internet address without mask

Description

ifconfig: warn if setting an Internet address without mask

Add a postproc function for af_inet, and add interface flags as a
parameter. Check there if setting an address without a mask unless
the interface is loopback or point-to-point, where mask is not really
meaningful; warn if so. This will hopefully be an error in the future.

(cherry picked from commit d8237b95552807e937fc389c7e2237679ef0c984)

Details

Provenance
karelsAuthored on Oct 28 2021, 2:32 PM
Parents
rGcdae3f501d1b: kernel: deprecate Internet Class A/B/C
Branches
Unknown
Tags
Unknown