]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: drop invalid and unused flag 25552/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 28 Nov 2022 19:30:38 +0000 (04:30 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 28 Nov 2022 19:31:27 +0000 (04:31 +0900)
Route.flags can only take RTNH_F_ONLINK, and other flags are silently
dropped.

src/network/networkd-ndisc.c

index a811372e054ec044fd0d740abdb3d6353e5e1bf8..6ee098a0154d210794d9e2f72588429ed6d9ff86 100644 (file)
@@ -442,7 +442,6 @@ static int ndisc_router_process_onlink_prefix(Link *link, sd_ndisc_router *rt) {
                 return log_oom();
 
         route->family = AF_INET6;
-        route->flags = RTM_F_PREFIX;
         route->dst.in6 = prefix;
         route->dst_prefixlen = prefixlen;
         route->lifetime_usec = sec_to_usec(lifetime_sec, timestamp_usec);