Re: [WinPcap-users] Retrieving a pointer to a UDP or TCP header

2005-03-30 Thread Mario Hollibaugh
Guy Harris wrote: On Mar 30, 2005, at 5:26 PM, Mario Hollibaugh wrote: I don't understand how this line of code is giving him the location of the udp header. In the first line where he says (ih- ver_ihl 0xf) * 4, why is he first using that bit-wise and operator with the hex value that

Re: [WinPcap-users] Retrieving a pointer to a UDP or TCP header

2005-03-30 Thread Guy Harris
On Mar 30, 2005, at 5:49 PM, Mario Hollibaugh wrote: Yeah i felt like a jackass because I looked up pretty much the exact thing you did a few minutes ago and realized that the IHL field is the length in 32-bit words. But I'm sitll lost here... I'm not the best programmer in the world

Re: [WinPcap-users] Retrieving a pointer to a UDP or TCP header

2005-03-30 Thread Mario Hollibaugh
Guy Harris wrote: On Mar 30, 2005, at 5:49 PM, Mario Hollibaugh wrote: Yeah i felt like a jackass because I looked up pretty much the exact thing you did a few minutes ago and realized that the IHL field is the length in 32-bit words. But I'm sitll lost here... I'm not the best