-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] pps invalid value exception #632
Comments
Thanks for the stack trace. I should be able to fix this from detail provided, but it would be helpful to understand the environment. Is this docker? Please fill in a bug report. Describe the bug To Reproduce Expected behavior Screenshots System (please complete the following information):
Additional context |
The environment is Ubuntu 18.04.3 LTS but the bug is not environment dependent. I've posted optional patch - see pull request #633 Describe the bug To Reproduce
Expected behavior System (please complete the following information):
Tcpreplay Version 4.2.6
Still exists in frontline 4.3.3
|
Bug #632 fix pps invalid value protection
Fixed in PR #633 |
If pps option with non numerical value is used than tcpreplay crash on "Floating point exception"
core dump
divide by 0 in send_packet.c calc_sleep_time()
COUNTER next_tx_us = (pkts_sent * 1000000) * (60 * 60) / pph;
The text was updated successfully, but these errors were encountered: