From 2bcc60885d8dc61d49608cf9125a2432607631b1 Mon Sep 17 00:00:00 2001 From: Daniel Borkmann Date: Wed, 3 Jul 2013 16:44:23 +0200 Subject: 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 --- dev.h | 1 + 1 file changed, 1 insertion(+) (limited to 'dev.h') 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); -- cgit v1.2.3-54-g00ecf