Rimestats bugfix: only compile the rimestats printout if rimestats are enabled
Minor code style fixes to the contikimac and nullrdc code
Bugfix: keep track of receiver being awake as a local variable rather than a global, as it may have changed between invokations
Defensive programming: make sure that we don't fail completely if we get a callback for a NULL pointer
Minor bugfix: explicitly cast pointer argument in debug printf
Include the rimestats variable only if rimestats are enabled by the configuration
Bugfix: check the size of the outgoing packet to avoid overflowing the output buffer
Major bugfix: when nullrdc is asked to send a list of packets, send the list of packets and not just the first packet - this is essential for retransmissions of fragmented IP packets to work
Merge pull request #176 from adamdunkels/feature-net-bugfixes

Network system bugfixes