Commit e5d68e41 authored by Seth David Schoen's avatar Seth David Schoen Committed by Liu Jian
Browse files

ip: Treat IPv4 segment's lowest address as unicast

mainline inclusion
from mainline-v5.14-rc1
commit 94c821c7
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I9PX8J

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=94c821c74bf5fe0c25e09df5334a16f98608db90



---------------------------

Treat only the highest, not the lowest, IPv4 address within a local
subnet as a broadcast address.

Signed-off-by: default avatarSeth David Schoen <schoen@loyalty.org>
Suggested-by: default avatarJohn Gilmore <gnu@toad.com>
Acked-by: default avatarDave Taht <dave.taht@gmail.com>
Reviewed-by: default avatarDavid Ahern <dsahern@kernel.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>

Conflicts:
	net/ipv4/fib_frontend.c
[There is no conflict when cherry-picking. But we backport newer commit
0c51e12e causing the checkconflict CI fail.]
Signed-off-by: default avatarLiu Jian <liujian56@huawei.com>
parent c6c0f64f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment