-
Notifications
You must be signed in to change notification settings - Fork 274
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
send_packet: Avoid clock drift by using time since first packet
Prior to this change, time between packets was calculated as deltas and over time errors would quickly add up. The work here switches to use the wall time since the first packet was sent as the reference which is compared to the PCAP packet timestamp relative to the first packet. In this way there are no errors and clock drift is avoided. As a result tcpreplay can now be used to play back very time sensitive captures such as video streams with PCR.
- Loading branch information
1 parent
72dcf55
commit ec50def
Showing
2 changed files
with
15 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters