passt: Introduce packet capture implementation

With -DDEBUG, passt now saves guest-side traffic captures in
pcap format at /tmp/passt_<ISO8601 timestamp>.pcap. The timestamp
refers to time and date of start-up.

Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
Stefano Brivio
2021-05-21 11:14:48 +02:00
parent 59182924f0
commit 17337a736f
5 changed files with 120 additions and 2 deletions

2
pcap.h Normal file
View File

@@ -0,0 +1,2 @@
void pcap(char *pkt, size_t len);
void pcap_init(void);