osd-contiki/tools/cooja/apps
Timofei Istomin eae25d622d Check the frame preamble and MPDU length before parsing
Due to errors in mspsim and/or radio drivers, packets of incorrect
length are sometimes transmitted. The length might be larger than
the 127-byte maximum (considered negative in the current code)
or not matching the actual number of transmitted bytes.
This leads to wrong packet delimiting when converting from
the mspsim-level stream of bytes to Cooja-level packets
causing unhandled exceptions that terminate the simulation.

This patch checks the frame preamble (0000007A) and the length field.
If they are wrong, no decoding attempt is done.

The transmitted bytes are still delivered to the receivers untouched.
The connection is terminated when the radio state is changed (which alway
s happens when TX is done).
2015-05-08 18:52:34 +02:00
..
avrora [cooja] Implementation of former AvrMoteMemory dummy functions 2014-07-31 21:20:08 +02:00
collect-view Renamed Java packages to match our contiki-os.org domain. Note that this commit does not affect external dependencies 2013-11-20 16:43:27 +01:00
mrm [cooja] Reformatted Visualizer and skins code 2014-04-11 09:23:28 +02:00
mspsim Check the frame preamble and MPDU length before parsing 2015-05-08 18:52:34 +02:00
native_gateway Renamed Java packages to match our contiki-os.org domain. Note that this commit does not affect external dependencies 2013-11-20 16:43:27 +01:00
powertracker Renamed Java packages to match our contiki-os.org domain. Note that this commit does not affect external dependencies 2013-11-20 16:43:27 +01:00
serial_socket [cooja/serialsocket] SeriaSocketClient: Fixed position of pack() call 2014-08-29 00:55:07 +02:00