]> git.ipfire.org Git - thirdparty/systemd.git/commit
network/route: find/distinguish routes in the same way that the kernel uses
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 13 Jan 2024 04:16:10 +0000 (13:16 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 16 Jan 2024 16:13:53 +0000 (16:13 +0000)
commit47420573a778e83f2bddd536cf185cd5829e8ba9
tree2536b1627c5c478a834099e78da96a5282c7f89b
parent50d5f64632866f67b4fc50774a18c8c3eb3e4c04
network/route: find/distinguish routes in the same way that the kernel uses

The kernel uses different logics to find or distinguish IPv4 and IPv6 routes.
Let's follow the same way that the kernel uses.
See comments in the code for more details.
src/network/networkd-route-nexthop.c
src/network/networkd-route-nexthop.h
src/network/networkd-route.c