[PATCH v5] pcapng: add user-supplied timestamp support
Stephen Hemminger
stephen at networkplumber.org
Thu Jun 25 00:07:34 CEST 2026
On Wed, 24 Jun 2026 17:57:01 -0400
Dawid Wesierski <dawid.wesierski at intel.com> wrote:
> + /*
> + * Use caller provided timestamp.
> + * If none provided, use current TSC and set flag.
> + */
> + if (timestamp == 0)
> + timestamp = rte_get_tsc_cycles() | PCAPNG_TSC_FLAG;
> +
If you are going to use high bit as flag, then probably need to
enforce that that bit is not set on input from user.
More information about the dev
mailing list