anchao opened a new pull request, #7132:
URL: https://github.com/apache/incubator-nuttx/pull/7132

   ## Summary
   
   net/procfs: disable tcp/udp proc node if no stack available
   
   ```
   CC:  procfs/net_tcp.c
   procfs/net_tcp.c: In function ‘netprocfs_tcpstats’:
   procfs/net_tcp.c:74:18: warning: implicit declaration of function 
‘tcp_nextconn’ [-Wimplicit-function-declaration]
      74 |   while ((conn = tcp_nextconn(conn)) != NULL)
         |                  ^~~~~~~~~~~~
   procfs/net_tcp.c:74:16: warning: assignment to ‘struct tcp_conn_s *’ from 
‘int’ makes pointer from integer without a cast [-Wint-conversion]
      74 |   while ((conn = tcp_nextconn(conn)) != NULL)
         |                ^
   procfs/net_tcp.c:98:24: error: invalid use of undefined type ‘struct 
tcp_conn_s’
      98 |           laddr = &conn->u.ipv4.laddr;
         |                        ^~
   ```
   
   
   ## Impact
   
   N/A
   
   ## Testing
   
   enable usrsock and bypass the tcp/udp stack
   
   CONFIG_NET_USRSOCK_OTHER=y
   CONFIG_NET_USRSOCK_TCP=y
   CONFIG_NET_USRSOCK_UDP=y
   CONFIG_NET_TCP_NO_STACK=y
   CONFIG_NET_UDP_NO_STACK=y
   
   enable net statistics
   
   CONFIG_NET_STATISTICS=y


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

Reply via email to