lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-users] LWIP - mbedtls -altcp IPv4 length exceeds packet length


From: address@hidden
Subject: Re: [lwip-users] LWIP - mbedtls -altcp IPv4 length exceeds packet length
Date: Mon, 4 Oct 2021 17:05:56 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]