dect
/
libpcap
Archived
13
0
Fork 0
PCAP Library with DECT support
This repository has been archived on 2022-02-17. You can view files and clone it, but cannot push or open issues or pull requests.
Go to file
guy 4970feb0d6 Don't do all the recvmsg() stuff if we don't have "struct
tpacket_auxdata".
2008-10-28 00:50:39 +00:00
SUNOS4 Initial revision 1999-10-07 23:46:40 +00:00
Win32/Src malloc(strlen(X) + 1) followed by strcpy(result-of-malloc, str) is 2008-09-15 23:38:45 +00:00
bpf/net Make some arguments const pointers if that makes sense. 2008-01-02 04:22:16 +00:00
lbl pcap-0.4 1999-10-07 23:46:40 +00:00
linux-include/netinet Initial revision 1999-10-07 23:46:40 +00:00
msdos From Gisle Vanem: 2008-04-22 17:20:42 +00:00
packaging On Linux (and other platforms using the V7 man page conventions), we 2008-10-27 20:52:07 +00:00
pcap Implemented pcap_hopen_offline(). This "internal" function allows us to 2008-10-06 15:38:39 +00:00
.cvsignore More files to ignore. 2008-10-23 22:14:49 +00:00
CHANGES Final update 2008-10-28 00:27:42 +00:00
CREDITS Zero-copy BPF support, from Christian Peron. 2008-09-16 00:21:08 +00:00
INSTALL pcap-0.4 1999-10-07 23:46:40 +00:00
INSTALL.txt Update the NeXTStEP, SCO UNIX/SCO OpenServer, and UnixWare information. 2008-06-12 20:25:38 +00:00
Makefile.in Speaking of dumb, that's a classic "useless cat"; just have sed read 2008-10-23 22:13:21 +00:00
README Update with Guy's comments about soname change 2008-10-17 10:39:20 +00:00
README.aix Fix more patches@tcpdump.org references to point to the SourceForge 2008-05-30 01:43:44 +00:00
README.macosx Update README.macosx to talk about the launchd daemon, and to give more 2008-06-07 18:53:55 +00:00
README.sita The SITA code in pcap-linux.c shares very little with the Linux code; 2008-01-06 20:24:12 +00:00
VERSION 1.0.0 Final 2008-10-27 12:37:22 +00:00
aclocal.m4 Fix the rest of the $target_XXX to refer to $host_XXX - in autoconf 2008-09-28 17:13:37 +00:00
atmuni31.h Use VCI_ as a prefix for all the VCI values, rather than just prefixing 2007-10-22 19:30:14 +00:00
bpf_dump.c Make some arguments const pointers if that makes sense. 2008-01-02 04:22:16 +00:00
bpf_image.c Make some arguments const pointers if that makes sense. 2008-01-02 04:22:16 +00:00
chmod_bpf Add a script to change the permissions of /dev/bpf*, and a launchd plist 2008-05-28 02:15:05 +00:00
config.guess Initial revision 1999-10-07 23:46:40 +00:00
config.h.in Zero-copy BPF support, from Christian Peron. 2008-09-16 00:21:08 +00:00
config.sub Initial revision 1999-10-07 23:46:40 +00:00
configure In the big "host OS" switch, put the names in alphabetical order, and 2008-10-24 07:30:18 +00:00
configure.in In the big "host OS" switch, put the names in alphabetical order, and 2008-10-24 07:30:18 +00:00
dlpisubs.c From Paolo Abeni and me: split pcap_open_live() into a "get a pcap_t 2008-04-04 19:39:05 +00:00
dlpisubs.h From Paolo Abeni and me: split pcap_open_live() into a "get a pcap_t 2008-04-04 19:39:05 +00:00
etherent.c pcap-0.4 1999-10-07 23:46:40 +00:00
ethertype.h pcap-0.4 1999-10-07 23:46:40 +00:00
fad-gifc.c We shouldn't need to include <sys/file.h>, and, as I remember, it caused 2008-08-06 07:35:01 +00:00
fad-glifc.c From Sagun Shakya: fix typoes in comments. 2008-01-30 09:36:09 +00:00
fad-sita.c The SITA code in pcap-linux.c shares very little with the Linux code; 2008-01-06 20:24:12 +00:00
gencode.c Link-layer type for 802.15.4 with PHY-level preamble, SFD, and frame 2008-09-22 20:16:01 +00:00
gencode.h Support OpenBSD's "addr1", "addr2", "addr3", and "addr4" link-layer 2007-11-18 02:04:55 +00:00
grammar.y Support OpenBSD's "addr1", "addr2", "addr3", and "addr4" link-layer 2007-11-18 02:04:55 +00:00
ieee80211.h Support OpenBSD's "addr1", "addr2", "addr3", and "addr4" link-layer 2007-11-18 02:04:55 +00:00
inet.c Expand a comment with more information on getting interface names. 2008-04-20 18:19:24 +00:00
install-sh Initial revision 1999-10-07 23:46:40 +00:00
mkdep In some Solaris distributions, gcc is in /usr/sfw/bin. Look there for 2007-10-16 11:36:35 +00:00
nametoaddr.c From Arien Vijn: support various notions for MAC addresses. 2008-02-06 10:21:47 +00:00
optimize.c Make some arguments const pointers if that makes sense. 2008-01-02 04:22:16 +00:00
org.tcpdump.chmod_bpf.plist This is probably the right way to run something once at startup time; it 2008-06-05 08:14:37 +00:00
pcap-bpf.c Only set the cleanup and set/get nonblocking mode handlers to the 2008-09-16 18:43:02 +00:00
pcap-bt-linux.c Get rid of declaration of non-existent routine. 2008-07-01 07:06:37 +00:00
pcap-bt-linux.h From Paolo Abeni and me: split pcap_open_live() into a "get a pcap_t 2008-04-04 19:39:05 +00:00
pcap-config.1 Add a pcap-config script, to handle necessary -I/-L flags and any 2008-09-23 18:06:01 +00:00
pcap-config.in Add a pcap-config script, to handle necessary -I/-L flags and any 2008-09-23 18:06:01 +00:00
pcap-dag.c Turn close_op into cleanup_op; the routine that handles it can also be 2008-04-14 20:41:51 +00:00
pcap-dag.h From Paolo Abeni and me: split pcap_open_live() into a "get a pcap_t 2008-04-04 19:39:05 +00:00
pcap-dlpi.c Turn close_op into cleanup_op; the routine that handles it can also be 2008-04-14 20:41:51 +00:00
pcap-dos.c From Gisle Vanem: 2008-04-22 17:16:49 +00:00
pcap-enet.c Initial revision 1999-10-07 23:46:40 +00:00
pcap-filter.manmisc.in Don't hard-wire section 4 as the section for the pcap-filter and 2008-10-21 07:44:56 +00:00
pcap-int.h Zero-copy BPF support, from Christian Peron. 2008-09-16 00:21:08 +00:00
pcap-libdlpi.c Turn close_op into cleanup_op; the routine that handles it can also be 2008-04-14 20:41:51 +00:00
pcap-linktype.manmisc.in Use a semicolon, rather than a comma, to separate the DLT_ and LINKTYPE_ 2008-10-27 22:52:05 +00:00
pcap-linux.c Don't do all the recvmsg() stuff if we don't have "struct 2008-10-28 00:50:39 +00:00
pcap-namedb.h pcap-0.4 1999-10-07 23:46:40 +00:00
pcap-nit.c Turn close_op into cleanup_op; the routine that handles it can also be 2008-04-14 20:41:51 +00:00
pcap-null.c From Paolo Abeni and me: split pcap_open_live() into a "get a pcap_t 2008-04-04 19:39:05 +00:00
pcap-pf.c Turn close_op into cleanup_op; the routine that handles it can also be 2008-04-14 20:41:51 +00:00
pcap-savefile.manfile.in Add LINKTYPE_ names to the pcap-linktype man page, and include the 2008-10-24 07:34:06 +00:00
pcap-septel.c Turn close_op into cleanup_op; the routine that handles it can also be 2008-04-14 20:41:51 +00:00
pcap-septel.h From Paolo Abeni and me: split pcap_open_live() into a "get a pcap_t 2008-04-04 19:39:05 +00:00
pcap-sita.c Turn close_op into cleanup_op; the routine that handles it can also be 2008-04-14 20:41:51 +00:00
pcap-sita.h The SITA code in pcap-linux.c shares very little with the Linux code; 2008-01-06 20:24:12 +00:00
pcap-sita.html SITA ACN support, from Fulko Hew. 2007-10-20 01:18:49 +00:00
pcap-snit.c Turn close_op into cleanup_op; the routine that handles it can also be 2008-04-14 20:41:51 +00:00
pcap-snoop.c Turn close_op into cleanup_op; the routine that handles it can also be 2008-04-14 20:41:51 +00:00
pcap-stdinc.h Implemented pcap_hopen_offline(). This "internal" function allows us to 2008-10-06 15:38:39 +00:00
pcap-usb-linux.c Fix typoes (sigh, using both "p" and "handle" for the pcap_t pointer in 2008-04-14 21:06:29 +00:00
pcap-usb-linux.h From Paolo Abeni and me: split pcap_open_live() into a "get a pcap_t 2008-04-04 19:39:05 +00:00
pcap-win32.c pcap_create() should accept UNICODE device names as well as ASCII ones 2008-05-21 22:11:26 +00:00
pcap.3pcap.in Don't hard-wire section 4 as the section for the pcap-filter and 2008-10-21 07:44:56 +00:00
pcap.c Link-layer type for 802.15.4 with PHY-level preamble, SFD, and frame 2008-09-22 20:16:01 +00:00
pcap.h pcap-0.4 1999-10-07 23:46:40 +00:00
pcap1.h Fix more patches@tcpdump.org references to point to the SourceForge 2008-05-30 01:43:44 +00:00
pcap_activate.3pcap When activating a device, return PCAP_ERROR_IFACE_NOT_UP if the device 2008-07-01 08:04:02 +00:00
pcap_breakloop.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_can_set_rfmon.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_close.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_compile.3pcap.in Don't hard-wire section 4 as the section for the pcap-filter and 2008-10-21 07:44:56 +00:00
pcap_create.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_datalink.3pcap.in Don't hard-wire section 4 as the section for the pcap-filter and 2008-10-21 07:44:56 +00:00
pcap_datalink_name_to_val.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_datalink_val_to_name.3pcap Get rid of the AUTHORS and BUGS section; only the main pcap(3PCAP) man 2008-05-30 01:32:55 +00:00
pcap_dump.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_dump_close.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_dump_file.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_dump_flush.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_dump_ftell.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_dump_open.3pcap.in Add a man page describing the pcap file format. 2008-10-23 05:59:43 +00:00
pcap_file.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_fileno.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_findalldevs.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_free_datalinks.3pcap Add pcap_free_datalinks() - on Windows, something allocated in Vegas^Wa 2008-05-26 19:58:59 +00:00
pcap_freealldevs.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_freecode.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_get_selectable_fd.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_geterr.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_inject.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_is_swapped.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_lib_version.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_list_datalinks.3pcap.in Don't hard-wire section 4 as the section for the pcap-filter and 2008-10-21 07:44:56 +00:00
pcap_lookupdev.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_lookupnet.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_loop.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_major_version.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_next_ex.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_offline_filter.3pcap Pick up pcap_offline_filter() from WinPcap. 2008-05-13 15:20:44 +00:00
pcap_open_dead.3pcap.in Don't hard-wire section 4 as the section for the pcap-filter and 2008-10-21 07:44:56 +00:00
pcap_open_live.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_open_offline.3pcap.in Add a man page describing the pcap file format. 2008-10-23 05:59:43 +00:00
pcap_set_buffer_size.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_set_datalink.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_set_promisc.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_set_rfmon.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_set_snaplen.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_set_timeout.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_setdirection.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_setfilter.3pcap Pick up pcap_offline_filter() from WinPcap. 2008-05-13 15:20:44 +00:00
pcap_setnonblock.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_snapshot.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_stats.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
pcap_statustostr.3pcap Rename pcap_errtostr() to pcap_statustostr(), and have it handle 2008-04-09 21:41:53 +00:00
pcap_strerror.3pcap Document the new API's, move a bunch of information about libpcap 2008-04-06 03:21:55 +00:00
ppp.h pcap-0.4 1999-10-07 23:46:40 +00:00
runlex.sh Add --nounput if Flex supports the --noFUNCTION options, as at least 2007-12-31 03:39:06 +00:00
savefile.c Implemented pcap_hopen_offline(). This "internal" function allows us to 2008-10-06 15:38:39 +00:00
scanner.l From Arien Vijn: support various notions for MAC addresses. 2008-02-06 10:21:47 +00:00

README

@(#) $Header: /tcpdump/master/libpcap/README,v 1.30.4.3 2008-10-17 10:39:20 ken Exp $ (LBL)

LIBPCAP 1.0.0

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.0.0 of LIBPCAP can be retrieved with the CVS tag "libpcap_1_0":
	cvs -d :pserver:tcpdump@cvs.tcpdump.org:/tcpdump/master checkout -r libpcap_1_0 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 (and OS X).

It sets the soname of the library to "libpcap.so.1"; this is what it 
should be, *NOT* libpcap.so.1.0 or libpcap.so.1.0.0 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