diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-05-31 12:45:20 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-05-31 12:45:20 -0700 |
commit | f6685854a93e4ba9e0842001ccdc19410d4e424c (patch) | |
tree | e48d02f859a057a43643564cf362ee2c209d2b6c /pcap.c | |
parent | 89180a8f0d17af09abfe1b8f45bd4dad505db4a8 (diff) |
Add netmap support.
Based on https://github.com/luigirizzo/netmap-libpcap.
Diffstat (limited to 'pcap.c')
-rw-r--r-- | pcap.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 |