Wireshark mailing list archives
Dissector callback definition
From: Joshua Wright <jwright () hasborg com>
Date: Wed, 02 Dec 2009 13:08:32 -0500
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The README.developer sample code shows the dissector callback function as shown: /* Code to actually dissect the packets */ static int dissect_PROTOABBREV(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) { /* ... */ /* Return the amount of data this dissector was able to dissect */ return tvb_length(tvb); } However, other source shows this function as having return type static void. Is it not necessary to return the number of bytes the dissector processed any longer? Thanks, - -Josh -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) iEYEARECAAYFAksWrSAACgkQapC4Te3oxYzw0wCfdBcG0CsdMrLIIqOtbhDqNHuh DeIAn3jZD86PfEa6Xx+VIF8EtSW7ZV20 =DpaT -----END PGP SIGNATURE----- ___________________________________________________________________________ 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:
- Dissector callback definition Joshua Wright (Dec 02)
- Re: Dissector callback definition Stephen Fisher (Dec 02)