Wireshark mailing list archives

How to get UDP port numbers in sub-dissector


From: eymanm <eymanm () gmail com>
Date: Mon, 23 May 2011 10:55:56 -0400

I'm making a dissector for a protocol that is based on UDP. I'd like to show
the source and destination ports in the Info column, pretty much the same
way as it shown by the UDP dissector. Can somebody suggest how to get the
 port numbers when I'm dissecting the payload?

Any help is appreciated.
___________________________________________________________________________
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: