jafingerhut / p4-guide

Guide to p4lang repositories and some other public info about P4
530 stars 155 forks source link

Any built-in function for dump switch traffic as .pcap file? #72

Closed nonPointer closed 4 months ago

nonPointer commented 4 months ago

The bmv2 + mininet setup in p4lang/tutorials repo can preserve the.pcap files of ingress/egress traffic on each port of the switch and host. How can I achieve the same within this repo?

One workaround seems to be manually run the tcpdump for capturing traffic on the veth.

Thanks!

jafingerhut commented 4 months ago

I would recommend please to ask your question on this web forum, where there are more people reading it than myself, and several of them likely can give you an answer more quickly than I could: http://forum.p4.org

nonPointer commented 4 months ago

Thank you Andy!