]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: fix logic for checking gateway address is ready
authorYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 20 Aug 2021 18:51:39 +0000 (03:51 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 22 Aug 2021 06:35:22 +0000 (15:35 +0900)
commit3333350a0e1917395d3654731ca985ea668bca9b
tree2612367a4cd3433133daea7ec40f3db99128f6ab
parent66dc9b463462a6cadec6d082f1cb744c4e04088d
network: fix logic for checking gateway address is ready

This fixes the followings:
- The corresponding route or address to the gateway address must be in
  the same link.
- IPv6 link local address is not necessary to be reachable.

Fixes an issue reported in https://github.com/systemd/systemd/issues/8686#issuecomment-902562324.
src/network/networkd-nexthop.c
src/network/networkd-route.c
src/network/networkd-route.h