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 05:13:37 +0800
thanks a lot I really appreciate your help
From: guy () alum mit edu Date: Fri, 24 Jun 2011 12:37:06 -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 12:25 PM, John x wrote:but how to get the location (called offset, right?) value? since I need to reach to the last byte of the packetOffsets within the tvbuff containing your packet start at 0, so if your packet is N bytes long, the offset of the last byte of the packet is N-1. Subtract 1 from the result of tvb_reported_length(); that's the offset to use. ___________________________________________________________________________ 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:
- how to extract "IP.len" (IP_total length) to my local variable in my dissector? John x (Jun 24)
- Re: how to extract "IP.len" (IP_total length) to my local variable in my dissector? Jaap Keuter (Jun 24)
- Re: how to extract "IP.len" (IP_total length) to my local variable in my dissector? John x (Jun 24)
- Re: how to extract "IP.len" (IP_total length) to my local variable in my dissector? Guy Harris (Jun 24)
- Re: how to extract "IP.len" (IP_total length) to my local variable in my dissector? John x (Jun 24)
- Re: how to extract "IP.len" (IP_total length) to my local variable in my dissector? Guy Harris (Jun 24)
- Re: how to extract "IP.len" (IP_total length) to my local variable in my dissector? John x (Jun 24)
- Re: how to extract "IP.len" (IP_total length) to my local variable in my dissector? John x (Jun 24)
- Re: how to extract "IP.len" (IP_total length) to my local variable in my dissector? Jaap Keuter (Jun 24)