ToHost problem

Eddie Kohler kohler at icir.org
Fri Feb 8 15:46:09 EST 2002


Hi Powell,

I'm finding it a bit difficult to understand your situation in full, but I
can tell you why CheckIPHeader is complaining!

Remember that FromLinux generates packets *with Ethernet headers*. You have
neglected to strip the Ethernet header before passing the packet to
CheckIPHeader. 

Either use "CheckIPHeader(, 14)" to tell it to ignore the Ethernet header
(= 14 bytes), or add "Strip(14)" before the "GetIPAddress(16)".

P.S. You may find "CheckIPHeader(VERBOSE true)" useful for debugging.

Eddie



More information about the click mailing list