问题
Sending a pcap file on port 0. I get the following error. Any fix would be appreciated!
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.
- Number of CPU cores for pktgen to work is
1 + number of ports in use
- 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