Skip to content
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

Enhancement improve mbps option stability and performance #3

Merged
Prev Previous commit
Next Next commit
Ensure that skip_length does not interfere with -L option
  • Loading branch information
fklassen committed Dec 3, 2013
commit 9e2d706df447884f0253a644cc4e5da08c62746b
4 changes: 2 additions & 2 deletions src/send_packets.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ send_packets(pcap_t *pcap, int cache_file_idx)
* sending
*/
if (skip_length) {
if ((COUNTER)pktlen < skip_length) { //&&
//!((options.limit_send > 0 && (pkts_sent + skip_length) >= options.limit_send))) {
if ((COUNTER)pktlen < skip_length &&
!((options.limit_send > 0 && (pkts_sent + skip_length) >= options.limit_send))) {
skip_length -= pktlen;
goto SEND_NOW;
}
Expand Down