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:
e6e1fd1
)
netifd: Don't export default route via UBUS when disabled
author
Hans Dedecker
<dedeckeh@gmail.com>
Tue, 19 Nov 2013 11:17:04 +0000
(12:17 +0100)
committer
Felix Fietkau
<nbd@openwrt.org>
Sun, 8 Dec 2013 17:43:51 +0000
(18:43 +0100)
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
ubus.c
patch
|
blob
|
history
diff --git
a/ubus.c
b/ubus.c
index 794444e8102896173cb42b100d8f0dfe801ba926..9bd5d8c268817e6a042b9f8ae27755c8529180cf 100644
(file)
--- a/
ubus.c
+++ b/
ubus.c
@@
-463,6
+463,9
@@
interface_ip_dump_route_list(struct interface_ip_settings *ip, bool enabled)
if (route->enabled != enabled)
continue;
+ if ((ip->no_defaultroute == enabled) && !route->mask)
+ continue;
+
if ((route->flags & DEVADDR_FAMILY) == DEVADDR_INET4)
af = AF_INET;
else