Skip to content

apps/system: Add tcpdump command#1635

Merged
xiaoxiang781216 merged 1 commit intoapache:masterfrom
wengzhe:master
Mar 8, 2023
Merged

apps/system: Add tcpdump command#1635
xiaoxiang781216 merged 1 commit intoapache:masterfrom
wengzhe:master

Conversation

@wengzhe
Copy link
Copy Markdown
Contributor

@wengzhe wengzhe commented Mar 7, 2023

Summary

Add a simple tcpdump command to capture pcap file from network traffic.
The captured file can be recognized by wireshark.

Note: needs apache/nuttx#8753 for full feature, otherwise we may only capture some of the packets.

> tcpdump                                                                                        
Usage:                                                                                                                              
  -i, --interface=interface      Capture device                                                                                     
  -w file                        Path to dump file                                                                                  
  -s, --snapshot-length=snaplen  Max dump length of each packet    

Impact

Add a simple tcpdump command to capture pcap file from network traffic.

Testing

Manually

Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
@xiaoxiang781216 xiaoxiang781216 merged commit 098f583 into apache:master Mar 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants