Wireshark-dev: [Wireshark-dev] Re: [exported_pdu] p2p_dir and link_dir

From: Mauro Levra <Mauro.Levra@xxxxxxxxxxxxxxxxxx>
Date: Tue, 9 Sep 2025 13:48:18 +0000
Hi Pascal,

Thanks for your quick reply.

> Do you have an example where the heuristics fail? [...] Or maybe you have a use case I did not think about that really requires it.

No, I do not have any example, but I have a use case. I would like to get the direction of the packet by reading the exported_pdu header from the pcapng file without having to dissect the packet.
I see that 3GPP decoders use the link_dir field, instead of p2p_dir. If there was already a tag for the link_dir field, I would not have asked, but it seems there is only a tag for p2p_dir.

If you agree, I would implement a new tag ID (39) for EXP_PDU_TAG_LINK_DIRECTION in the exported_pdu header.

Regards,

Mauro