Re: [Wireshark-dev] how to retrieve a guint32

2011-10-25 Thread Teto
Thank you both for these comprehensive answers :) On Mon, Oct 24, 2011 at 7:27 PM, Guy Harris g...@alum.mit.edu wrote: On Oct 24, 2011, at 8:49 AM, Teto wrote: tvb_get_letoh24 / tvb_get_letohl look more straightforward but I don't understand how they transform the number. letoh stands for

[Wireshark-dev] how to retrieve a guint32

2011-10-24 Thread Teto
  Hi, I know it's a silly question but can't test it (refactoring of my plugin). I want to retrieve a 32 bits number but if I use tvb_get_bits32, I need to pass useless parameters (in my case) since I want to retrieve all 32 bits. guint32 tvb_get_bits32 ( tvbuff_t * tvb,

Re: [Wireshark-dev] how to retrieve a guint32

2011-10-24 Thread Graham Bloice
On 24/10/2011 16:49, Teto wrote: Hi, I know it's a silly question but can't test it (refactoring of my plugin). I want to retrieve a 32 bits number but if I use tvb_get_bits32, I need to pass useless parameters (in my case) since I want to retrieve all 32 bits. guint32 tvb_get_bits32

Re: [Wireshark-dev] how to retrieve a guint32

2011-10-24 Thread Guy Harris
On Oct 24, 2011, at 8:49 AM, Teto wrote: tvb_get_letoh24 / tvb_get_letohl look more straightforward but I don't understand how they transform the number. letoh stands for local to host ? Little-endian to host, and the l stands for long. The 'l' stands for 'long' is a historical artifact; in