FS#58595 - [tcpreplay] does not recognize interface names with 4.2.6-1

Attached to Project: Community Packages
Opened by Shawn Rainey (srainey) - Monday, 14 May 2018, 17:41 GMT
Last edited by Levente Polyak (anthraxx) - Tuesday, 15 May 2018, 22:43 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After upgrading to 4.2.6-1, tcpreplay does not recognize valid ethernet interface names. The program reports them as invalid where it previously would not, and it will error out, making it unusable. I'm guessing this is upstream, but broken on my system with this version in any case.

Additional info:
Not present in 4.2.5-2 (the last version I had on my system before upgrading)

Steps to reproduce:
sudo tcpreplay -i enp6s0 example_file.pcap

Fatal Error: Unable to parse args: Invalid interface name/alias: enp6s0

The same error is reported for any other valid interfaces on my machine, including lo. It is also happening with tcpreplay-edit
This task depends upon

Closed by  Levente Polyak (anthraxx)
Tuesday, 15 May 2018, 22:43 GMT
Reason for closing:  Fixed
Additional comments about closing:  4.2.6-2
Comment by Shawn Rainey (srainey) - Monday, 14 May 2018, 18:04 GMT
Meant severity to be High, not critical.
Comment by Shawn Rainey (srainey) - Monday, 14 May 2018, 20:38 GMT
After getting some free time, I believe this is actually not an upstream issue, and is caused by the inclusion of the --with-testnic and --with-testnic2 options in the PKGBUILD config line. Builing with the following change (just removing the two lines) fixes the issue:

index 1321550..2c29416 100644
--- a/trunk/PKGBUILD
+++ b/trunk/PKGBUILD
@@ -33,8 +33,6 @@ build() {
--enable-shared \
--with-libdnet \
--with-tcpdump=/usr/bin/tcpdump \
- --with-testnic2=lo \
- --with-testnic=lo \
ac_cv_header_net_bpf_h=n
make
}
Comment by Shawn Rainey (srainey) - Tuesday, 15 May 2018, 18:32 GMT
Apparently others have had issue with these options, and it is not being looked at upstream because the author cannot reproduce the error https://github.com/appneta/tcpreplay/issues/178

Loading...