nes-proj/tools/cooja/apps/mspsim
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
..
example core/net/uip: Rename uip_ethaddr to uip_lladdr. 2013-03-10 11:39:11 -07:00
src/org/contikios/cooja/mspmote Check the frame preamble and MPDU length before parsing 2015-05-08 18:52:34 +02:00
build.xml Decent error if mspsim cant be built 2013-11-14 18:14:03 +01:00
cooja.config [cooja/mspsim] a single sky mote in cooja.config should be sufficient 2014-03-08 01:18:07 +01:00
exp5438.png
README.md Rename to md 2013-03-26 23:15:37 +01:00
tyndall.png

MSPSim support for the COOJA Simulator

MSPSim source code access: Standalone MSPSim is available from http://sourceforge.net/projects/mspsim.

-- Fredrik Österlind, 18/3 2008