Android Mainline 12.0.0 Release 71 (8339062,com.google.android.cellbroadcast)
Snap for 7478067 from 51de0564c74157b7dffc745e36395e4eaf064afa to mainline-cellbroadcast-release

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

LIBPCAP 1.x.y

Build Status

Build Status

Now maintained by “The Tcpdump Group”

https://www.tcpdump.org

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

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 file CONTRIBUTING.md in the libpcap source tree root.

The directory doc/ 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.

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''. A compressed PostScript version can be found at

https://www.tcpdump.org/papers/bpf-usenix93.ps.Z

and a gzipped version can be found at

https://www.tcpdump.org/papers/bpf-usenix93.ps.gz

A PDF version can be found at

https://www.tcpdump.org/papers/bpf-usenix93.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 in:

https://www.tcpdump.org/other/bpfext42.tar.Z

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 README.linux file 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.