cancel
Showing results for 
Search instead for 
Did you mean: 

stm32+lwip+mbedtls packet size problem

DCtech
Associate II

I have a problem with the mbedtls server (stm32+lwip) send wrong length message. I am using this code in my project. 

https://github.com/straight-coding/straight-httpd-lwip-mbedtls-simulator

![Wireshark packet trace. A TLSv1.2 "server hello" packet is selected][1]

Server hello message include 150 byte message but in the packet details this message should be 576 byte. 

![Selected packet is showing a red warning: "IPv4 total length exceeds packet length (136 bytes)"][2]

When I checked the low_level_output function I can only see 150 byte data, why the packet length is wrong ? How can I solve the problem ? 

 [1]: https://i.stack.imgur.com/6Oix9.png

 [2]: https://i.stack.imgur.com/ksAAA.png

2 REPLIES 2
DCtech
Associate II