pcap: support for various linktypes

Add a device_type() method to get the assigned dev->type from the
kernel, and add support for automatic selection of the correct pcap
file header's linktype. This needs to be integrated into the core
code though.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>