system-linux.c: install user routes with RTPROT_STATIC instead of RTPROT_BOOT so...
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 11 Aug 2012 16:01:28 +0000 (18:01 +0200)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 11 Aug 2012 16:01:28 +0000 (18:01 +0200)
system-linux.c

index b3b58be..e1343a5 100644 (file)
@@ -916,7 +916,7 @@ static int system_rt(struct device *dev, struct device_route *route, int cmd)
                .rtm_family = (alen == 4) ? AF_INET : AF_INET6,
                .rtm_dst_len = route->mask,
                .rtm_table = RT_TABLE_MAIN,
-               .rtm_protocol = (route->flags & DEVADDR_KERNEL) ? RTPROT_KERNEL : RTPROT_BOOT,
+               .rtm_protocol = (route->flags & DEVADDR_KERNEL) ? RTPROT_KERNEL : RTPROT_STATIC,
                .rtm_scope = scope,
                .rtm_type = (cmd == RTM_DELROUTE) ? 0: RTN_UNICAST,
        };