JacobCrabill commented on code in PR #6057:
URL: https://github.com/apache/incubator-nuttx/pull/6057#discussion_r854216926


##########
include/net/if.h:
##########
@@ -196,36 +210,37 @@ struct lifreq
 
 struct lifconf
 {
-  size_t                      lifc_len;                 /* Size of buffer */
+  size_t                      lifc_len;              /* Size of buffer */
   union
   {
-    FAR char                 *lifcu_buf;                /* Buffer address */
-    FAR struct lifreq        *lifcu_req;                /* Array of ifreq 
structures */
+    FAR char                 *lifcu_buf;             /* Buffer address */
+    FAR struct lifreq        *lifcu_req;             /* Array of ifreq 
structures */
   } lifc_ifcu;
 };
 
-#define lifc_buf              lifc_ifcu.lifcu_buf       /* Buffer address */
-#define lifc_req              lifc_ifcu.lifcu_req       /* Array of ifreq 
structures */
+#define lifc_buf              lifc_ifcu.lifcu_buf    /* Buffer address */
+#define lifc_req              lifc_ifcu.lifcu_req    /* Array of ifreq 
structures */
 
 /* This is the I/F request that should be used with IPv4. */
 
 struct ifreq
 {
-  char                        ifr_name[IFNAMSIZ];       /* Network device name 
(e.g. "eth0") */
-  int16_t                     ifr_ifindex;              /* Interface index */
+  char                         ifr_name[IFNAMSIZ];  /* Network device name 
(e.g. "eth0") */
+  int16_t                      ifr_ifindex;         /* Interface index */
   union
   {
-    struct sockaddr           ifru_addr;                /* IP Address */
-    struct sockaddr           ifru_dstaddr;             /* P-to-P Address */
-    struct sockaddr           ifru_broadaddr;           /* Broadcast address */
-    struct sockaddr           ifru_netmask;             /* Netmask */
-    struct sockaddr           ifru_hwaddr;              /* MAC address */
-    int                       ifru_count;               /* Number of devices */
-    int                       ifru_mtu;                 /* MTU size */
-    uint8_t                   ifru_flags;               /* Interface flags */
-    struct mii_ioctl_notify_s ifru_mii_notify;          /* PHY event 
notification */
-    struct mii_ioctl_data_s   ifru_mii_data;            /* MII request data */
-    struct can_ioctl_data_s   ifru_can_data;            /* CAN bitrate request 
data */
+    struct sockaddr            ifru_addr;           /* IP Address */
+    struct sockaddr            ifru_dstaddr;        /* P-to-P Address */
+    struct sockaddr            ifru_broadaddr;      /* Broadcast address */
+    struct sockaddr            ifru_netmask;        /* Netmask */
+    struct sockaddr            ifru_hwaddr;         /* MAC address */
+    int                        ifru_count;          /* Number of devices */
+    int                        ifru_mtu;            /* MTU size */
+    uint8_t                    ifru_flags;          /* Interface flags */
+    struct mii_ioctl_notify_s  ifru_mii_notify;     /* PHY event notification 
*/
+    struct mii_ioctl_data_s    ifru_mii_data;       /* MII request data */
+    struct can_ioctl_data_s    ifru_can_bitrate;    /* CAN bitrate request 
data */
+    struct can_ioctl_filter_s  ifru_can_filter;     /* CAN filter request data 
*/

Review Comment:
   I think I left it out originally because there are no uses of the IPv6 
struct for SocketCAN anywhere in NuttX or NuttX-apps, but the documentation 
comment does suggest the two structs should be identical.  Added.



-- 
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