projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netifd: Route type support
[project/netifd.git]
/
ubus.c
diff --git
a/ubus.c
b/ubus.c
index
cec2e88
..
9a573c6
100644
(file)
--- a/
ubus.c
+++ b/
ubus.c
@@
-486,6
+486,9
@@
interface_ip_dump_route_list(struct interface_ip_settings *ip, bool enabled)
inet_ntop(af, &route->nexthop, buf, buflen);
blobmsg_add_string_buffer(&b);
+ if (route->flags & DEVROUTE_TYPE)
+ blobmsg_add_u32(&b, "type", route->type);
+
if (route->flags & DEVROUTE_MTU)
blobmsg_add_u32(&b, "mtu", route->mtu);