jwbensley / Etherate

Linux CLI Ethernet and MPLS Testing Tool
MIT License
176 stars 19 forks source link

Packet pacing feature has an overflow in the max fps calculation #45

Open jwbensley opened 6 years ago

jwbensley commented 6 years ago
ISSUE TYPE
VERSION DETAILS
2018-01 (1.16)
SUMMARY

The value for calculating the max FPS is a uint64_t which should be a long double.

STEPS TO REPRODUCE
bensley@ubuntu-laptop:~/C/github/etherate/dev$ sudo taskset -c 3 ./etherate -i lo -g -G -T 50000
Running in TX mode
Using device lo with address 00:00:00:00:00:00, interface index 1

Physical interface MTU unknown, tests might exceed physical MTU!

Entering promiscuous mode
Source MAC 00:00:5e:00:00:01
Destination MAC 00:00:5e:00:00:02
Sending gratuitous broadcasts...
Done.
Frame size is 1514 bytes
Floating point exception (core dumped)