From e0b08ff5337344bcc78d053dfc90816d8767cb7d Mon Sep 17 00:00:00 2001 From: Amin Ben Ramdhane Date: Fri, 23 Nov 2018 00:37:10 +0100 Subject: [PATCH] Fix get value of "Device.Routing.Router.{i}.IPv4Forwarding.{i}.ForwardingMetric" and "Device.Routing.Router.{i}.IPv4Forwarding.{i}.GatewayIPAddress" parameters --- dm/dmtree/tr181/routing.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dm/dmtree/tr181/routing.c b/dm/dmtree/tr181/routing.c index c8d93cf..b2457c3 100644 --- a/dm/dmtree/tr181/routing.c +++ b/dm/dmtree/tr181/routing.c @@ -212,6 +212,9 @@ static struct uci_section *update_route_dynamic_section(struct proc_routing *pro DMUCI_ADD_SECTION(icwmpd, "dmmap_route_forwarding", "route_dynamic", &s, &name); DMUCI_SET_VALUE_BY_SECTION(icwmpd, s, "target", proute->destination); DMUCI_SET_VALUE_BY_SECTION(icwmpd, s, "netmask", proute->mask); + DMUCI_SET_VALUE_BY_SECTION(icwmpd, s, "metric", proute->metric); + DMUCI_SET_VALUE_BY_SECTION(icwmpd, s, "gateway", proute->gateway); + DMUCI_SET_VALUE_BY_SECTION(icwmpd, s, "interface", proute->iface); } return s; }