You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/09/19 05:28:05 UTC
[GitHub] [incubator-nuttx] anchao opened a new pull request, #7132: net/procfs: disable tcp/udp proc node if no stack available
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-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-nuttx] xiaoxiang781216 merged pull request #7132: net/procfs: disable tcp/udp proc node if no stack available
Posted by GitBox <gi...@apache.org>.
xiaoxiang781216 merged PR #7132:
URL: https://github.com/apache/incubator-nuttx/pull/7132
--
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-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org