[PATCH v3] pcapng: allow any protocol link type for the interface block

Stephen Hemminger stephen at networkplumber.org
Tue Jul 8 23:56:43 CEST 2025


On Tue,  8 Jul 2025 15:02:45 -0600
Schneide <schneide at qti.qualcomm.com> wrote:

> From: Dylan Schneider <schneide at qti.qualcomm.com>
> 
> Allow the user to specify protocol link type when creating pcapng files.
> This change is needed to specify the protocol type in the pcapng file,
> DLT_EN10MB specifies ethernet packets only. This will allow dissectors
> for other protocols to be used on files generated by pcapng.
> 
> Includes a breaking change to rte_pcapng_add_interface to add link_type
> parameter. Existing calls to the function have been updated to pass
> DLT_EN10MB for the link type argument.
> 
> Fixes: d1da6d0d04c7 ("pcapng: require per-interface information")
> Signed-off-by: Dylan Schneider <schneide at qti.qualcomm.com>
> Cc: stephen at networkplumber.org
> ---
>  .mailmap                               |  1 +
>  app/dumpcap/main.c                     |  4 +--
>  app/test/test_pcapng.c                 |  8 +++---
>  doc/guides/rel_notes/release_25_07.rst |  4 +++

Sorry too late for inclusion 25.07 release which is in last serious bugs only stage.


More information about the dev mailing list