Adds support for a beacon mode with the injector command.

Until now the injector transmitted only one frame and then returned. The
now beacon allows to send the frame multiple times on an interval basis.
Fixes a typo.

This fixes a typo in the injector command.
Uses a stateless ping.

This patch transforms the stateful UART ping into a stateless ping.
Until now we maintained a separate queue to store the state of each
ping sent. We now store this state in the message itself.
Modify the pcap functions name.

This patch modify the pcap functions name in preparation for the frame
selector which will need functions for writing into and reading from a
pcap.
Adds the frame selector command.

This adds the frame selector command. However the command is not
finishied yet and other patches will complete this one.
Moves the PCAP defines into a separate file.

We moves the PCAP defines into a separate header file common to the
writing and reading unit.
Adds the pcap reading functions.

The pcap reading functions are used to read frames from a PCAP file.
Extracts the timestamp from each frame.

The pcap frame reading function didn't care about the associated
timestamp. This patch adds support for extracting the timestamp too.
Signals the end-of-file with buffered IO.

The buffered IO functions did not signal the end-of-file correctly and
instead returned a read count of zero for the last incomplete read.
Stop reading the pcap when reaching the end-of-file.

Until now the pcap reader did not catch the end of file. We now catch
the end-of-file when a new frame begin. If the end-of-file occurs at
another point while reading the pcap file, it will generate an error.
Add a function to duplicate a memory buffer.

This patch adds a function to duplicate a memory buffer.
Add the PCAP list functions.

The PCAP list functions help to manage a list of PCAP frames. This is
used in particular for the frame selector and the pcap replayer.
Add the selector and header for the text gui.

This patch adds the basic skeleton for the selector with the default
text gui.
Use simplier warning message with the selector.

The selector used variadic functions for displaying warning message
through the GUI. This simplify the function to use a simple string as
the warning message. It may be extended later.
Add the default text GUI for the frame selector.

This adds a defualt GUI for the frame selector which use a basic textual
interface.
Minor corrections to the frame selector.

This patch fixes the serveral bugs with the frame selector :
  - Do not fail to write the pcap when no file was selected.
  - Do not return with a failure code by default.
  - Display the version when starting the default text ui.
  - Fix the command parsing in default text ui.
  - Add a default shell prompt in default text ui.
Replace references to GUI to UI.

The term User Interface is more appropriate than Graphical User
Interface as the only interface we have for now is a textual interface.
Fixes a segfault with the text ui.

When entering a empty command in the text ui, the program did not check
for a null pointer being generated and then used this pointer to compare
against other strings.
Fix an infinite loop when reading a pcap.

When reading a pcap, the endianness conversion function called itself
instead of the bsd endian conversion functions hence resulting in an
infinite loop.