From 9d6c607afcf565363ec3afe424b28e20d3baefb1 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 12 Nov 2019 10:36:05 -0600 Subject: [PATCH] net/netlink/netlink_route.c: Add some comments. --- net/netlink/netlink_route.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/net/netlink/netlink_route.c b/net/netlink/netlink_route.c index 43bf748affd..89a9235c774 100644 --- a/net/netlink/netlink_route.c +++ b/net/netlink/netlink_route.c @@ -430,6 +430,13 @@ static int netlink_device_callback(FAR struct net_driver_s *dev, strncpy((FAR char *)resp->data, dev->d_ifname, IFNAMSIZ); + /* REVISIT: Another response should be provided with nlmsg_type = + * RTM_NEWROUTE. That response should include struct rtmsg followed by a + * number of attributes. This response provides routing information for + * the device including address (RTA_DST) and gateway (RTA_GATEWAY) + * attributes. + */ + /* Finally, add the data to the list of pending responses */ netlink_add_response(devinfo->psock, (FAR struct netlink_response_s *)alloc);