diff options
author | luigi <luigi@FreeBSD.org> | 2015-01-26 03:26:37 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2015-01-26 03:26:37 +0000 |
commit | 56e35bcee15b57f716afc619097aeeb529d263d0 (patch) | |
tree | 1377479f46567882ca18add9b4202d4581f2fd83 /lib/libpcap/config.h | |
parent | efbb33d3cf761b71e78120f04ba76f3afae4da92 (diff) | |
download | FreeBSD-src-56e35bcee15b57f716afc619097aeeb529d263d0.zip FreeBSD-src-56e35bcee15b57f716afc619097aeeb529d263d0.tar.gz |
Merge 272659:
Add netmap support to libpcap. Tcpdump and other native pcap clients
can now run directly on netmap ports using netmap:foo or valeXX:YY
as device names.
Modifications to existing code are small and trivial,
the netmap-specific code is all in a new file.
Please be aware that in netmap mode the physical interface is
disconnected from the host stack, so libpcap will steal the traffic
not just make a copy.
For the full version of the code (including linux and autotools support) see
https://code.google.com/p/netmap-libpcap/
Diffstat (limited to 'lib/libpcap/config.h')
-rw-r--r-- | lib/libpcap/config.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libpcap/config.h b/lib/libpcap/config.h index 79cb3d2..60cb448 100644 --- a/lib/libpcap/config.h +++ b/lib/libpcap/config.h @@ -271,6 +271,9 @@ /* target host supports USB sniffing */ /* #undef PCAP_SUPPORT_USB */ +/* target host supports netmap */ +#define PCAP_SUPPORT_NETMAP 1 + /* include ACN support */ /* #undef SITA */ |