[Winpcap-users] question regarding retrieving ip_len

ahsan askari ahsanaskari at gmail.com
Wed Jul 5 13:48:35 GMT 2006

Could anybody please tell me what this piece of code will do

ip_len = (ih->ver_ihl & 0xf) * 4;

I know that we are "anding" ver_ihl to make all the bits equal to 1 but why
are we multiplying it by 4.

Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winpcap.org/pipermail/winpcap-users/attachments/20060705/ce817c3d/attachment.htm

More information about the Winpcap-users mailing list