You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gn...@apache.org on 2020/02/25 13:38:33 UTC
[incubator-nuttx] branch master updated:
net/netlink/netlink_route.c: Correct the return value
This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 42d9707 net/netlink/netlink_route.c: Correct the return value
42d9707 is described below
commit 42d97079dedb0aa724aa02bdd75c3f1957260222
Author: chao.an <an...@xiaomi.com>
AuthorDate: Tue Feb 25 16:32:37 2020 +0800
net/netlink/netlink_route.c: Correct the return value
---
net/netlink/netlink_route.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net/netlink/netlink_route.c b/net/netlink/netlink_route.c
index b26bfff..68b3ec0 100644
--- a/net/netlink/netlink_route.c
+++ b/net/netlink/netlink_route.c
@@ -423,7 +423,7 @@ static int netlink_device_callback(FAR struct net_driver_s *dev,
#else
resp->iface.ifi_index = 0;
#endif
- resp->iface.ifi_flags = devinfo->req->hdr.nlmsg_flags;
+ resp->iface.ifi_flags = dev->d_flags;
resp->iface.ifi_change = 0xffffffff;
resp->attr.rta_len = RTA_LENGTH(strnlen(dev->d_ifname, IFNAMSIZ));