Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1641273 - trafgen --in - doesn't work
Summary: trafgen --in - doesn't work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: netsniff-ng
Version: 27
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-10-20 19:47 UTC by Jaroslav Škarvada
Modified: 2018-10-31 15:51 UTC (History)
4 users (show)

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:
Clone Of:
Environment:
Last Closed: 2018-10-30 17:30:36 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github netsniff-ng netsniff-ng pull 199 0 None closed trafgen: fixed '--in -' to work again with STDIN 2020-09-22 07:45:03 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.