net/netlink/netlink_route.c: Correct the return value

This commit is contained in:
chao.an 2020-02-25 16:32:37 +08:00 committed by Gregory Nutt
parent d52628979a
commit 42d97079de
1 changed files with 1 additions and 1 deletions

View File

@ -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));