pcap: add function read packets from a pcap file.
tx: add thread function to replay pcap file.
tx: TP_STATUS_AVAILABLE value is not a flag.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
pcap: fix conflict between 'size_t' and 'uint32_t'.

The packet (snapshot) length is represented by an 32-bit unsigned
interger where 'size_t' can be a 64-bit value on some architecture.
Replacing the 'size_t' variable by a 'uint32_t' resolves the bit width
conflict and still allow a 4GB frame to be read.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
rpc: declare basic packet replay rpc function.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabbad: add rpc calls to manage packet replays.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabba: add 'replay' cli command to manage replays.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
dabba: adapt help message to mention replay cmd.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
libdabba: replay the pcap in an endless loop.

More possibilities might come later on but it is a good start.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
libdabba: coding style refactoring.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
test: add replay thread unit test stubs.

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
Merge pull request #17 from eroullit/replay

Add replay thread support