package
0.0.0-20201230050744-663be50c9289
Repository: https://github.com/jordan2175/rewritecap.git
Documentation: pkg.go.dev
# Functions
----------------------------------------------------------------------------- ChangeTimestampDate() ----------------------------------------------------------------------------- This function will adjust the day, month, or year of the timestamp This change will be made regardless of packet type as it is done on the pcap header not the packet itself.
----------------------------------------------------------------------------- ChangeTimestampTimeOfDay() ----------------------------------------------------------------------------- This function will adjust the time of day of the timestamp This change will be made regardless of packet type as it is done on the pcap header not the packet itself.
----------------------------------------------------------------------------- ComputeNeededPacketDateChange() ----------------------------------------------------------------------------- Figure out if there is a change needed for the date of each packet.
----------------------------------------------------------------------------- GetFirstPacketTimestamp ----------------------------------------------------------------------------- We need to open the pcap file and read the timestamp from the first packet so that we can figure out an offset for all future packets.