pcap: support for various linktypes
commit2bcc60885d8dc61d49608cf9125a2432607631b1
authorDaniel Borkmann <dborkman@redhat.com>
Wed, 3 Jul 2013 14:44:23 +0000 (3 16:44 +0200)
committerDaniel Borkmann <dborkman@redhat.com>
Wed, 3 Jul 2013 14:44:23 +0000 (3 16:44 +0200)
treea306cddd10d481b630a621d93a0de88a5cb39448
parentcdafc50c08c2daecd96c84c24faf51248b77b6fb
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>
dev.c
dev.h
pcap_io.h