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

   ## Summary
   A simple tool like Linux's `conntrack` command, only supports printing NAT 
connections now.
   
   ```
   nuttx> conntrack -E
       [NEW] icmp  src=192.168.21.66 dst=1.2.3.4 type=8 code=0 id=26739 
src=1.2.3.4 dst=192.168.11.1 type=0 code=0 id=26739
       [NEW] tcp   src=192.168.21.66 dst=1.2.3.4 sport=38446 dport=80 
src=1.2.3.4 dst=192.168.11.1 sport=80 dport=38446
   [DESTROY] icmp  src=192.168.21.66 dst=1.2.3.4 type=8 code=0 id=26739 
src=1.2.3.4 dst=192.168.11.1 type=0 code=0 id=26739
   ```
   ```
   nuttx> conntrack -L
   tcp   src=192.168.21.66 dst=1.2.3.4 sport=38446 dport=80 src=1.2.3.4 
dst=192.168.11.1 sport=80 dport=38446
   icmp  src=192.168.21.66 dst=1.2.3.4 type=8 code=0 id=26739 src=1.2.3.4 
dst=192.168.11.1 type=0 code=0 id=26739
   conntrack: 2 flow entries have been shown.
   ```
   
   ## Impact
   Our own implementation behaves like Linux's `conntrack` command
   
   ## Testing
   Together with https://github.com/apache/nuttx/pull/12156
   
   


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