Stop setting WITH_UIP6=1 in example Makefiles

It achieves exactly nothing other than generate confusion
Don't specify -DUIP_CONF_IPV6 in platform makefiles

Makefile.include has done it for us already, we no longer need to do so ourselves
A massive all-tree automated update of all double inclusion guard #defines that changes from using two underscores as a prefix, which are reserved, to not using two underscores as a prefix
csma: Initialize sequence number with random value

According to IEEE 802.15.4 (§5.1.6.1, §6.4.2), the MAC sequence numbers should
be initialized to random values. This was already the case in
framer-802154.c:create(), but not in csma.c:send_packet(), sometimes causing
false detections of duplicate MAC-layer packets in other devices when a device
was restarted too quickly. This patch decreases the probability of such an
event.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
rdc: duplicate packets: Factor out detection code

The code detecting duplicate packets in the RDC layer had been copied into most
RDC implementations. Factor it out into a new mac-sequence module in order to
have a single instance of this code.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
rdc: duplicate packets: Keep only the last sequence number for each address

According to IEEE 802.15.4e (§6.4.3.9), in order to detect duplicate received
MAC-layer frames, only the most recently received frame's sequence number needs
to be stored for each unique device address. Doing so limits the possible false
duplicate packet detections to a single sequence number. This also allows to
keep the last sequence number of more device addresses for the same value of
MAX_SEQNOS.

Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau@advansee.com>
Merge pull request #414 from ADVANSEE/duplicate-packets

mac: Fix false duplicate packets detections
Cooja Pcap export: Reverts PR #284 to fix #420
Merge pull request #465 from cetic/cooja-pcap

Cooja Pcap export: Reverts PR #284 to fix #420
Fix: preserving blank characters (tabulator and space) in Cooja serial output
Merge pull request #462 from adamdunkels/push/no-reserved-double-inclusion-defines

Remove all leading double underscore inclusion #defines
Merge pull request #428 from g-oikonomou/config-sanity

Remove unnecessary stuff from various Makefiles (Config Sanity, Pt 1)
Merge pull request #469 from eberlin/cooja-tab-char

Fix: preserving blank characters (tabulator and space) in Cooja serial output