mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-19 03:05:14 +00:00
feec05cdf2
read_frame was misuing the packet length in the following ways: - returning non-zero even if buf_len is too short for the packet - truncating the length to buf_len if len is too long then using the truncated (i.e. wrong) length to index into the buffer - memcpying too many bytes (used buf_len instead of real length) This commit fixes all of this and adds some code to report on packet length errors (to match with cc2538 driver). |
||
---|---|---|
.. | ||
rfc-api | ||
batmon-sensor.c | ||
batmon-sensor.h | ||
cc26xx-rf.c | ||
cc26xx-rf.h | ||
cc26xx-rtc.c | ||
cc26xx-rtc.h | ||
cc26xx-uart.c | ||
cc26xx-uart.h | ||
contiki-watchdog.c | ||
gpio-interrupt.c | ||
gpio-interrupt.h | ||
oscillators.c | ||
oscillators.h | ||
uart1.h |