xiaoxiang781216 commented on code in PR #6997: URL: https://github.com/apache/incubator-nuttx/pull/6997#discussion_r962322618
########## net/procfs/net_procfs.c: ########## @@ -98,6 +112,26 @@ static int netprocfs_rewinddir(FAR struct fs_dirent_s *dir); static int netprocfs_stat(FAR const char *relpath, FAR struct stat *buf); +/**************************************************************************** + * Private Data + ****************************************************************************/ + +/* Netprocfs component mappings */ + +static const struct netprocfs_entry_s g_net_entries[] = +{ +#ifdef CONFIG_NET_STATISTICS + { NETPROCFS_SUBDIR_STAT, DTYPE_FILE, "stat" , netprocfs_read_netstats}, +# ifdef CONFIG_NET_MLD + { NETPROCFS_SUBDIR_MLD, DTYPE_FILE, "mld" , netprocfs_read_mldstats}, +# endif Review Comment: ```suggestion # endif ``` ########## net/procfs/net_procfs.c: ########## @@ -98,6 +112,26 @@ static int netprocfs_rewinddir(FAR struct fs_dirent_s *dir); static int netprocfs_stat(FAR const char *relpath, FAR struct stat *buf); +/**************************************************************************** + * Private Data + ****************************************************************************/ + +/* Netprocfs component mappings */ + +static const struct netprocfs_entry_s g_net_entries[] = +{ +#ifdef CONFIG_NET_STATISTICS + { NETPROCFS_SUBDIR_STAT, DTYPE_FILE, "stat" , netprocfs_read_netstats}, +# ifdef CONFIG_NET_MLD Review Comment: ```suggestion # ifdef CONFIG_NET_MLD ``` -- 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: commits-unsubscr...@nuttx.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org