>Have you checked the definition of LWIP_ERROR()?
>That line should return ERR_ARG if to is NULL but from is not (in other words, 
>to is not large enough).

Good point! :-) Thanks for getting me to it.

Indeed, coming from PPP and the length does exactly fills the last from_pbuf up 
to the last byte, there is another pbuf in the from_chain allocated, but with 
len=0. So the error check "thinks" there are more data but no more to_pbuf's.

That one deals with this:

LWIP_ERROR("p_to != NULL", (p_to != NULL) || (p_from == NULL) || (p_from->len 
== NULL) , return ERR_ARG;);



The assert comes from the ICMP routine ;-) :

      if (pbuf_copy(r, p) != ERR_OK) {
        LWIP_ASSERT("icmp_input: copying to new pbuf failed\n", 0);
        goto memerr;
      }

There's no such thing as pushing into 1.4.1 :-)

Understand ;-))



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

Reply via email to