ToHost problem
powell molleti
powelllinux at yahoo.com
Wed Feb 13 00:26:12 EST 2002
Hi ed,
--- Eddie Kohler <kohler at icir.org> wrote:
> 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)".
Yes, I just added Strip(14) and it works like
magic. Thank a lot.
>
> P.S. You may find "CheckIPHeader(VERBOSE true)"
> useful for debugging.
Thanks a lot again.
cya
powell
>
> Eddie
__________________________________________________
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com
More information about the click
mailing list