Add pcap support to tracebox (for validation purposes)

Tracebox can now write and read packets from pcap. To use the
feature, the option -i must be used as follows
  * -i pcap:<output_pcap_file>:<input_pcap_file>

output_pcap_file must be a regular file or pipe and input_pcap_file
must be a pipe (created with mkfifo).

Signed-off-by: Gregory Detal <gregory.detal@uclouvain.be>
Add support for scripts

Example can be found in src/tracebox/luatracebox.

Signed-off-by: Gregory Detal <gregory.detal@uclouvain.be>
Pass the trimmed reply to callback

Signed-off-by: Gregory Detal <gregory.detal@uclouvain.be>
Fix: missing header file

Signed-off-by: Gregory Detal <gregory.detal@uclouvain.be>
Fix: use lua_getglobal for better lua compatibility

LUA_GLOBALSINDEX does not exists i, lua 5.2

Signed-off-by: Gregory Detal <gregory.detal@uclouvain.be>
Unit test

* Add click as submodule (it will be used to validate tracebox)
* configure script takes a --enable-tests option (disabled by default)

Signed-off-by: Benjamin Hesmans <benjamin.hesmans@uclouvain.be>
Update submodules

Signed-off-by: Gregory Detal <gregory.detal@uclouvain.be>
Move click source tree

Signed-off-by: Gregory Detal <gregory.detal@uclouvain.be>
Add tests

Signed-off-by: Gregory Detal <gregory.detal@uclouvain.be>
Ensure that make distcheck build tests

Signed-off-by: Gregory Detal <gregory.detal@uclouvain.be>
Ensure that tests timeout after 60 seconds

Signed-off-by: Gregory Detal <gregory.detal@uclouvain.be>
Do not use select for pcap read

For unknown reason select does not work correctly while reading
a pcap dump.

Signed-off-by: Gregory Detal <gregory.detal@uclouvain.be>
Update tests

 * Fix: compatibility with older automake versions

Signed-off-by: Benjamin Hesmans <benjamin.hesmans@uclouvain.be>
Fix: warning: passing NULL to non-pointer argument 4 of ‘int lua_pcallk'

Signed-off-by: Benjamin Hesmans <benjamin.hesmans@uclouvain.be>