From f6685854a93e4ba9e0842001ccdc19410d4e424c Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 31 May 2017 12:45:20 -0700 Subject: Add netmap support. Based on https://github.com/luigirizzo/netmap-libpcap. --- pcap.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pcap.c') diff --git a/pcap.c b/pcap.c index 488846d5..b12ce091 100644 --- a/pcap.c +++ b/pcap.c @@ -120,6 +120,10 @@ struct rtentry; /* declarations in */ #include "pcap-netfilter-linux.h" #endif +#ifdef PCAP_SUPPORT_NETMAP +#include "pcap-netmap.h" +#endif + #ifdef PCAP_SUPPORT_DBUS #include "pcap-dbus.h" #endif @@ -350,6 +354,9 @@ static struct capture_source_type { #ifdef PCAP_SUPPORT_NETFILTER { netfilter_findalldevs, netfilter_create }, #endif +#ifdef PCAP_SUPPORT_NETFILTER + { pcap_netmap_findalldevs, pcap_netmap_create }, +#endif #ifdef PCAP_SUPPORT_DBUS { dbus_findalldevs, dbus_create }, #endif -- cgit v1.2.3