Wireshark mailing list archives
Re: Retrieving dissection result from another dissector
From: Peter Wu <peter () lekensteyn nl>
Date: Tue, 03 Jul 2018 18:24:07 +0200
Hi Dario, Another possibility is to use p_add_proto_data/p_get_proto_data with packet scope with the protocol and id as chosen by the producer. That way you do not have to change the data argument. Kind regards, Peter https://lekensteyn.nl (pardon my brevity, top-posting and formatting, sent from my phone) On July 3, 2018 5:09:52 PM GMT+02:00, Dario Lombardo <lomato () gmail com> wrote:
Actually I'm using the blob to pass data from the caller to the called. I guess it's a design flow to re-use this blob to have data back... On Tue, Jul 3, 2018 at 5:01 PM Richard Sharpe <realrichardsharpe () gmail com> wrote:On Tue, Jul 3, 2018 at 7:55 AM, Dario Lombardo <lomato () gmail com>wrote:Hi In my dissector I need to call another dissector, and I'm using call_dissector_with_data(). I need to have back one result comingfromthedissection (an integer) to use in the calling dissector. How can I do that?You can pass in a void * pointer to a blob of data. Put the result in that blob of data. -- Regards, Richard Sharpe (何以解憂?唯有杜康。--曹操)(传说杜康是酒的发明者)___________________________________________________________________________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-request () wireshark org ?subject=unsubscribe
___________________________________________________________________________ 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-request () wireshark org?subject=unsubscribe
Current thread:
- Retrieving dissection result from another dissector Dario Lombardo (Jul 03)
- Re: Retrieving dissection result from another dissector Richard Sharpe (Jul 03)
- Re: Retrieving dissection result from another dissector Dario Lombardo (Jul 03)
- Re: Retrieving dissection result from another dissector Pascal Quantin (Jul 03)
- Re: Retrieving dissection result from another dissector Richard Sharpe (Jul 03)
- Re: Retrieving dissection result from another dissector Peter Wu (Jul 03)
- Re: Retrieving dissection result from another dissector Guy Harris (Jul 03)
- Re: Retrieving dissection result from another dissector Richard Sharpe (Jul 03)
- Re: Retrieving dissection result from another dissector Pascal Quantin (Jul 03)
- Re: Retrieving dissection result from another dissector Guy Harris (Jul 03)
- Re: Retrieving dissection result from another dissector Anders Broman (Jul 03)
- Re: Retrieving dissection result from another dissector Dario Lombardo (Jul 03)
- Re: Retrieving dissection result from another dissector Richard Sharpe (Jul 03)
- Re: Retrieving dissection result from another dissector Dario Lombardo (Jul 04)
- Re: Retrieving dissection result from another dissector Michael Mann via Wireshark-dev (Jul 04)
- Re: Retrieving dissection result from another dissector Guy Harris (Jul 04)
- Re: Retrieving dissection result from another dissector Dario Lombardo (Jul 05)
- Re: Retrieving dissection result from another dissector Guy Harris (Jul 05)