Bug 1641273

Summary: trafgen --in - doesn't work
Product: [Fedora] Fedora Reporter: Jaroslav Škarvada <jskarvad>
Component: netsniff-ngAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 27CC: jaskalnik, jskarvad, jtfas90, mail
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: netsniff-ng-0.6.4-5.fc29 netsniff-ng-0.6.4-5.fc27 netsniff-ng-0.6.4-5.fc28 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-10-30 17:30:36 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jaroslav Škarvada 2018-10-20 19:47:34 UTC
Description of problem:
trafgen --in - tries to read file named '-', not the stdin.

Version-Release number of selected component (if applicable):
netsniff-ng-0.6.4-1.fc27.x86_64

How reproducible:
Always

Steps to Reproduce:
1. trafgen -e | trafgen --in - --out wlan0 --num 1 --cpp
2.
3.

Actual results:
Cannot access -: No such file or directory!

Expected results:
Packet sent.

Additional info:
From the manual page:
   -i <cfg|pcap|->, -c <cfg|->, --in <cfg|pcap|->, --conf <cfg|->
       Defines  the  input  configuration  file that can either be passed as a
       normal plain text file or via stdin (''-'').
...
   trafgen -e | trafgen -i - -o lo --cpp -n 1
       This  is  an  example  where we send one packet of the built-in example
       through the loopback device. The example configuration  is  passed  via
       stdin  and also through the C preprocessor before trafgen's packet com‐
       piler will see it.

And it's the same:
# trafgen -e | trafgen -i - -o wlan0 --cpp -n 1
Cannot access -: No such file or directory!

Although the following works:
# trafgen -e > tmp
# trafgen -i tmp -o wlan0 --cpp -n 1

Comment 1 Fedora Update System 2018-10-20 21:00:41 UTC
netsniff-ng-0.6.4-5.fc29 has been submitted as an update to Fedora 29. https://bodhi.fedoraproject.org/updates/FEDORA-2018-2b9be33832

Comment 2 Fedora Update System 2018-10-20 21:01:42 UTC
netsniff-ng-0.6.4-5.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-a2ce583494

Comment 3 Fedora Update System 2018-10-20 21:11:35 UTC
netsniff-ng-0.6.4-5.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-7d9de65075

Comment 4 Fedora Update System 2018-10-21 00:05:40 UTC
netsniff-ng-0.6.4-5.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-7d9de65075

Comment 5 Fedora Update System 2018-10-21 01:41:08 UTC
netsniff-ng-0.6.4-5.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-a2ce583494

Comment 6 Fedora Update System 2018-10-21 22:36:15 UTC
netsniff-ng-0.6.4-5.fc29 has been pushed to the Fedora 29 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-2b9be33832

Comment 7 Fedora Update System 2018-10-30 17:30:36 UTC
netsniff-ng-0.6.4-5.fc29 has been pushed to the Fedora 29 stable repository. If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2018-10-31 15:24:36 UTC
netsniff-ng-0.6.4-5.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2018-10-31 15:51:33 UTC
netsniff-ng-0.6.4-5.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.