From: Jo-Philipp Wich Date: Sat, 11 Aug 2012 16:01:28 +0000 (+0200) Subject: system-linux.c: install user routes with RTPROT_STATIC instead of RTPROT_BOOT so... X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=9411d498c46fe3f1c4d79eb8fa0b7c97dd32a990;ds=sidebyside system-linux.c: install user routes with RTPROT_STATIC instead of RTPROT_BOOT so that routing daemons like quagga will pick it up --- diff --git a/system-linux.c b/system-linux.c index b3b58be..e1343a5 100644 --- a/system-linux.c +++ b/system-linux.c @@ -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, };