Live tests + bug fixes

Adds tests for live formats on Linux - see commit notes for more details.

Fixes a big bug in the int: format that caused the reporting of a incorrect wire length when using TRACE_OPTION_SNAPLEN. I'm surprised no one else had noticed this earlier.

Minor fix for pcap direction setting.