Wireshark-dev: Re: [Wireshark-dev] How do I get my dissector to work in theDisplay Filter
From: "Hal Lander" <hal_lander@xxxxxxxxxxx>
Date: Wed, 31 Jan 2007 00:14:07 -0900
In the function proto_register_foo(void) I register the protocol using the line;

proto_foo = proto_register_protocol("Top level text for foo","foo", "foo");

I notice you say lineS, am I missing something?
The thing is the dissector is called and the all the other fields are visible in the 'expressions' dialog so it looks as if the registration worked, but there is something not quite right.

Thanks for looking at this
Hal


From: Stephen Fisher <stephentfisher@xxxxxxxxx>
Reply-To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
To: Developer support list for Wireshark <wireshark-dev@xxxxxxxxxxxxx>
Subject: Re: [Wireshark-dev] How do I get my dissector to work in theDisplay Filter
Date: Tue, 30 Jan 2007 12:05:57 -0800

On Tue, Jan 30, 2007 at 01:02:33AM -0900, Hal Lander wrote:

> My plugin heuristic dissector foo seems to work fine, except I cannot
> filter on it. If I type foo in the filter box the box goes pink.
> However if I type foo.len (one of my fields), the box goes green. If I
> click the 'Expression...' button I can see my protocol and all the
> fields I declared.
>
> I must be missing some some step registering the protocol, but if I am
> I don't understand how I can manage to filter on a field. Other
> plugins seem to let you just type the protocol name and they filter on
> it, so I should be able to do what I want.
>
> Anybody got any clues about what I am doing wrong or missing?

What lines are you using to register the protocol?


Steve

_______________________________________________
Wireshark-dev mailing list
Wireshark-dev@xxxxxxxxxxxxx
http://www.wireshark.org/mailman/listinfo/wireshark-dev

_________________________________________________________________
Laugh, share and connect with Windows Live Messenger http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=hmtagline