You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[antlir2_vm][net] Add option to dump traffic to a pcap file
Summary:
Traffic to/from a qemu netdev can be dumped to a pcap file using the
option:
```
-object filter-dump,id=id,netdev=dev[,file=filename][,maxlen=len][,position=head|tail|id=<id>][,insert=behind|before]
Dump the network traffic on netdev dev to the file specified by filename. At most len bytes (64k by default) per packet are stored. The file format is libpcap, so it can be analyzed with tools such as tcpdump or Wireshark.
```
This diff adds the `dump_file` field to `VirtualNic` struct and a setter.
When dump_file is `None`, no traffic is being dumped. When `Some(path)`,
traffic is dumped to `path`.
Test Plan: buck2 test and upcoming diffs
Reviewed By: wujj123456
Differential Revision: D63498734
fbshipit-source-id: bbcdd602550dbd230418229ef8f8688c943b5f30
0 commit comments