Wireshark-dev: Re: [Wireshark-dev] Help regarding CI failure in gitlab

Date Prev · Date Next · Thread Prev · Thread Next
From: John Thacker <johnthacker@xxxxxxxxx>
Date: Sat, 29 Jul 2023 13:56:51 +0700

On Sat, Jul 29, 2023, 1:24 PM Jaap Keuter <jaap.keuter@xxxxxxxxx> wrote:

dissector_add_uint("wtap_encap"147, base_handle); looks suspicious, where’s 147 coming from.

It appears to be from here:
https://gerrit.openbmc.org/c/openbmc/libmctp/+/46162

"As there's no formal linktype defined for MCTP or higher-level DMTF protocols command-line switches provide the ability to specify one of the private linktype values in the range 147-162."

This has multiple issues:

Wiretap encapsulations are not the same as libpcap link layer types. Wtap encap 147 is defined in wiretap/wtap.h as WTAP_ENCAP_AX25_KISS, used by packet-ax25-kiss.c

Presumably what is meant here is the wiretap encapsulation equivalent, WTAP_ENCAP_USER0 (45), but we are never going to upstream a patch for one of the private linktypes / encapsulations.

The correct thing to do is to follow the directions here:

https://www.tcpdump.org/linktypes.html

And request a new link layer type, which will then also result in a new wiretap encapsulation.

John Thacker