From: Yu Watanabe Date: Wed, 28 Apr 2021 13:26:48 +0000 (+0900) Subject: network: ndisc: fix ipv6 route preference for routes with Gateway=_ipv6ra X-Git-Tag: v249-rc1~327^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=086a351ad9c39f49d050822b28e22aa461edec29;p=thirdparty%2Fsystemd.git network: ndisc: fix ipv6 route preference for routes with Gateway=_ipv6ra --- diff --git a/src/network/networkd-ndisc.c b/src/network/networkd-ndisc.c index af2d6a3ef7b..988c673255e 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;