Wireshark-dev: Re: [Wireshark-dev] question regarding my wireshark dissector code.
From: "Townsend, Matthew" <mtownsen@xxxxxxxxxx>
Date: Thu, 2 Jul 2009 15:11:04 -0400
I've seen this same thing in my dissectors.

I'm not sure exactly how the different register calls etc are made as
the dissector tutorials only tell you which ones to write. But I think
somehow the file name (or dissector name?) is used to decide which
register/handoff calls are made. Just manually call the extra dissector
functions from these.

Also, not sure exactly what the configure file is for, but I did find
the preferences easy to use for customizing dissector variables.

Matt

-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx
[mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Brian Oleksa
Sent: Thursday, July 02, 2009 2:49 PM
To: Developer support list for Wireshark
Subject: [Wireshark-dev] question regarding my wireshark dissector code.


@Wiresharkers

I have created this helen dissector. It has been running great ever 
since then.

I have some NON-helen packets that I want to dissect. Instead of writing

another dissector, I added it to the packet-helen.c code.

As you can see at the top of this file I call a new procedure called:
void proto_reg_handoff_netalive(void)

Which works great and reads in the port # from the file correctly.

I even get into the     void dissect_netalive(tvbuff_t *tvb, packet_info

*pinfo, proto_tree *tree)    procedure with no problems:

But I am not dissecting anything. The only thing that I get in the 
wireshark GUI is the word "NETALIVE".

Why I am not seeing the dissection tree under the NETALIVE
protocol....??

Basically.......all I did was I mirrored the helen protocol....it 
compiles fine but I do not see my packets being dissected.

Any thoughts or suggestions...? The latest code is attached.

Thank you very much for your help.

It is greatly appreciated.

Brian