[P4-dev] P4 support for PCAP

Antonin Bas antonin at barefootnetworks.com
Mon Jul 10 19:05:28 EDT 2017

Hi James,

For bmv2, you just have to use the "--pcap" command-line flag. It will
generate a pcap file for each interface connected to the bmv2 switch.
Regarding the other 2, doesn't the DPDK framework has built-in support for
this using pdump (http://dpdk.org/doc/guides-16.07/sample_app_ug/pdump.html



On Sun, Jul 9, 2017 at 12:39 PM, James Bensley <jwbensley at gmail.com> wrote:

> Hi All,
> I have a couple of rudimentary questions about P4; I have seen P4 at ELTE
> and PISCES for building DPDK apps from P4 and BMV2 for building on a
> Linux x86 target.
> Is there support to write packets to a PCAP file when building with
> BMv2 (I want to save packets with errors for example for manual
> inspection).
> Equally further down the road we might need to build with DPDK to
> support higher throughput, so again, does anyone know if we can save
> packets to a PCAP file when using something like P4 at ELETE or PISCES?
> Many thanks,
> James.
> _______________________________________________
> P4-dev mailing list
> P4-dev at lists.p4.org
> http://lists.p4.org/mailman/listinfo/p4-dev_lists.p4.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.p4.org/pipermail/p4-dev_lists.p4.org/attachments/20170710/59fa8fa7/attachment-0002.html>

More information about the P4-dev mailing list