You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "wengzhe (via GitHub)" <gi...@apache.org> on 2023/08/07 08:59:23 UTC

[GitHub] [nuttx] wengzhe opened a new pull request, #10103: net: Add `FIOC_FILEPATH` ioctl support for tcp/udp/local sockets

wengzhe opened a new pull request, #10103:
URL: https://github.com/apache/nuttx/pull/10103

   ## Summary
   Patches included:
   - net/procfs: Simplify logic for tcp/udp stats
       1. Take out `net_ip_binding_laddr/raddr` macro
       2. `INET6_ADDRSTRLEN` is long enough for all address buffer and no need to
          add 0 to the end of buffer since `inet_ntop` will do so
   - net: Add `FIOC_FILEPATH` ioctl support for tcp/udp/local sockets
       - Example of `/proc/PID/group/fd`, which prints the file path:
       ```
       FD  OFLAGS  TYPE POS       PATH
       0   3       1    0         /dev/console
       1   3       1    0         /dev/console
       2   3       1    0         /dev/console
       3   3       9    0         udp:[0.0.0.0:10197<->114.118.7.163:123, tx 0/16384, rx 0/16384, flg 1]
       4   1027    9    0         tcp:[0.0.0.0:23<->0.0.0.0:0, tx 0/16384, rx 0/16384 + ofo 0, st 01, flg 31]
       5   67      9    0         local:[md:ap]
       ```
   
   ## Impact
   Mainly: procfs `/proc/PID/group/fd` with tcp/udp/local sockets
   Slightly: procfs `/proc/net/tcp` and `/proc/net/udp`
   
   ## Testing
   Manually
   


-- 
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] [nuttx] xiaoxiang781216 merged pull request #10103: net: Add `FIOC_FILEPATH` ioctl support for tcp/udp/local sockets

Posted by "xiaoxiang781216 (via GitHub)" <gi...@apache.org>.
xiaoxiang781216 merged PR #10103:
URL: https://github.com/apache/nuttx/pull/10103


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