summaryrefslogtreecommitdiff
path: root/dev.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-07-03 16:44:23 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-07-03 16:44:23 +0200
commit2bcc60885d8dc61d49608cf9125a2432607631b1 (patch)
treea306cddd10d481b630a621d93a0de88a5cb39448 /dev.h
parentcdafc50c08c2daecd96c84c24faf51248b77b6fb (diff)
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>
Diffstat (limited to 'dev.h')
-rw-r--r--dev.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/dev.h b/dev.h
index cebcee4..87751c6 100644
--- a/dev.h
+++ b/dev.h
@@ -7,6 +7,7 @@
extern int device_mtu(const char *ifname);
extern int device_address(const char *ifname, int af, struct sockaddr_storage *ss);
extern int device_ifindex(const char *ifname);
+extern int device_type(const char *ifname);
extern short device_get_flags(const char *ifname);
extern void device_set_flags(const char *ifname, const short flags);
extern int device_up_and_running(char *ifname);