mcr / libpcap

the LIBpcap interface to various kernel packet capture mechanism

This URL has Read+Write access

Guy Harris (author)
Tue Nov 03 14:18:11 -0800 2009
commit  6b414c082f0079664c0535963108ae4a648dba47
tree    00c6d239a690de3a1b630bcb26c3232a7721dd4e
parent  339d28cefc11bbadaa92005b4f7b365f4732432c
name age message
file .cvsignore Thu Oct 23 15:14:38 -0700 2008 More files to ignore. [yuguy]
file .gitignore Thu Jul 30 20:58:34 -0700 2009 seltest was renamed selpolltest. [Guy Harris]
file CHANGES Wed May 06 11:16:31 -0700 2009 fixed date and added note about updates to pcap... [mcr]
file CREDITS Loading commit data...
directory ChmodBPF/ Wed Sep 09 16:50:36 -0700 2009 To quote http://developer.apple.com/mac/libra... [Guy Harris]
file INSTALL.txt Thu Jun 12 13:21:51 -0700 2008 Update the NeXTStEP, SCO UNIX/SCO OpenServer, a... [yuguy]
file LICENSE Mon Oct 09 15:38:56 -0700 2000 added license file [mcr]
file Makefile.in
file README Tue Apr 21 09:11:06 -0700 2009 Slight update to the item about shared librarie... [Guy Harris]
file README.Win32 Fri Aug 09 06:55:12 -0700 2002 Added a readme that explains how to compile lib... [risso]
file README.aix Thu May 29 18:43:21 -0700 2008 Fix more patches@tcpdump.org references to poin... [yuguy]
file README.dag Fri Apr 07 00:07:25 -0700 2006 From Stephen Donnelly: If the DAG API support... [yuguy]
file README.hpux Fri Jan 14 17:23:56 -0800 2005 Add to the beginning a note from Rick Jones tha... [yuguy]
file README.linux Wed Jul 15 14:19:13 -0700 2009 Note that libpcap links with libnl by default -... [Guy Harris]
file README.macosx Wed Sep 09 17:36:06 -0700 2009 Put in a note about the Snow Leopard bug that r... [Guy Harris]
file README.septel Mon Jun 20 14:27:07 -0700 2005 From Gilbert Hoyek <gil_hoyek@hotmail.com>: sup... [yuguy]
file README.sita Sun Jan 06 12:23:17 -0800 2008 The SITA code in pcap-linux.c shares very littl... [yuguy]
file README.tru64 Tue Jan 23 22:52:52 -0800 2001 Pick up the "README.tru64" file from Ethereal, ... [yuguy]
directory SUNOS4/ Thu Oct 07 16:46:40 -0700 1999 Initial revision [mcr]
file TODO Wed Oct 04 11:16:20 -0700 2006 No, that's not the right fix for the Linux kern... [yuguy]
file VERSION Fri Nov 21 11:19:02 -0800 2008 Libpcap is at 1.x, it's tcpdump that's at 4.x. [yuguy]
directory Win32/ Thu Jul 16 15:46:55 -0700 2009 Added a bunch of #ifdef directives to make wpca... [test]
file aclocal.m4 Wed Jul 08 01:10:18 -0700 2009 Check for the intN_t and u_intN_t types the sam... [Guy Harris]
file arcnet.h Mon Apr 23 19:17:52 -0700 2001 Fix up the RCS ID, and put in a line indicating... [yuguy]
file atmuni31.h Mon Oct 22 12:28:58 -0700 2007 Use VCI_ as a prefix for all the VCI values, ra... [yuguy]
directory bpf/ Tue Jan 01 20:16:46 -0800 2008 Make some arguments const pointers if that make... [yuguy]
file bpf_dump.c Tue Jan 01 20:16:46 -0800 2008 Make some arguments const pointers if that make... [yuguy]
file bpf_image.c Tue Jan 01 20:16:46 -0800 2008 Make some arguments const pointers if that make... [yuguy]
file chmod_bpf Tue May 27 19:14:10 -0700 2008 Add a script to change the permissions of /dev/... [yuguy]
file config.guess Tue Apr 21 09:09:37 -0700 2009 Extend the scheme for building .so files to sup... [Guy Harris]
file config.h.in Sun Oct 11 11:05:46 -0700 2009 Work around an annoying Snow Leopard BPF bug th... [Guy Harris]
file config.sub Tue Apr 21 09:09:37 -0700 2009 Extend the scheme for building .so files to sup... [Guy Harris]
file configure
file configure.in
file dlpisubs.c Mon Jun 29 00:50:19 -0700 2009 Don't define pcap_stream_err() if we're not goi... [Guy Harris]
file dlpisubs.h Fri Apr 04 12:37:44 -0700 2008 From Paolo Abeni and me: split pcap_open_live()... [yuguy]
directory doc/ Mon Apr 05 13:26:58 -0700 2004 documentation for proposed pcap format [mcr]
file etherent.c Wed Oct 04 11:09:21 -0700 2006 Put the public libpcap headers into a pcap subd... [yuguy]
file ethertype.h Mon Sep 05 02:06:58 -0700 2005 Add "pppoed" and "pppoes" keywords, for PPPoE D... [yuguy]
file fad-getad.c Thu Sep 13 17:44:54 -0700 2007 From RCB-ISIS on SourceForge: handle LynxOS, wh... [yuguy]
file fad-gifc.c Wed Aug 06 00:34:09 -0700 2008 We shouldn't need to include <sys/file.h>, and,... [yuguy]
file fad-glifc.c Wed Jan 30 01:35:48 -0800 2008 From Sagun Shakya: fix typoes in comments. [yuguy]
file fad-null.c Sat Nov 15 15:23:57 -0800 2003 Add _U_ to "rcsid[]" definitions, to eliminate ... [yuguy]
file fad-sita.c Sun Jan 06 12:23:17 -0800 2008 The SITA code in pcap-linux.c shares very littl... [yuguy]
file fad-win32.c Tue Sep 25 13:34:36 -0700 2007 Add pcap_platform_finddevs() to WinPcap. [yuguy]
file filtertest.c
file findalldevstest.c Tue Aug 09 23:19:05 -0700 2005 Add another test program, based on the test pro... [yuguy]
file gencode.c
file gencode.h Sat Nov 17 18:03:52 -0800 2007 Support OpenBSD's "addr1", "addr2", "addr3", an... [yuguy]
file grammar.y Tue Jul 07 11:42:22 -0700 2009 The SUSv3 says ntoh* and hton* are declared in ... [Guy Harris]
file ieee80211.h Sat Nov 17 18:03:52 -0800 2007 Support OpenBSD's "addr1", "addr2", "addr3", an... [yuguy]
file inet.c Thu Mar 19 09:37:03 -0700 2009 From Roman Francoise: rename the USB-sniffing d... [Guy Harris]
file install-sh Thu Oct 07 16:46:40 -0700 1999 Initial revision [mcr]
directory lbl/ Thu Aug 01 20:24:15 -0700 2002 Get rid of a bogus */ in the middle of a comment. [yuguy]
file llc.h Sun Jan 28 01:44:48 -0800 2001 Add a "netbeui" keyword, which selects NetBEUI ... [yuguy]
directory missing/ Mon Apr 05 15:43:50 -0700 2004 Move "snprintf.c" to the "missing" directory, a... [yuguy]
file mkdep Tue Oct 16 04:35:53 -0700 2007 In some Solaris distributions, gcc is in /usr/s... [yuguy]
directory msdos/ Tue Apr 22 10:20:25 -0700 2008 From Gisle Vanem: * gnuc.h not needed. * sys/... [yuguy]
file nametoaddr.c Sat Feb 14 14:36:34 -0800 2009 From Gisle Vanem: * nametoaddr.c with DECNETLI... [Guy Harris]
file nlpid.h Thu Dec 05 16:01:33 -0800 2002 add BPF_ filters for misc. IS-IS PDU Types [hannes]
file opentest.c Tue Aug 11 21:37:18 -0700 2009 Add a program for testing both the old (pcap_op... [Guy Harris]
file optimize.c Tue Jan 01 20:16:46 -0800 2008 Make some arguments const pointers if that make... [yuguy]
file org.tcpdump.chmod_bpf.plist Thu Jun 05 01:10:59 -0700 2008 This is probably the right way to run something... [yuguy]
directory packaging/ Mon Oct 27 13:50:56 -0700 2008 On Linux (and other platforms using the V7 man ... [yuguy]
file pcap-bpf.c
file pcap-bpf.h Sun Apr 01 14:43:55 -0700 2007 Add RCS IDs. [yuguy]
file pcap-bt-linux.c Tue Jul 01 00:05:54 -0700 2008 Get rid of declaration of non-existent routine. [yuguy]
file pcap-bt-linux.h Fri Apr 04 12:37:44 -0700 2008 From Paolo Abeni and me: split pcap_open_live()... [yuguy]
file pcap-config.1 Fri May 22 16:04:25 -0700 2009 Add a --additional-libs flag to pcap-config, to... [Guy Harris]
file pcap-config.in Tue Jun 09 10:56:41 -0700 2009 Oops, close a quote. [Guy Harris]
file pcap-dag.c Mon Sep 07 16:48:26 -0700 2009 handle->md.stat should be zeroed out when we in... [Guy Harris]
file pcap-dag.h Sun May 03 21:32:52 -0700 2009 Updating Endace DAG ERF support. - Ensure all ... [sfd]
file pcap-dlpi.c Thu Jul 02 12:28:51 -0700 2009 dlp->dl_length might be an unsigned long; cast ... [Guy Harris]
file pcap-dos.c Tue Apr 22 10:16:30 -0700 2008 From Gisle Vanem: Update his e-mail address. ... [yuguy]
file pcap-dos.h Sat Dec 18 00:52:08 -0800 2004 From Gisle Vanem: MS-DOS support. [yuguy]
file pcap-enet.c Wed Oct 04 11:09:21 -0700 2006 Put the public libpcap headers into a pcap subd... [yuguy]
file pcap-filter.manmisc.in Tue Oct 21 00:33:01 -0700 2008 Don't hard-wire section 4 as the section for th... [yuguy]
file pcap-int.h Mon Sep 07 16:23:15 -0700 2009 From Dustin Spicuzza: support ps_ifdrop on Linu... [Guy Harris]
file pcap-libdlpi.c Thu Feb 26 01:16:26 -0800 2009 From Sebastien Roy: fix compilation problems on... [Guy Harris]
file pcap-linktype.manmisc.in
file pcap-linux.c Mon Oct 12 17:06:11 -0700 2009 Fix typo^Wbraino. [Guy Harris]
file pcap-namedb.h Wed Oct 04 11:13:32 -0700 2006 Add a cautionary note to OS vendors here as well. [yuguy]
file pcap-nit.c Mon Sep 21 10:45:09 -0700 2009 If an activate routine fails, it needs to clean... [Guy Harris]
file pcap-null.c Sat Feb 14 14:13:52 -0800 2009 Update to the new style, wherein each capture t... [Guy Harris]
file pcap-pf.c Mon Sep 21 10:45:09 -0700 2009 If an activate routine fails, it needs to clean... [Guy Harris]
file pcap-savefile.manfile.in Fri Oct 24 00:33:50 -0700 2008 Add LINKTYPE_ names to the pcap-linktype man pa... [yuguy]
file pcap-septel.c Mon Apr 14 13:40:58 -0700 2008 Turn close_op into cleanup_op; the routine that... [yuguy]
file pcap-septel.h Fri Apr 04 12:37:44 -0700 2008 From Paolo Abeni and me: split pcap_open_live()... [yuguy]
file pcap-sita.c Mon Apr 14 13:40:58 -0700 2008 Turn close_op into cleanup_op; the routine that... [yuguy]
file pcap-sita.h Sun Jan 06 12:23:17 -0800 2008 The SITA code in pcap-linux.c shares very littl... [yuguy]
file pcap-sita.html Fri Oct 19 18:15:14 -0700 2007 SITA ACN support, from Fulko Hew. [yuguy]
file pcap-snit.c Mon Sep 21 10:45:09 -0700 2009 If an activate routine fails, it needs to clean... [Guy Harris]
file pcap-snoop.c Mon Sep 21 10:45:09 -0700 2009 If an activate routine fails, it needs to clean... [Guy Harris]
file pcap-stdinc.h Thu Jul 16 15:09:15 -0700 2009 Added an #ifdef directive to allow compiling th... [test]
file pcap-usb-linux.c
file pcap-usb-linux.h Fri Apr 04 12:37:44 -0700 2008 From Paolo Abeni and me: split pcap_open_live()... [yuguy]
file pcap-win32.c Wed Jul 15 13:30:41 -0700 2009 Removed some leftover tracing messages. [test]
file pcap.3pcap.in Tue Oct 21 00:33:01 -0700 2008 Don't hard-wire section 4 as the section for th... [yuguy]
file pcap.c Sun Oct 11 10:16:21 -0700 2009 Add DLT_CAN_SOCKETCAN, for capturing on the Con... [Guy Harris]
file pcap.h Wed Oct 04 11:09:21 -0700 2006 Put the public libpcap headers into a pcap subd... [yuguy]
directory pcap/
file pcap1.h Thu May 29 18:43:21 -0700 2008 Fix more patches@tcpdump.org references to poin... [yuguy]
file pcap_activate.3pcap Tue Jul 01 01:02:33 -0700 2008 When activating a device, return PCAP_ERROR_IFA... [yuguy]
file pcap_breakloop.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_can_set_rfmon.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_close.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_compile.3pcap.in
file pcap_create.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_datalink.3pcap.in Tue Oct 21 00:33:01 -0700 2008 Don't hard-wire section 4 as the section for th... [yuguy]
file pcap_datalink_name_to_val.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_datalink_val_to_name.3pcap Wed Dec 24 13:45:25 -0800 2008 Fix the section number. (Thanks to the Debian ... [yuguy]
file pcap_dump.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_dump_close.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_dump_file.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_dump_flush.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_dump_ftell.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_dump_open.3pcap.in Wed Oct 22 22:56:59 -0700 2008 Add a man page describing the pcap file format.... [yuguy]
file pcap_file.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_fileno.3pcap Tue Nov 03 14:18:11 -0800 2009 Describe all the cases where pcap_fileno() retu... [Guy Harris]
file pcap_findalldevs.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_free_datalinks.3pcap Mon May 26 12:58:06 -0700 2008 Add pcap_free_datalinks() - on Windows, somethi... [yuguy]
file pcap_freealldevs.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_freecode.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_get_selectable_fd.3pcap Mon Oct 12 17:21:02 -0700 2009 Give N. Leiten credit for the poll() exceptiona... [Guy Harris]
file pcap_geterr.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_inject.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_is_swapped.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_lib_version.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_list_datalinks.3pcap.in Tue Oct 21 00:33:01 -0700 2008 Don't hard-wire section 4 as the section for th... [yuguy]
file pcap_lookupdev.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_lookupnet.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_loop.3pcap Wed Dec 24 18:01:32 -0800 2008 Another change from Debian. [yuguy]
file pcap_major_version.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_next_ex.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_offline_filter.3pcap Tue May 13 08:19:56 -0700 2008 Pick up pcap_offline_filter() from WinPcap. Ad... [yuguy]
file pcap_open_dead.3pcap.in Tue Oct 21 00:33:01 -0700 2008 Don't hard-wire section 4 as the section for th... [yuguy]
file pcap_open_live.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_open_offline.3pcap.in Wed Oct 22 22:56:59 -0700 2008 Add a man page describing the pcap file format.... [yuguy]
file pcap_set_buffer_size.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_set_datalink.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_set_promisc.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_set_rfmon.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_set_snaplen.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_set_timeout.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_setdirection.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_setfilter.3pcap Tue May 13 08:19:56 -0700 2008 Pick up pcap_offline_filter() from WinPcap. Ad... [yuguy]
file pcap_setnonblock.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_snapshot.3pcap Sat Apr 05 19:53:21 -0700 2008 Document the new API's, move a bunch of informa... [yuguy]
file pcap_stats.3pcap Mon Sep 07 16:23:15 -0700 2009 From Dustin Spicuzza: support ps_ifdrop on Linu... [Guy Harris]
file pcap_statustostr.3pcap Wed Apr 09 14:39:21 -0700 2008 Rename pcap_errtostr() to pcap_statustostr(), a... [yuguy]
file pcap_strerror.3pcap Sat Apr 05 13:26:56 -0700 2008 Include <pcap/pcap.h> in the SUMMARY sections -... [yuguy]
file ppp.h Tue Feb 08 11:52:18 -0800 2005 The DLT_LINUX_PPP_WITHDIRECTION is also used fo... [yuguy]
file runlex.sh Sun Dec 30 19:38:39 -0800 2007 Add --nounput if Flex supports the --noFUNCTION... [yuguy]
file savefile.c
file scanner.l Sun May 24 13:22:03 -0700 2009 If we have lex but not flex, we assign a "const... [Guy Harris]
file selpolltest.c Thu Jul 30 20:32:04 -0700 2009 Add the -p flag to the usage message. [Guy Harris]
file sunatmpos.h Thu Jul 11 02:06:30 -0700 2002 Add SunATM support, based on code from Yen Yen ... [yuguy]
README
@(#) $Header: /tcpdump/master/libpcap/README,v 1.34 2008-12-14 19:44:14 guy Exp $ (LBL)

LIBPCAP 1.x.y

www.tcpdump.org

Please send inquiries/comments/reports to:
  tcpdump-workers@lists.tcpdump.org

Anonymous CVS is available via:
  cvs -d :pserver:tcpdump@cvs.tcpdump.org:/tcpdump/master login
  (password "anoncvs")
  cvs -d :pserver:tcpdump@cvs.tcpdump.org:/tcpdump/master checkout libpcap

Version 1.x.y of LIBPCAP can be retrieved with the CVS tag "libpcap_1_{x}rel{y}":
  cvs -d :pserver:tcpdump@cvs.tcpdump.org:/tcpdump/master checkout -r libpcap_1_{x}rel{y} libpcap

Please submit patches against the master copy to the libpcap project on
sourceforge.net.

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

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

  ftp://ftp.ee.lbl.gov/papers/bpf-usenix93.ps.Z

or

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

and a gzipped version can be found at

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

A PDF version can be found at

  http://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, and OpenBSD.  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:

  ftp://gatekeeper.dec.com/pub/DEC/net/bpfext42.tar.Z.

Linux, in the 2.2 kernel and later kernels, has a "Socket Filter"
mechanism that accepts BPF filters; see the README.linux file for
information on configuring that option.

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.

Problems, bugs, questions, desirable enhancements, etc. should be sent
to the address "tcpdump-workers@lists.tcpdump.org".  Bugs, support
requests, and feature requests may also be submitted on the SourceForge
site for libpcap at

  http://sourceforge.net/projects/libpcap/

Source code contributions, etc. should be sent to the email address
submitted as patches on the SourceForge site for libpcap.

Current versions can be found at www.tcpdump.org, or the SourceForge
site for libpcap.

 - The TCPdump team