aboutsummaryrefslogtreecommitdiff
path: root/pcap.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2017-05-31 12:45:20 -0700
committerGuy Harris <guy@alum.mit.edu>2017-05-31 12:45:20 -0700
commitf6685854a93e4ba9e0842001ccdc19410d4e424c (patch)
treee48d02f859a057a43643564cf362ee2c209d2b6c /pcap.c
parent89180a8f0d17af09abfe1b8f45bd4dad505db4a8 (diff)
Add netmap support.
Based on https://github.com/luigirizzo/netmap-libpcap.
Diffstat (limited to 'pcap.c')
-rw-r--r--pcap.c7
1 files changed, 7 insertions, 0 deletions
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 <net/if.h> */
#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