]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Change lowest address on subnet (host 0) not to broadcast by default.
authorMike Karels <karels@FreeBSD.org>
Sun, 5 Sep 2021 18:14:04 +0000 (13:14 -0500)
committerMike Karels <karels@FreeBSD.org>
Fri, 17 Sep 2021 00:42:20 +0000 (19:42 -0500)
commitfd0765933c3ccb059ad7456e657b2e8ed22f58b0
treec1990703db5cdadf0f182edd7ec15f92fcb47f7b
parentb43d7aa09b3c91fb6b652306db2ac13e1459c497
Change lowest address on subnet (host 0) not to broadcast by default.

The address with a host part of all zeros was used as a broadcast long
ago, but the default has been all ones since 4.3BSD and RFC1122.  Until
now, we would broadcast the host zero address as well as the configured
address.  Change to not broadcasting that address by default, but add a
sysctl (net.inet.ip.broadcast_lowest) to re-enable it.  Note that the
correct way to use the zero address for broadcast would be to configure
it as the broadcast address for the network.

See https:/datatracker.ietf.org/doc/draft-schoen-intarea-lowest-address/
and the discussion in https://reviews.freebsd.org/D19316.  Note, Linux
now implements this.

Reviewed by: rgrimes, tuexen; melifaro (previous version)
MFC after: 1 month
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D31861
sys/netinet/in.c