How to add packet capture framework to a custom simple dpdk app

jiangheng (G) jiangheng14 at huawei.com
Tue Jul 11 03:12:45 CEST 2023


Hi,
My advice is to recompile dpdk-dumpcap and link dpdk's dynamic libraries to match your app

发件人: Fuji Nafiul [mailto:nafiul.fuji at gmail.com]
发送时间: 2023年7月9日 12:37
收件人: users at dpdk.org
主题: How to add packet capture framework to a custom simple dpdk app

Hi,
I am using dpdk_v22.11.1 on ubuntu_v22.04.2. I have a simple app derived from skeleton and icmpecho which can reply to proper arp requests and also can reply to appropriate pings. Now whats the proper steps to add a packet capture framework like dpdk-dumpcap here as the doc didnt clearly said it, rather pointed out to check the testpmd.c

I simply added pdump header files, then initialized rte_pdump_init(), then I tried to run dpdk-dumpcap separately that was successful after running testpmd app but with my custom app it  failed.to<http://failed.to> run Then I noticed configure_rxtx_dump_callbacks() in port initialization and tried to add it properly in my app but failed. I am just not sure whether I am on the right way or not. so please help if you have already passed this. thanks in advance..!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/users/attachments/20230711/853bcf66/attachment.htm>


More information about the users mailing list