Dear Esin,

I’m not sure from your email exactly what you want to do. If you want to replay 
a pcap trace continuously, this packet-generator setup script will do so:

packet-generator new {
    name cap
    limit 0   # change to NNN as needed
    interface loop0
    node ethernet-input
    pcap /tmp/replay.pcap
}

Typically, I would put the packet generator definition into a file, and read 
the file using the “exec” debug cli:

vpp# exec /tmp/pg_setup_script
vpp# packet-generator enable

or some such. Of course, you’ll need to program interface addresses, etc. or 
vpp will drop the replayed packets almost instantly. “show error”, the packet 
tracer, and a dispatch pcap trace are typically quite helpful in understanding 
why vpp decides to turf packets.

HTH... Dave


From: [email protected] <[email protected]> On Behalf Of Esin Erenoglu
Sent: Friday, May 3, 2019 6:06 AM
To: [email protected]
Subject: [vpp-dev] Read Pcap file and parsing

Hello everyone,

I try to get pcap file as input on cli interface. I want to read Pcap file and 
parse it. Is there some examples about that? Please, help me.
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#12921): https://lists.fd.io/g/vpp-dev/message/12921
Mute This Topic: https://lists.fd.io/mt/31482102/21656
Group Owner: [email protected]
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to