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:28:38 UTC
[incubator-nuttx] branch pr376 updated: netlink: correct the return
value
This is an automated email from the ASF dual-hosted git repository.
gnutt pushed a commit to branch pr376
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/pr376 by this push:
new 6def932 netlink: correct the return value
6def932 is described below
commit 6def932a888c03ef99ce80309259c1784ddb8e69
Author: chao.an <an...@xiaomi.com>
AuthorDate: Tue Feb 25 16:32:37 2020 +0800
netlink: correct the return value
Change-Id: I60ef35dd658f7db25894702c4c7958547cd17d63
Signed-off-by: chao.an <an...@xiaomi.com>
---
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));