Android Mainline Module Release 9367966,com.google.android.extservices
Snap for 8564071 from 27ba7a74f72b429a677c4e712e358b0286d32984 to mainline-extservices-release

Change-Id: Iff73ee4ebf82a6b7360a3b7a10e8bd76a3f339bb
tree: fbf9ae2364b26a3edb0cb18d1e86672a41f3d243
  1. ChmodBPF/
  2. cmake/
  3. doc/
  4. lbl/
  5. missing/
  6. msdos/
  7. pcap/
  8. rpcapd/
  9. testprogs/
  10. tests/
  11. Win32/
  12. .appveyor.yml
  13. .cirrus.yml
  14. .gitattributes
  15. .gitignore
  16. .mailmap
  17. .travis-coverity-scan-build.sh
  18. aclocal.m4
  19. Android.bp
  20. arcnet.h
  21. atmuni31.h
  22. bpf_dump.c
  23. bpf_filter.c
  24. bpf_image.c
  25. build.sh
  26. build_matrix.sh
  27. CHANGES
  28. charconv.c
  29. charconv.h
  30. chmod_bpf
  31. CleanSpec.mk
  32. cmake_uninstall.cmake.in
  33. cmakeconfig.h.in
  34. CMakeLists.txt
  35. config.guess
  36. config.h
  37. config.h.in
  38. config.sub
  39. configure
  40. configure.ac
  41. CONTRIBUTING.md
  42. CREDITS
  43. diag-control.h
  44. dlpisubs.c
  45. dlpisubs.h
  46. etherent.c
  47. ethertype.h
  48. extract.h
  49. fad-getad.c
  50. fad-gifc.c
  51. fad-glifc.c
  52. fmtutils.c
  53. fmtutils.h
  54. ftmacros.h
  55. gencode.c
  56. gencode.h
  57. grammar.c
  58. grammar.h
  59. grammar.y.in
  60. ieee80211.h
  61. install-sh
  62. INSTALL.md
  63. libpcap.pc.in
  64. LICENSE
  65. llc.h
  66. Makefile-devel-adds
  67. Makefile.in
  68. METADATA
  69. mkdep
  70. MODULE_LICENSE_BSD
  71. nametoaddr.c
  72. nametoaddr.h
  73. nlpid.h
  74. nomkdep
  75. NOTICE
  76. optimize.c
  77. optimize.h
  78. org.tcpdump.chmod_bpf.plist
  79. OWNERS
  80. pcap-airpcap.c
  81. pcap-airpcap.h
  82. pcap-bpf.c
  83. pcap-bpf.h
  84. pcap-bt-linux.c
  85. pcap-bt-linux.h
  86. pcap-bt-monitor-linux.c
  87. pcap-bt-monitor-linux.h
  88. pcap-common.c
  89. pcap-common.h
  90. pcap-config.1
  91. pcap-config.in
  92. pcap-dag.c
  93. pcap-dag.h
  94. pcap-dbus.c
  95. pcap-dbus.h
  96. pcap-dll.rc
  97. pcap-dlpi.c
  98. pcap-dos.c
  99. pcap-dos.h
  100. pcap-dpdk.c
  101. pcap-dpdk.h
  102. pcap-enet.c
  103. pcap-filter.manmisc.in
  104. pcap-haiku.cpp
  105. pcap-int.h
  106. pcap-libdlpi.c
  107. pcap-linktype.manmisc.in
  108. pcap-linux.c
  109. pcap-namedb.h
  110. pcap-netfilter-linux-android.c
  111. pcap-netfilter-linux-android.h
  112. pcap-netfilter-linux.c
  113. pcap-netfilter-linux.h
  114. pcap-netmap.c
  115. pcap-netmap.h
  116. pcap-new.c
  117. pcap-nit.c
  118. pcap-npf.c
  119. pcap-null.c
  120. pcap-pf.c
  121. pcap-rdmasniff.c
  122. pcap-rdmasniff.h
  123. pcap-rpcap-int.h
  124. pcap-rpcap.c
  125. pcap-rpcap.h
  126. pcap-savefile.manfile.in
  127. pcap-septel.c
  128. pcap-septel.h
  129. pcap-sita.c
  130. pcap-sita.h
  131. pcap-sita.html
  132. pcap-snf.c
  133. pcap-snf.h
  134. pcap-snit.c
  135. pcap-snoop.c
  136. pcap-tc.c
  137. pcap-tc.h
  138. pcap-tstamp.manmisc.in
  139. pcap-types.h
  140. pcap-usb-linux.c
  141. pcap-usb-linux.h
  142. pcap.3pcap.in
  143. pcap.c
  144. pcap.h
  145. pcap_activate.3pcap
  146. pcap_breakloop.3pcap
  147. pcap_can_set_rfmon.3pcap
  148. pcap_close.3pcap
  149. pcap_compile.3pcap.in
  150. pcap_create.3pcap
  151. pcap_datalink.3pcap.in
  152. pcap_datalink_name_to_val.3pcap
  153. pcap_datalink_val_to_name.3pcap
  154. pcap_dump.3pcap
  155. pcap_dump_close.3pcap
  156. pcap_dump_file.3pcap
  157. pcap_dump_flush.3pcap
  158. pcap_dump_ftell.3pcap
  159. pcap_dump_open.3pcap.in
  160. pcap_file.3pcap
  161. pcap_fileno.3pcap
  162. pcap_findalldevs.3pcap
  163. pcap_freecode.3pcap
  164. pcap_get_required_select_timeout.3pcap
  165. pcap_get_selectable_fd.3pcap
  166. pcap_get_tstamp_precision.3pcap.in
  167. pcap_geterr.3pcap
  168. pcap_init.3pcap
  169. pcap_inject.3pcap
  170. pcap_is_swapped.3pcap
  171. pcap_lib_version.3pcap
  172. pcap_list_datalinks.3pcap.in
  173. pcap_list_tstamp_types.3pcap.in
  174. pcap_lookupdev.3pcap
  175. pcap_lookupnet.3pcap
  176. pcap_loop.3pcap
  177. pcap_major_version.3pcap
  178. pcap_next_ex.3pcap
  179. pcap_offline_filter.3pcap
  180. pcap_open_dead.3pcap.in
  181. pcap_open_live.3pcap
  182. pcap_open_offline.3pcap.in
  183. pcap_set_buffer_size.3pcap
  184. pcap_set_datalink.3pcap
  185. pcap_set_immediate_mode.3pcap.in
  186. pcap_set_promisc.3pcap
  187. pcap_set_protocol_linux.3pcap
  188. pcap_set_rfmon.3pcap
  189. pcap_set_snaplen.3pcap
  190. pcap_set_timeout.3pcap
  191. pcap_set_tstamp_precision.3pcap.in
  192. pcap_set_tstamp_type.3pcap.in
  193. pcap_setdirection.3pcap
  194. pcap_setfilter.3pcap
  195. pcap_setnonblock.3pcap
  196. pcap_snapshot.3pcap
  197. pcap_stats.3pcap
  198. pcap_statustostr.3pcap
  199. pcap_strerror.3pcap
  200. pcap_tstamp_type_name_to_val.3pcap
  201. pcap_tstamp_type_val_to_name.3pcap
  202. portability.h
  203. post_update.sh
  204. ppp.h
  205. README.md
  206. rpcap-protocol.c
  207. rpcap-protocol.h
  208. savefile.c
  209. scanner.c
  210. scanner.h
  211. scanner.l
  212. sf-pcap.c
  213. sf-pcap.h
  214. sf-pcapng.c
  215. sf-pcapng.h
  216. sockutils.c
  217. sockutils.h
  218. sslutils.c
  219. sslutils.h
  220. sunatmpos.h
  221. TODO
  222. varattrs.h
  223. 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 in-kernel filtering, libpcap utilizes in-kernel filtering only for the BPF interface. On systems that don't have BPF, all packets are read into user-space and the BPF filters are evaluated in the libpcap library, incurring 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 yet implemented.

BPF is standard in 4.4BSD, BSD/OS, NetBSD, FreeBSD, OpenBSD, DragonFly BSD, and macOS; an older, modified and undocumented version is standard in AIX. {DEC OSF/1, Digital UNIX, Tru64 UNIX} uses the packetfilter interface but has been extended to accept BPF filters (which libpcap utilizes). Also, you can add BPF filter support to Ultrix using the kernel source and/or object patches available here.

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.