summaryrefslogtreecommitdiffhomepage
path: root/system-linux.c
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2012-08-11 18:01:28 +0200
committerJo-Philipp Wich <jow@openwrt.org>2012-08-11 18:01:28 +0200
commit9411d498c46fe3f1c4d79eb8fa0b7c97dd32a990 (patch)
tree3ebe3964336aff68e1da2e3bd6c3a5cddeaefc83 /system-linux.c
parent857874b2d4f92b800ecc12a5e52adeaf3855b101 (diff)
system-linux.c: install user routes with RTPROT_STATIC instead of RTPROT_BOOT so that routing daemons like quagga will pick it up
Diffstat (limited to 'system-linux.c')
-rw-r--r--system-linux.c2
1 files changed, 1 insertions, 1 deletions
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,
};