netutils/netlib/netlib_getdevs.c: Add comments and a placeholder for the RTM_NEWROUTE response.
This commit is contained in:
parent
5c7c34f559
commit
370bd94a6b
@ -203,10 +203,14 @@ ssize_t netlib_get_devices(FAR struct netlib_device_s *devlist,
|
||||
|
||||
switch (resp.hdr.nlmsg_type)
|
||||
{
|
||||
/* NLMSG_DONE means that the entire list of devices has been returned */
|
||||
|
||||
case NLMSG_DONE:
|
||||
enddump = true;
|
||||
break;
|
||||
|
||||
/* RTM_NEWLINK provides information about one device */
|
||||
|
||||
case RTM_NEWLINK:
|
||||
{
|
||||
FAR struct rtattr *attr;
|
||||
@ -252,6 +256,17 @@ ssize_t netlib_get_devices(FAR struct netlib_device_s *devlist,
|
||||
}
|
||||
break;
|
||||
|
||||
/* RTM_NEWROUTE provides routing information for the device
|
||||
* (address, gateway, etc.)
|
||||
*/
|
||||
|
||||
case RTM_NEWROUTE:
|
||||
{
|
||||
fprintf(stderr, "WARNING: RTM_NEWLINK Message type not "
|
||||
"implemented\n");
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
fprintf(stderr, "ERROR: Message type %u, length %lu\n",
|
||||
resp.hdr.nlmsg_type, (unsigned long)resp.hdr.nlmsg_len);
|
||||
|
Loading…
Reference in New Issue
Block a user