dpdk: remove capture backend

The current DPDK integration model is not useful in practice. Since
libpcap/tcpdump takes exclusive ownership of DPDK ports via
rte_eth_dev_configure(), it cannot capture traffic from an existing DPDK
application. This makes it useless for the primary use case of observing
packets in a running DPDK-based network stack.

The support added in commit 8d7f0e39da08 ("enable dpdk for libpcap, test
with DPDK v18.11") was never updated to follow the evolution of the
public DPDK API. This led the backend to be disabled by default in
commit 06fbfb73255d ("DPDK: don't enable it by default.") because the
maintenance cost became too high.

Remove all DPDK capture support from the source, build systems
(autoconf, CMake) and documentation.

Signed-off-by: Robin Jarry <rjarry@redhat.com>
10 files changed
tree: d4820acb43fd2d3c9df0491fe6d71d17f763c5d0
  1. .github/
  2. ChmodBPF/
  3. cmake/
  4. doc/
  5. missing/
  6. pcap/
  7. rpcapd/
  8. testprogs/
  9. tests/
  10. .appveyor.yml
  11. .ci-coverity-scan-build.sh
  12. .cirrus.yml
  13. .gitattributes
  14. .gitignore
  15. .mailmap
  16. aclocal.m4
  17. autogen.sh
  18. bpf_dump.c
  19. bpf_filter.c
  20. bpf_image.c
  21. build.sh
  22. build_common.sh
  23. build_matrix.sh
  24. cbpf-savefile.manfile.in
  25. CHANGES
  26. charconv.c
  27. charconv.h
  28. chmod_bpf
  29. cmake_uninstall.cmake.in
  30. cmakeconfig.h.in
  31. CMakeLists.txt
  32. config.guess
  33. config.sub
  34. configure.ac
  35. CONTRIBUTING.md
  36. CREDITS
  37. diag-control.h
  38. dlpisubs.c
  39. dlpisubs.h
  40. etherent.c
  41. ethertype.h
  42. extract.h
  43. fad-getad.c
  44. fad-gifc.c
  45. fad-glifc.c
  46. fmtutils.c
  47. fmtutils.h
  48. ftmacros.h
  49. gencode.c
  50. gencode.h
  51. grammar.y.in
  52. ieee80211.h
  53. install-sh
  54. INSTALL.md
  55. instrument-functions.c
  56. libpcap.pc.in
  57. LICENSE
  58. llc.h
  59. Makefile-devel-adds
  60. Makefile.in
  61. mkdep
  62. nametoaddr.c
  63. nametoaddr.h
  64. nomkdep
  65. optimize.c
  66. optimize.h
  67. org.tcpdump.chmod_bpf.plist
  68. pcap-bpf.c
  69. pcap-bpf.h
  70. pcap-bt-linux.c
  71. pcap-bt-linux.h
  72. pcap-bt-monitor-linux.c
  73. pcap-bt-monitor-linux.h
  74. pcap-common.c
  75. pcap-common.h
  76. pcap-config.1
  77. pcap-config.in
  78. pcap-dag.c
  79. pcap-dag.h
  80. pcap-dbus.c
  81. pcap-dbus.h
  82. pcap-dll.rc
  83. pcap-dlpi.c
  84. pcap-filter.manmisc.in
  85. pcap-haiku.c
  86. pcap-hurd.c
  87. pcap-int.h
  88. pcap-libdlpi.c
  89. pcap-linktype.manmisc.in
  90. pcap-linux.c
  91. pcap-namedb.h
  92. pcap-netfilter-linux.c
  93. pcap-netfilter-linux.h
  94. pcap-netmap.c
  95. pcap-netmap.h
  96. pcap-new.c
  97. pcap-npf.c
  98. pcap-null.c
  99. pcap-options.c
  100. pcap-rdmasniff.c
  101. pcap-rdmasniff.h
  102. pcap-rpcap.c
  103. pcap-rpcap.h
  104. pcap-savefile.manfile.in
  105. pcap-snf.c
  106. pcap-snf.h
  107. pcap-tstamp.manmisc.in
  108. pcap-types.h
  109. pcap-usb-linux-common.h
  110. pcap-usb-linux.c
  111. pcap-usb-linux.h
  112. pcap-util.c
  113. pcap-util.h
  114. pcap.3pcap.in
  115. pcap.c
  116. pcap.h
  117. pcap_activate.3pcap
  118. pcap_breakloop.3pcap
  119. pcap_can_set_rfmon.3pcap
  120. pcap_close.3pcap
  121. pcap_compile.3pcap.in
  122. pcap_create.3pcap
  123. pcap_datalink.3pcap.in
  124. pcap_datalink_name_to_val.3pcap
  125. pcap_datalink_val_to_name.3pcap
  126. pcap_dump.3pcap
  127. pcap_dump_close.3pcap
  128. pcap_dump_file.3pcap
  129. pcap_dump_flush.3pcap
  130. pcap_dump_ftell.3pcap
  131. pcap_dump_open.3pcap.in
  132. pcap_file.3pcap
  133. pcap_fileno.3pcap
  134. pcap_findalldevs.3pcap
  135. pcap_freecode.3pcap
  136. pcap_get_required_select_timeout.3pcap
  137. pcap_get_selectable_fd.3pcap
  138. pcap_get_tstamp_precision.3pcap.in
  139. pcap_geterr.3pcap
  140. pcap_init.3pcap
  141. pcap_inject.3pcap
  142. pcap_is_swapped.3pcap
  143. pcap_lib_version.3pcap
  144. pcap_list_datalinks.3pcap.in
  145. pcap_list_tstamp_types.3pcap.in
  146. pcap_lookupdev.3pcap
  147. pcap_lookupnet.3pcap
  148. pcap_loop.3pcap
  149. pcap_major_version.3pcap
  150. pcap_next_ex.3pcap
  151. pcap_offline_filter.3pcap
  152. pcap_open_dead.3pcap.in
  153. pcap_open_live.3pcap
  154. pcap_open_offline.3pcap.in
  155. pcap_set_buffer_size.3pcap
  156. pcap_set_datalink.3pcap
  157. pcap_set_immediate_mode.3pcap.in
  158. pcap_set_promisc.3pcap
  159. pcap_set_protocol_linux.3pcap
  160. pcap_set_rfmon.3pcap
  161. pcap_set_snaplen.3pcap
  162. pcap_set_timeout.3pcap
  163. pcap_set_tstamp_precision.3pcap.in
  164. pcap_set_tstamp_type.3pcap.in
  165. pcap_setdirection.3pcap
  166. pcap_setfilter.3pcap
  167. pcap_setnonblock.3pcap
  168. pcap_snapshot.3pcap
  169. pcap_stats.3pcap
  170. pcap_statustostr.3pcap
  171. pcap_strerror.3pcap
  172. pcap_tstamp_type_name_to_val.3pcap
  173. pcap_tstamp_type_val_to_name.3pcap
  174. pflog.h
  175. portability.h
  176. ppp.h
  177. README.md
  178. rpcap-protocol.c
  179. rpcap-protocol.h
  180. savefile.c
  181. scanner.l
  182. sf-pcap.c
  183. sf-pcap.h
  184. sf-pcapng.c
  185. sf-pcapng.h
  186. sockutils.c
  187. sockutils.h
  188. sslutils.c
  189. sslutils.h
  190. thread-local.h
  191. varattrs.h
  192. VERSION
README.md

LIBPCAP 1.x.y by The Tcpdump Group

To report a security issue please send an e-mail to security@tcpdump.org.

To report bugs and other problems, contribute patches, request a feature, provide generic feedback etc please see the guidelines for contributing.

The documentation directory has README files about specific operating systems and options.

Anonymous Git is available via:

https://github.com/the-tcpdump-group/libpcap.git

This directory contains source code for libpcap, a system-independent interface for user-level packet capture. libpcap provides a portable framework for low-level network monitoring. Applications include network statistics collection, security monitoring, network debugging, etc. Since almost every system vendor provides a different interface for packet capture, and since we‘ve developed several tools that require this functionality, we’ve created this system-independent API to ease in porting and to alleviate the need for several system-dependent packet capture modules in each application.

formerly from	Lawrence Berkeley National Laboratory
		Network Research Group <libpcap@ee.lbl.gov>
		ftp://ftp.ee.lbl.gov/old/libpcap-0.4a7.tar.Z

Support for particular platforms and BPF

For some platforms there are README.{system} files that discuss issues with the OS‘s interface for packet capture on those platforms, such as how to enable support for that interface in the OS, if it’s not built in by default.

The libpcap interface supports a filtering mechanism based on the architecture in the BSD packet filter. BPF is described in the 1993 Winter Usenix paper ``The BSD Packet Filter: A New Architecture for User-level Packet Capture'' (compressed PostScript, gzipped PostScript, PDF).

Although most packet capture interfaces support some in-kernel filtering, libpcap utilizes in-kernel filtering only for the use cases that support BPF programs, namely, the BPF packet capture interface, the Linux packet socket and the GNU/Hurd interface.

In all other cases libpcap reads every packet into user-space and evaluates it using the filter program, which incurs added overhead (especially, for selective filters). Ideally, libpcap would translate BPF filters into a filter program that is compatible with the underlying kernel subsystem, but this is not implemented.

BPF is standard in NetBSD, FreeBSD, OpenBSD, DragonFly BSD, macOS, QNX and Solaris 11; an older, modified and undocumented version is standard in AIX.

Linux has a number of BPF based systems, and libpcap does not support any of the eBPF mechanisms as yet, although it supports many of the memory mapped receive mechanisms. See the Linux-specific README for more information.

Note to Linux distributions and *BSD systems that include libpcap:

There's now a rule to make a shared library, which should work on Linux and *BSD, among other platforms.

It sets the soname of the library to libpcap.so.1; this is what it should be, NOT libpcap.so.1.x or libpcap.so.1.x.y or something such as that.

We‘ve been maintaining binary compatibility between libpcap releases for quite a while; there’s no reason to tie a binary linked with libpcap to a particular release of libpcap.