CoAP: added missing UIP_LLH_LEN in buffer size check as described by

Laurent Deru in #242.
This commit is contained in:
Niclas Finne 2017-12-12 00:39:39 +01:00
parent 11da00db3e
commit e37dd179d1
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@
#endif /* WITH_DTLS */
/* sanity check for configured values */
#if COAP_MAX_PACKET_SIZE > (UIP_BUFSIZE - UIP_IPH_LEN - UIP_UDPH_LEN)
#if COAP_MAX_PACKET_SIZE > (UIP_BUFSIZE - UIP_LLH_LEN - UIP_IPH_LEN - UIP_UDPH_LEN)
#error "UIP_CONF_BUFFER_SIZE too small for COAP_MAX_CHUNK_SIZE"
#endif