mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 04:19:37 +08:00
net/netlink/netlink_route.c: Correct the return value
This commit is contained in:
@@ -423,7 +423,7 @@ static int netlink_device_callback(FAR struct net_driver_s *dev,
|
|||||||
#else
|
#else
|
||||||
resp->iface.ifi_index = 0;
|
resp->iface.ifi_index = 0;
|
||||||
#endif
|
#endif
|
||||||
resp->iface.ifi_flags = devinfo->req->hdr.nlmsg_flags;
|
resp->iface.ifi_flags = dev->d_flags;
|
||||||
resp->iface.ifi_change = 0xffffffff;
|
resp->iface.ifi_change = 0xffffffff;
|
||||||
|
|
||||||
resp->attr.rta_len = RTA_LENGTH(strnlen(dev->d_ifname, IFNAMSIZ));
|
resp->attr.rta_len = RTA_LENGTH(strnlen(dev->d_ifname, IFNAMSIZ));
|
||||||
|
|||||||
Reference in New Issue
Block a user