Wireshark-dev: Re: [Wireshark-dev] basic question

From: Guy Harris <guy@xxxxxxxxxxxx>
Date: Mon, 29 Mar 2010 11:03:36 -0700
On Mar 29, 2010, at 7:39 AM, Brian Oleksa wrote:

> But what if I just wanted to make this dissector available as "decode 
> as" and not by the port it broadcasts on..??
> 
> Can I just pass in a NULL for global_test_port..??

No - especially given that NULL is a pointer, but that argument is an integer - but what you would do in that case is

	dissector_add_handle("udp.port", test_handle);