summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-04-28 15:26:48 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-04-29 01:50:54 +0200
commit086a351ad9c39f49d050822b28e22aa461edec29 (patch)
tree69bae44114bc4fdfd6bd57a99a179ddb2301fd5f /src/network
parentnetwork: neighbor: downgrade log level (diff)
downloadsystemd-086a351ad9c39f49d050822b28e22aa461edec29.tar.xz
systemd-086a351ad9c39f49d050822b28e22aa461edec29.zip
network: ndisc: fix ipv6 route preference for routes with Gateway=_ipv6ra
Diffstat (limited to 'src/network')
-rw-r--r--src/network/networkd-ndisc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c
index af2d6a3ef7..988c673255 100644
--- a/src/network/networkd-ndisc.c
+++ b/src/network/networkd-ndisc.c
@@ -558,7 +558,7 @@ static int ndisc_router_process_default(Link *link, sd_ndisc_router *rt) {
if (!route_gw->protocol_set)
route_gw->protocol = RTPROT_RA;
if (!route_gw->pref_set)
- route->pref = preference;
+ route_gw->pref = preference;
route_gw->lifetime = usec_add(time_now, lifetime * USEC_PER_SEC);
if (route_gw->mtu == 0)
route_gw->mtu = mtu;