Skip to main content
Visitor II
October 1, 2021
Question

stm32+lwip+mbedtls packet size problem

  • October 1, 2021
  • 2 replies
  • 923 views

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

    This topic has been closed for replies.

    2 replies

    DCtechAuthor
    Visitor II
    October 1, 2021