On Wed, Feb 4, 2009 at 12:41 PM, Tyler Littlefield <[email protected]> wrote: > Hello list, > I've got the following code I'm using as a packet sniffer.
Other than suggesting that you try the winpcap forums, I can only think of compiler struct padding. When you define structs, the compiler might pad some additional bytes into the structure to make it align with memory boundaries. Depending on what compiler you are using, there are ways and means of turning automatic struct padding off. If you are using MSVC++ for instance, there are "#pragma"s you can use to do this. See here - http://msdn.microsoft.com/en-us/library/2e70t5y1(VS.80).aspx. -- Ranju. V http://blogorama.nerdworks.in/ --
