kern/136257: Able to set an invalid netmask

brian at brian at
Fri Jul 3 05:40:53 UTC 2009

Synopsis: Able to set an invalid netmask

State-Changed-From-To: open->feedback
State-Changed-By: brian
State-Changed-When: Fri Jul 3 05:38:27 UTC 2009

Can you be more specific as to why you think there's a problem?
FreeBSD supports non-contiguous netmasks - they don't have to
be composed of a series of binary ones followed by all binary
zeros.  When a netmask is non-contiguous, the system shows it
as a hex value rather than as a number of one-bits.

Unless you've got any specific problems with this, I'd like
to close this as a feature not a bug.

More information about the freebsd-bugs mailing list