Skip to content
Snippets Groups Projects
  • Gunar Schorcht's avatar
    49f06efd
    cpu/esp8266: fix pbuf length check in esp_wifi · 49f06efd
    Gunar Schorcht authored
    When the size of a received frame is checked, always the total length should be used instead of the length of the first lwIP pbuf in the pbuf chain. Otherwise, the check that the length does not exceed ETHERNET_MAX_LEN will always be true since the maximum size of one lwIP pbuf in a pbuf chain is 512 bytes.
    49f06efd
    History
    cpu/esp8266: fix pbuf length check in esp_wifi
    Gunar Schorcht authored
    When the size of a received frame is checked, always the total length should be used instead of the length of the first lwIP pbuf in the pbuf chain. Otherwise, the check that the length does not exceed ETHERNET_MAX_LEN will always be true since the maximum size of one lwIP pbuf in a pbuf chain is 512 bytes.