[PATCH v1] pcapng: allow any protocol link type for the interface block
Stephen Hemminger
stephen at networkplumber.org
Wed Aug 27 19:21:32 CEST 2025
On Wed, 27 Aug 2025 09:38:52 -0600
Schneide <schneide at qti.qualcomm.com> wrote:
> diff --git a/lib/pcapng/rte_pcapng.h b/lib/pcapng/rte_pcapng.h
> index 48f2b57564..1b3f9b9464 100644
> --- a/lib/pcapng/rte_pcapng.h
> +++ b/lib/pcapng/rte_pcapng.h
> @@ -28,6 +28,9 @@
> extern "C" {
> #endif
>
> +/* default link type for ethernet traffic */
> +#define DLT_EN10MB 1
> +
>
It would be good idea to guard this definition with #ifdef so
that if user includes pcap.h first, there is not conflict.
#ifndef DLT_EN10MB
#define DLT_EN10MB 1 /* Ethernet (10Mb) */
#endif
More information about the dev
mailing list