Wireshark mailing list archives

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


From: John x <xiachangqin66 () hotmail com>
Date: Fri, 24 Jun 2011 15:13:37 +0800




Hi, folks,

 

I am developing a dissector, my tasks are:
 1. to get the “ip.len”
(the total length in IP header), 
2. using the ip.len to know how long the
packet would be and extract the last byte to my local variable. 

 

Could you guys please tell me how to get the IP’s total
length from IP header? 

How to extract the last byte of my packet? 



Any suggestions or advices would be appreciated. 

Thanks for your help


John

                                          
___________________________________________________________________________
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: