Removes an unused macro.

The SYMBOLS macro in atoi-gen was unused. This patch removes it.
Adds a function to parse hexadecimal values.

This patch adds a function to ease the parsing of hexadecimal values separated with
different delimiters. In particular this function will be used in the state machine
used to parse hexadecimal MAC addresses.
Change the prototype of the hexadecimal parser.

This changes the prototype of the hexadecimal parser to return a pointer
to the delimiter in the string.
Moves the serial speed parsing function.

The function used to convert a string into a serial speed was defined
directly within the sniffer code. However this function will be used
with the new injector tool. We separate the declaration in the shared
uart unit and header.
Reports more precises error.

In some cases the error reported by the parse_hex_until() function were
not precise enough. This patch change this and with a custom message
prepended to each error that could arise within this function.
Copy the payload inside the frame structure.

Until now the payload was stored as-is in the mac_frame structure. So
the structure itself still depended on the original data buffer. This
patch adds a copy/free layer for the payload into the frame structure in
to make it fully independant from the original data.
Avoid free corruption with information events.

When an information event was sent the mac frame was freed although still
uninitiliazed hence resulting in a free corruption. This patch moves the
free_mac_frame only after the mac frame has been initialized.
Uses a buffered output for pcap.

It is said that some exotic implementations of fopen and fwrite do not
support buffered IO. This patch adds buffered IO directly from the
syscall level.
Avoids writing empty frame to the pcap file.

Some firmware did send an empty frame (with zero size) over UART
which resulted in an error when written to the pcap file. This patch
simply ignore and skip such buggy frames.
Moves mac information flags in the correct header.

The mac information flags were in the mac header. This patch places them
in the correct header, that is mac-display.
Adds the injector command.

The injector command allows to create, manipulate frames and inject them
into the WSN. This version does not support injection yet. But it does
support frame manipulation and displaying.