git 仓库地址: https://github.com/echoechoin/vtcpdump
using tcpdump to capture packets from vpp interface.
使用rcpdump抓取vpp中接口的报文
using tap device to receive packets from vpp interface. then using tcpdump to capture packets.
使用tap设备dump一份vpp接口的报文,然后使用tcpdump抓取tap设备的报文
./vtcpdump.py -nvi GigabitEthernet0/0/1 (just same as tcpdump)
./vtcpdump.py -nvi GigabitEthernet0/0/1 (和使用tcpdump一样!)
I’ve just tested this on vpp version 20.05, may be it works on other versions.
仅测试了vpp 20.05,其他的版本应该差不多,可以改一下代码即可实现
have fun ! ! 😆😆