generic: 5.10: backport Treat IPv4 segment's lowest address as unicast
authorSeth David Schoen <schoen@loyalty.org>
Tue, 3 Jan 2023 04:42:50 +0000 (20:42 -0800)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 3 Jan 2023 23:48:15 +0000 (00:48 +0100)
commit68f983ba4102faac55211c6c6e799641ed3e3da6
tree360e87733d9232c857e38f933344069c7c52c5fe
parent738b04c88128d9963b81bff68426980f587f22d9
generic: 5.10: backport Treat IPv4 segment's lowest address as unicast

Backport patch from kernel 5.14.

Treat only the highest, not the lowest, IPv4 address within a local
subnet as a broadcast address, as subnets do not need two different
broadcast addresses and networking documentation consistently prefers
the highest address as broadcast.

This patch was merged in upstream net-next tree in May 2021 at

https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git/commit/?id=94c821c74bf5

This eventually frees up one address per subnet. It matches behavior
suggested in our Internet-Draft, and also the default behavior of OpenBSD
and FreeBSD.

Signed-off-by: Seth David Schoen <schoen@loyalty.org>
target/linux/generic/backport-5.10/615-v5.14-ip-Treat-IPv4-segment-s-lowest-address-as-unicast.patch [new file with mode: 0644]