Wireshark mailing list archives

Re: how to extract "IP.len" (IP_total length) to my local variable in my dissector?


From: John x <xiachangqin66 () hotmail com>
Date: Sat, 25 Jun 2011 03:25:11 +0800


thank you.

but how to get the location (called offset, right?) value? since I need to reach to the last byte of the packet

thanks

From: guy () alum mit edu
Date: Fri, 24 Jun 2011 11:49:16 -0700
To: wireshark-dev () wireshark org
Subject: Re: [Wireshark-dev] how to extract "IP.len" (IP_total length) to my  local variable in my dissector?


On Jun 24, 2011, at 11:47 AM, John x wrote:

Now that tvb_length() and tvb_reported_length() are different. Could you please tell me which one I need to use?

tvb_reported_length().
___________________________________________________________________________
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
                                          
___________________________________________________________________________
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: