[PATCH 6/7] pcapng: add user-supplied timestamp support
Stephen Hemminger
stephen at networkplumber.org
Mon Jun 8 19:09:57 CEST 2026
On Mon, 8 Jun 2026 12:40:58 -0400
Dawid Wesierski <dawid.wesierski at intel.com> wrote:
> @@ -737,16 +736,6 @@ rte_pcapng_write_packets(rte_pcapng_t *self,
> return -1;
> }
>
> - /*
> - * When data is captured by pcapng_copy the current TSC is stored.
> - * Adjust the value recorded in file to PCAP epoch units.
> - */
> - cycles = (uint64_t)epb->timestamp_hi << 32;
> - cycles += epb->timestamp_lo;
> - timestamp = tsc_to_ns_epoch(&self->clock, cycles);
> - epb->timestamp_hi = timestamp >> 32;
> - epb->timestamp_lo = (uint32_t)timestamp;
> -
You can't generate valid pcapng timestamps without this.
More information about the dev
mailing list