On Sun, May 23, 2021 at 1:10 PM Antonello Tartamo < antonellotart...@gmail.com> 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.
___________________________________________________________________________ Sent via: Wireshark-dev mailing list <wireshark-dev@wireshark.org> Archives: https://www.wireshark.org/lists/wireshark-dev Unsubscribe: https://www.wireshark.org/mailman/options/wireshark-dev mailto:wireshark-dev-requ...@wireshark.org?subject=unsubscribe