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