Amir wrote:

> I am using lwip under mpc5200 and it work fine, until a client send a big
IP
> packet. In this case the lwip crash on
> Ip_frag.c: line 263
> memcpy(q->payload, &ip_reassbuf[i],
>             q->len > ip_reasslen - i ? ip_reasslen - i : q->len);
>
> Then I disable reasemble big IP in lwipopts.h, so that such packets will
be
> droped.
>
> It crash in my case by using "ping" like:
>
> Ping host -s 1524
>
> Is that a bug or I have may forgot something?



Yes, I also found this piece of code a bit suspect / not robust.

I had to fix a bug in my network driver to get this in a workable state.

Make sure your ethernet driver uses correct MTU, then it should work.



Bye,


Christiaan Simons

Hardware Designer
Axon Digital Design

http://www.axon.tv




_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to