[Wireshark-dev] query related to dissect_xxx function

2014-02-23 Thread Rahul Rohit
Hi, The moment we enter dissect_xxx(tvb,pinfo,tree) We put a check on the value of tree i.e. If(tree) { /* code for actual dissection } What does this check signify ?? somewhere it is written that it defines whether the user is looking for a detailed dissection or not ,could any body please t

Re: [Wireshark-dev] query related to dissect_xxx function

2014-02-23 Thread Evan Huus
This check was necessary in older versions of Wireshark, but not with recent versions. The only purpose it serves now is optimization, so you can safely remove it. On Sun, Feb 23, 2014 at 5:25 AM, Rahul Rohit wrote: > Hi, > > > > The moment we enter dissect_xxx(tvb,pinfo,tree) > > We put a check

[Wireshark-dev] how to display a packet in the packet_view?

2014-02-23 Thread ??????????
after get and dissect a packet,how to display this packet in the packet_view?by call which function in which file? peter___ Sent via:Wireshark-dev mailing list Archives:http://www.wireshark.org/lists/wireshark-dev

Re: [Wireshark-dev] how to display a packet in the packet_view?

2014-02-23 Thread Richard Sharpe
On Sun, Feb 23, 2014 at 7:44 AM, 我想不无聊 <237825...@qq.com> wrote: > after get and dissect a packet,how to display this packet in the > packet_view?by call which function in which file? While I admire your persistence in asking questions, all of this can be understood by reading doc/README.dissecto

Re: [Wireshark-dev] how to display a packet in the packet_view?

2014-02-23 Thread Guy Harris
On Feb 23, 2014, at 7:44 AM, ?? <237825...@qq.com> wrote: > after get and dissect a packet,how to display this packet in the > packet_view?by call which function in which file? You don't. If Wireshark needs to display a packet in the packet view, it'll call the top-level frame dissec

[Wireshark-dev] ?????? how to display a packet in the packet_view?

2014-02-23 Thread ??????????
thanks.you mean that the display operation is done in the dissector,right?when i debug the wireshark source,i check the function callstack and i can not find the display function,but i want to change the display infomation,what should i do?and what infomation will be display in the packet view,i

Re: [Wireshark-dev] 回复: how to display a packet in the packet_view?

2014-02-23 Thread Richard Sharpe
On Sun, Feb 23, 2014 at 5:12 PM, 我想不无聊 <237825...@qq.com> wrote: > thanks.you mean that the display operation is done in the > dissector,right? Yes. A dissector is called according to the protocols above it. It then adds things to the proto tree and the columns as it needs to. > when i debug the

Re: [Wireshark-dev] ?????? how to display a packet in the packet_view?

2014-02-23 Thread Guy Harris
On Feb 23, 2014, at 5:12 PM, "??" <237825...@qq.com> wrote: > thanks.you mean that the display operation is done in the dissector,right? Wrong. It's done by code in the ui/gtk directory for the GTK+ version and in code in the ui/qt directory for the Qt version. What the dissector does