Skip to content

[Bug]Tcpreplay with PF_Ring ZC - Failed to open device zc:ens160 #913

@lowmao19

Description

@lowmao19

Describe the bug
I was able to build tcpreplay against PF_Ring ZC libpcap . Now when I try to run using the "zc:eth0"-style naming convention, tcpreplay fails with the following error.

`tcpreplay --intf1=zc:ens160 -t  -l 100 /home/oracle_18_new.pcap -d 3

Fatal Error: failed to open device zc:ens160: ioctl: No such device`

It seems like my PF_Ring install is OK, since I am able to use their zsend utility.

`./pfsend -i zc:ens160 -n 0 -f /home/oracle_18_new.pcap
Sending packets on zc:ens160
Using PF_RING v.8.8.0 on zc:ens160
Read 148 packets from pcap file /home/oracle_18_new.pcap
Dumping statistics on /proc/net/pf_ring/stats/31444-ens160.3
TX rate: [current 118'712.62 pps/0.33 Gbps][average 118'712.62 pps/0.33 Gbps][total 120'485.00 pkts]
TX rate: [current 121'370.30 pps/0.34 Gbps][average 120'031.72 pps/0.33 Gbps][total 241'874.00 pkts]
`

System (please complete the following information):

  • OS: redhat 8.8
  • OS version: 4.18.0-477.10.1.el8_8.x86_64
  • PF_RING: 8.8
  • tcpreplay: 4.5.1

tcpreplay --version
tcpreplay version: 4.5.1 (build git:v4.5.1)
Copyright 2013-2024 by Fred Klassen - AppNeta
Copyright 2000-2012 by Aaron Turner
The entire Tcpreplay Suite is licensed under the GPLv3
Cache file supported: 04
Not compiled with libdnet.
Compiled against PF_RING libpcap: 1.10.1
64 bit packet counters: enabled
Verbose printing via tcpdump: enabled
Packet editing: disabled
Fragroute engine: disabled
Injection method: PF_PACKET send()
Not compiled with netmap
Optional injection method: AF_XDP

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions