xiaoxiang781216 commented on code in PR #20346:
URL: https://github.com/apache/nuttx/pull/20346#discussion_r4104833915


##########
include/nuttx/net/ioctl.h:
##########
@@ -81,6 +81,7 @@
 
 #define SIOCSIFFLAGS     _SIOC(0x001a)  /* Sets the interface flags */
 #define SIOCGIFFLAGS     _SIOC(0x001b)  /* Gets the interface flags */
+#define SIOCGIFTSCAPS    _SIOC(0x0046)  /* Gets timestamping capabilities */

Review Comment:
   should we return all feature bits



##########
net/netdev/netdev_ioctl.c:
##########
@@ -1088,6 +1089,11 @@ static int netdev_ifr_ioctl(FAR struct socket *psock, 
int cmd,
         req->ifr_flags = dev->d_flags;
         break;
 
+      case SIOCGIFTSCAPS:  /* Gets timestamping capabilities */
+        req->ifr_flags = dev->d_features & (NETDEV_RX_STAMP |

Review Comment:
   but show we expose these flags through SIOCETHTOOL



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to