@@ -503,7 +503,7 @@ send_packets(tcpreplay_t *ctx, pcap_t *pcap, int idx)
503
503
}
504
504
505
505
/* stop sending based on the duration limit*/
506
- if (end_us > 0 ) {
506
+ if (end_us > 0 && (! do_not_timestamp || !( packetnum % 64 )) ) {
507
507
if (gettimeofday (& now , NULL ) < 0 )
508
508
errx (-1 , "gettimeofday() failed: %s" , strerror (errno ));
509
509
if (TIMEVAL_TO_MICROSEC (& now ) > end_us ) {
@@ -522,7 +522,7 @@ send_packets(tcpreplay_t *ctx, pcap_t *pcap, int idx)
522
522
#error WTF??? We should not be here!
523
523
#endif
524
524
525
- dbgx (2 , "packet " COUNTER_SPEC " caplen %d" , packetnum , pktlen );
525
+ dbgx (2 , "packet " COUNTER_SPEC " caplen " COUNTER_SPEC , packetnum , pktlen );
526
526
527
527
/* Dual nic processing */
528
528
if (ctx -> intf2 != NULL ) {
@@ -789,7 +789,7 @@ send_dual_packets(tcpreplay_t *ctx, pcap_t *pcap1, int cache_file_idx1, pcap_t *
789
789
#error WTF??? We should not be here!
790
790
#endif
791
791
792
- dbgx (2 , "packet " COUNTER_SPEC " caplen %d" , packetnum , pktlen );
792
+ dbgx (2 , "packet " COUNTER_SPEC " caplen " COUNTER_SPEC , packetnum , pktlen );
793
793
794
794
795
795
#if defined TCPREPLAY && defined TCPREPLAY_EDIT
0 commit comments