Re: [Wireshark-dev] Custom item not related to the packet

2021-05-27 Thread Antonello Tartamo
Hi Pasqual, you're right. I've fixed it using wmem_alloc(). Thanks everyone Antonello Il giorno gio 27 mag 2021 alle ore 09:00 Pascal Quantin < pas...@wireshark.org> ha scritto: > Hi Antonello > > Le jeu. 27 mai 2021 à 08:54, Antonello Tartamo > a écrit : > >&g

Re: [Wireshark-dev] Custom item not related to the packet

2021-05-26 Thread Antonello Tartamo
lighted in the > packet-view > > kind regard > Roland > > Am Mi., 26. Mai 2021 um 14:39 Uhr schrieb Antonello Tartamo < > antonellotart...@gmail.com>: > >> Hello pt is an array (uint8_t pt[16];). >> pt is an array generated after processing a part of the pack

Re: [Wireshark-dev] Custom item not related to the packet

2021-05-26 Thread Antonello Tartamo
> > Am Mi., 26. Mai 2021 um 08:46 Uhr schrieb Antonello Tartamo < > antonellotart...@gmail.com>: > >> Hello everyone, >> I'm trying to add a custom item which is not strictly related to the >> packet but it is coming from a processing of a part of the packet

[Wireshark-dev] Custom item not related to the packet

2021-05-25 Thread Antonello Tartamo
Hello everyone, I'm trying to add a custom item which is not strictly related to the packet but it is coming from a processing of a part of the packet. I've used the following instructions: new_tvb = tvb_new_child_real_data(tvb, pt, (guint)16, 16); add_new_data_sour

Re: [Wireshark-dev] Ethernet dissector

2021-05-23 Thread Antonello Tartamo
, 2021 at 11:59 AM Antonello Tartamo < >> antonellotart...@gmail.com> wrote: >> >>> The problem is that I don't have a predefined ether type as the ether >>> type field is used as length field. >>> Is there any other way to reuse the ethernet dissect

Re: [Wireshark-dev] Ethernet dissector

2021-05-23 Thread Antonello Tartamo
t; On Sun, May 23, 2021 at 5:06 AM Antonello Tartamo > wrote: > > > > Hello everyone, > > I'm trying to create an ethernet dissector for a custom protocol working > on L2. > > > > In proto_reg_handoff_myproto() function I've called: > > heur_

[Wireshark-dev] Ethernet dissector

2021-05-23 Thread Antonello Tartamo
Hello everyone, I'm trying to create an ethernet dissector for a custom protocol working on L2. In proto_reg_handoff_myproto() function I've called: heur_dissector_add("eth", dissect_myproto, "MyProtocol", "mp", proto_mp, HEURISTIC_ENABLE); eth_handle = find_dissector("eth_withoutfcs"); then in t