Am 04.10.2021 um 12:54 schrieb Duygu D.:
> Hello,
> I found the problem where is;
>
> low_level_output function was in below when I get Ipv4 error:
>
> https://paste.ofcode.org/3afkM3cHbZTMmX7rLQuyznX
> <https://paste.ofcode.org/3afkM3cHbZTMmX7rLQuyznX>
>
> I need to change pbuf with mpbuf before the sending, so I need to copy
> pbuf to another mpbuf, but mpBuf length has to be p->len + 1, because I
> need to add data end of the datagram. 
> If I use in above link I have an error. But If I use original low_level
> _output function like in below link:
>
> https://paste.ofcode.org/QJhuGAjDqVsghQKqj6SyJf
> <https://paste.ofcode.org/QJhuGAjDqVsghQKqj6SyJf>
>
> I dont have any error, but I have to use first link. How can I solve the
> problem with copy pbuf to another pbuf ?

So you have the code right before you. What keeps you from copying it
into your favourite dev IDE (windows, linux, whatever), mocking all the
lwIP/hardware parts and single-stepping through it to see where the bug
is? Obviously, it's neither lwIP nor hardware related?

Regards,
Simon

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to