Sending pcap file via packetgen dpdk

孤人 提交于 2021-02-11 15:02:34

问题


Sending a pcap file on port 0. I get the following error. Any fix would be appreciated!

Sending pcap file via packetgen dpdk

The command used is:

sudo ./app/x86_64-native-linuxapp-gcc/pktgen -c 0X01 -n 1 --file-prefix=pg -w 4:00.1 -- -m 1.0 -T -P -s 0:~/Downloads/bigFlows.pcap


回答1:


There are 2 obvious reasons for the failure.

  1. Number of CPU cores for pktgen to work is 1 + number of ports in use
  2. you have extra argument in comamnd executed in pktgen.

Checking the link, it show the command used is sudo ./app/x86_64-native-linuxapp-gcc/pktgen -c 0X01 -n 1 --file-prefix=pg -w 4:00.1 -- -m 1.0 -T -P -s 0:[~/Downloads/bigFlows.pcap]. You should not sue [] instead use 0:actual path to pcap.

Note: @SaifUllah during the live debug both core and pcap were show cased for you.



来源:https://stackoverflow.com/questions/64548432/sending-pcap-file-via-packetgen-dpdk

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!