Wireshark-dev: Re: [Wireshark-dev] When is the preference variable updated?
Hi Pascal, I wondered if that would be the case but it doesn’t seem to be set when I enter the handoff code. My handoff looks like this: proto_reg_handoff_tmsvc(void) { dissector_handle_t dissect_tmsvc_handle; HANDLE h_thread; if (tmsvc_port > 0) { dissect_tmsvc_handle = create_dissector_handle(dissect_tmsvc, proto_tmsvc); register_postdissector(dissect_tmsvc_handle); h_thread = create_service_thread(); } return; } I’ve checked the value of tmsvc_port with a breakpoint set on the if statement and it’s still 0 at this point. It is set to the saved
preference 8989 by the time of the first call to my dissector. I notice that Anders has given me a slightly different solution and so I’ll take a look at that next. Thanks and regards…Paul From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx]
On Behalf Of Pascal Quantin 2015-11-12 15:07 GMT+01:00 Paul Offord <Paul.Offord@xxxxxxxxxxxx>:
Hi Paul, the variable should be set according to the preference content when the proto_reg_handoff_tmsvc function (that you register thanks to the prefs_register_protocol function) is called. Alternatively (if you do
not need the reg_handoff function at all) the variable should be set when your dissector code is called. Best regards, Pascal. ______________________________________________________________________ This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. Any views or opinions expressed are solely those of the author and do not necessarily represent those of Advance Seven Ltd. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. Advance Seven Ltd. Registered in England & Wales numbered 2373877 at Endeavour House, Coopers End Lane, Stansted, Essex CM24 1SJ ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________ |
- Follow-Ups:
- Re: [Wireshark-dev] When is the preference variable updated?
- From: Pascal Quantin
- Re: [Wireshark-dev] When is the preference variable updated?
- References:
- [Wireshark-dev] When is the preference variable updated?
- From: Paul Offord
- Re: [Wireshark-dev] When is the preference variable updated?
- From: Pascal Quantin
- [Wireshark-dev] When is the preference variable updated?
- Prev by Date: Re: [Wireshark-dev] When is the preference variable updated?
- Next by Date: Re: [Wireshark-dev] When is the preference variable updated?
- Previous by thread: Re: [Wireshark-dev] When is the preference variable updated?
- Next by thread: Re: [Wireshark-dev] When is the preference variable updated?
- Index(es):