Re: [Wireshark-dev] callin simple_dialog in my dissector

2008-03-31 Thread Joerg Mayer
On Mon, Mar 31, 2008 at 07:32:22AM +, Praveen Kumar Jha wrote: > I am using proto_reg_handoff_xxx() function as call-back for the > preferences. > e.g. > xxx_module = prefs_register_protocol(proto_xxx, proto_reg_handoff_xxx); > > & registering a preference of uint type with xxx_module (say for

Re: [Wireshark-dev] callin simple_dialog in my dissector

2008-03-31 Thread Luis EG Ontanon
You might be surprised but someone has thought about the need reporting errors by dissectors before... The propper way reporting an error you want to call report_failure() from "epan/report_err.h". In wireshark (GUI) report_failure() will pop a window with the error message while in tshark it will

Re: [Wireshark-dev] callin simple_dialog in my dissector

2008-03-31 Thread Praveen Kumar Jha
Hi, Yeah! I am 100 % sure that I am going to use WIreshark in GUI mode ( and not the Tshark). I am using proto_reg_handoff_xxx() function as call-back for the preferences. e.g. xxx_module = prefs_register_protocol(proto_xxx, proto_reg_handoff_xxx); & registering a preference of uint type with xxx

Re: [Wireshark-dev] callin simple_dialog in my dissector

2008-03-31 Thread Guy Harris
Praveen Kumar Jha wrote: > I want to popup an error message in the handoff function of my dissector Unless you never ever ever ever ever ever ever ever expect to use TShark, no, you don't want to pop up an error message in the handoff function of your dissector, because there's no guarantee tha

[Wireshark-dev] callin simple_dialog in my dissector

2008-03-30 Thread Praveen Kumar Jha
Hi, I want to popup an error message in the handoff function of my dissector (packet-xxx.c), using function declared in simple_dialog.h. For this, I tried to include simple_dialog.h in packet-xxx.c, but I am getting following error during building: epan/.libs/libwireshark.so: undefined reference