Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: Re: [Wireshark-dev] Ethernet dissector

From: John Thacker <johnthacker@xxxxxxxxx>
Date: Sun, 23 May 2021 14:03:18 -0400
On Sun, May 23, 2021 at 1:10 PM Antonello Tartamo <antonellotartamo@xxxxxxxxx> wrote:
I manually added the MAC addresses using proto_tree_add_ether().
I thought there was a better way.
Thanks in advance
Regards
Antonello

If the MAC addresses are just present in the normal way like an Ethernet header. proto_tree_add_item() would be easier and better in this situation. You should only have to use proto_tree_add_ether() when you need to transform the bytes in the buffer in some way. With proto_tree_add_item you won't have to fetch the bytes from the buffer first and pass them back.