]> git.ipfire.org Git - thirdparty/systemd.git/commit
network/ndisc: fix verification of sender of Redirect message
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 10 Apr 2024 06:07:30 +0000 (15:07 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 11 Apr 2024 19:59:42 +0000 (04:59 +0900)
commit9944629eeeeadd02b7e79592d213707696ea9347
treefed9435bef052fb18f8f6ddcdd098a451bc25099
parentf76814757ddbaf7f54d8828661b5978f066dea25
network/ndisc: fix verification of sender of Redirect message

The sender must be the first-hop router of the destination. Previously,
we only accepted Redirect messages whose sender is the current default
router with the highest priority.

See RFC 4861 section 8.1 for more details.

Fixes #31981.
src/network/networkd-ndisc.c
test/test-network/systemd-networkd-tests.py