projects
/
oweals
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
857874b
)
system-linux.c: install user routes with RTPROT_STATIC instead of RTPROT_BOOT so...
author
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 11 Aug 2012 16:01:28 +0000
(18:01 +0200)
committer
Jo-Philipp Wich
<jow@openwrt.org>
Sat, 11 Aug 2012 16:01:28 +0000
(18:01 +0200)
system-linux.c
patch
|
blob
|
history
diff --git
a/system-linux.c
b/system-linux.c
index b3b58bea557df328f54f53e39fd06575a086a1a5..e1343a500c0d5007d2e8269282e5d5bb0fe44f5b 100644
(file)
--- 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,
};