Wireshark mailing list archives

Re: basic question


From: Guy Harris <guy () alum mit edu>
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);

___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev () wireshark org>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request () wireshark org?subject=unsubscribe


Current thread: