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 f57d847d09 The SITA code in pcap-linux.c shares very little with the Linux code;
move it into pcap-sita.c, and make --with-sita set the pcap type to
"sita", so we build pcap-sita.c instead of, rather than in addition to,
pcap-linux.c.

Use "bpf_u_int32" rather than "ulong" in the SITA code, as it's intended
to be 32 bits long (the "l" in "htonl()" and "ntohl()" is historical -
they work on 32-bit quantities, and the "l" dates back to the days when
32-bit processors were a bit newer and 16-bit Unix was more common).

Those changes also, at least in theory, makes the SITA support work on
other Unix-compatible platforms; note that in README.sita.

Clean up pcap-sita.c, making routines no longer called outside it
static, folding trivial wrappers, and fixing various warnings.

Put the routines used by fad-sita.c and defined by pcap-sita.c into
pcap-sita.h.  Remove from pcap-sita.h the files that are now static to
pcap-sita.c.  Include pcap-sita.h in both fad-sita.c and pcap-sita.c, so
that we do cross-file prototype checking.
2008-01-06 20:23:17 +00:00
ChmodBPF Add an OS X startup item to set the permissions and/or ownership of the 2004-10-18 09:51:02 +00:00
SUNOS4 Initial revision 1999-10-07 23:46:40 +00:00
Win32 Added the prototype for inet_aton(). 2007-09-27 18:02:20 +00:00
bpf/net Make some arguments const pointers if that makes sense. 2008-01-02 04:16:46 +00:00
doc documentation for proposed pcap format 2004-04-05 20:26:58 +00:00
lbl Get rid of a bogus */ in the middle of a comment. 2002-08-02 03:24:15 +00:00
missing Move "snprintf.c" to the "missing" directory, as that's where 2004-04-05 22:43:50 +00:00
msdos Actually add the RCS ID claimed to be added by the previous checkin. 2004-12-19 19:47:01 +00:00
packaging Go with 0.9, not 1.0, for the next release. 2004-10-12 01:55:47 +00:00
pcap Make some arguments const pointers if that makes sense. 2008-01-02 04:16:46 +00:00
.cvsignore Add a wrapper around Lex/Flex; that lets us handle Lex's lack of support 2007-12-30 00:28:17 +00:00
CHANGES changes from 3.9 branch. 2007-07-24 02:25:19 +00:00
CREDITS From Gregor Maier: pcap_open_dead() doesn't take an errbuf argument (the 2007-11-29 18:27:27 +00:00
FILES Add a wrapper around Lex/Flex; that lets us handle Lex's lack of support 2007-12-30 00:28:17 +00:00
INSTALL.txt Add a wrapper around Lex/Flex; that lets us handle Lex's lack of support 2007-12-30 00:28:17 +00:00
LICENSE added license file 2000-10-09 22:38:56 +00:00
Makefile.in No need to quote $(LEX) when passing it to runlex.sh; that way, it can 2007-12-31 02:34:30 +00:00
README Another update for the new version number. 2004-10-12 02:02:28 +00:00
README.Win32 Added a readme that explains how to compile libpcap under win32. 2002-08-09 13:55:12 +00:00
README.aix From Shaun Clowes: update the to reflect the fact that it should now 2003-04-17 06:32:37 +00:00
README.dag From Stephen Donnelly: 2006-04-07 07:07:25 +00:00
README.hpux Add to the beginning a note from Rick Jones that 11i (11.11) and later 2005-01-15 01:23:56 +00:00
README.linux From Scott Barron <sb125499@ohiou.edu>: use the 2001-07-29 18:25:46 +00:00
README.macosx Add an OS X startup item to set the permissions and/or ownership of the 2004-10-18 09:51:02 +00:00
README.septel From Gilbert Hoyek <gil_hoyek@hotmail.com>: support for capturing SS7 2005-06-20 21:27:07 +00:00
README.sita The SITA code in pcap-linux.c shares very little with the Linux code; 2008-01-06 20:23:17 +00:00
README.tru64 Pick up the "README.tru64" file from Ethereal, and change it to refer to 2001-01-24 06:52:52 +00:00
TODO No, that's not the right fix for the Linux kernel interface; the right 2006-10-04 18:16:20 +00:00
VERSION Go with 0.9, not 1.0, for the next release. 2004-10-12 01:55:47 +00:00
acconfig.h Add "const" for autoconf 2.52 compatability. Longer term solution: 2001-11-12 22:18:01 +00:00
aclocal.m4 AC_TRY_COMPILE works only for code that fits inside "main()"; the test 2005-04-21 03:41:24 +00:00
arcnet.h Fix up the RCS ID, and put in a line indicating the NetBSD header file 2001-04-24 02:17:52 +00:00
atmuni31.h Use VCI_ as a prefix for all the VCI values, rather than just prefixing 2007-10-22 19:28:58 +00:00
bpf_dump.c Make some arguments const pointers if that makes sense. 2008-01-02 04:16:46 +00:00
bpf_image.c Make some arguments const pointers if that makes sense. 2008-01-02 04:16:46 +00:00
config.guess Latest config.guess and config.sub from 2003-11-18 06:30:50 +00:00
config.h.in Use AC_SYS_LARGEFILE and AC_FUNC_FSEEKO to try to get large file support. 2008-01-01 03:49:11 +00:00
config.sub Latest config.guess and config.sub from 2003-11-18 06:30:50 +00:00
configure The SITA code in pcap-linux.c shares very little with the Linux code; 2008-01-06 20:23:17 +00:00
configure.in The SITA code in pcap-linux.c shares very little with the Linux code; 2008-01-06 20:23:17 +00:00
etherent.c Put the public libpcap headers into a pcap subdirectory in both the 2006-10-04 18:09:21 +00:00
ethertype.h Add "pppoed" and "pppoes" keywords, for PPPoE Discovery and Session 2005-09-05 09:06:58 +00:00
fad-getad.c From RCB-ISIS on SourceForge: handle LynxOS, which has AF_PACKET but 2007-09-14 00:44:54 +00:00
fad-gifc.c Checking whether the amount of data returned by SIOCGIFCONF is less than 2005-06-29 06:41:39 +00:00
fad-glifc.c From Albert Chin: fix a cut-and-pasteo. 2005-04-19 00:54:00 +00:00
fad-null.c Add _U_ to "rcsid[]" definitions, to eliminate "unused variable" 2003-11-15 23:23:57 +00:00
fad-sita.c The SITA code in pcap-linux.c shares very little with the Linux code; 2008-01-06 20:23:17 +00:00
fad-win32.c Add pcap_platform_finddevs() to WinPcap. 2007-09-25 20:34:36 +00:00
filtertest.c We're building with the current version of libpcap, so we know we have 2005-08-08 17:50:13 +00:00
findalldevstest.c Add another test program, based on the test program for 2005-08-10 06:19:05 +00:00
gencode.c The Prism header is in theory variable-length, but in practice it's 2007-12-29 23:15:04 +00:00
gencode.h Support OpenBSD's "addr1", "addr2", "addr3", and "addr4" link-layer 2007-11-18 02:03:52 +00:00
grammar.y Support OpenBSD's "addr1", "addr2", "addr3", and "addr4" link-layer 2007-11-18 02:03:52 +00:00
ieee80211.h Support OpenBSD's "addr1", "addr2", "addr3", and "addr4" link-layer 2007-11-18 02:03:52 +00:00
inet.c Pick up changes from NetBSD: 2007-06-11 10:04:24 +00:00
install-sh Initial revision 1999-10-07 23:46:40 +00:00
llc.h Add a "netbeui" keyword, which selects NetBEUI packets (LLC packets with 2001-01-28 09:44:48 +00:00
mkdep In some Solaris distributions, gcc is in /usr/sfw/bin. Look there for 2007-10-16 11:35:53 +00:00
nametoaddr.c Pick up changes from NetBSD: 2007-06-11 10:04:24 +00:00
nlpid.h add BPF_ filters for misc. IS-IS PDU Types 2002-12-06 00:01:33 +00:00
optimize.c Make some arguments const pointers if that makes sense. 2008-01-02 04:16:46 +00:00
pcap-bpf.c Make some arguments const pointers if that makes sense. 2008-01-02 04:16:46 +00:00
pcap-bpf.h Add RCS IDs. 2007-04-01 21:43:55 +00:00
pcap-bt-linux.c From Paolo Abeni: 2007-09-22 02:10:17 +00:00
pcap-bt-linux.h From Paolo Abeni: fix copyrights. 2007-09-14 01:55:49 +00:00
pcap-dag.c From Stephen Donnelly: 2007-11-09 00:55:53 +00:00
pcap-dag.h From Stephen Donnelly: 2007-11-09 00:55:53 +00:00
pcap-dlpi.c Don't assume that p->fcode.bpf_insns remains unchanged while processing 2007-12-05 23:37:26 +00:00
pcap-dos.c Don't assume that p->fcode.bpf_insns remains unchanged while processing 2007-12-05 23:37:26 +00:00
pcap-dos.h From Gisle Vanem: MS-DOS support. 2004-12-18 08:52:08 +00:00
pcap-enet.c Put the public libpcap headers into a pcap subdirectory in both the 2006-10-04 18:09:21 +00:00
pcap-int.h The SITA code in pcap-linux.c shares very little with the Linux code; 2008-01-06 20:23:17 +00:00
pcap-linux.c The SITA code in pcap-linux.c shares very little with the Linux code; 2008-01-06 20:23:17 +00:00
pcap-namedb.h Add a cautionary note to OS vendors here as well. 2006-10-04 18:13:32 +00:00
pcap-nit.c Don't assume that p->fcode.bpf_insns remains unchanged while processing 2007-12-05 23:37:26 +00:00
pcap-nit.h Initial revision 1999-10-07 23:46:40 +00:00
pcap-null.c Add _U_ to "rcsid[]" definitions, to eliminate "unused variable" 2003-11-15 23:23:57 +00:00
pcap-pf.c Don't assume that p->fcode.bpf_insns remains unchanged while processing 2007-12-05 23:37:26 +00:00
pcap-pf.h Initial revision 1999-10-07 23:46:40 +00:00
pcap-septel.c The data link layer isn't settable, so get rid of 2005-06-21 01:03:03 +00:00
pcap-septel.h From Gilbert Hoyek <gil_hoyek@hotmail.com>: support for capturing SS7 2005-06-20 21:27:07 +00:00
pcap-sita.c The SITA code in pcap-linux.c shares very little with the Linux code; 2008-01-06 20:23:17 +00:00
pcap-sita.h The SITA code in pcap-linux.c shares very little with the Linux code; 2008-01-06 20:23:17 +00:00
pcap-sita.html SITA ACN support, from Fulko Hew. 2007-10-20 01:15:14 +00:00
pcap-snit.c Don't assume that p->fcode.bpf_insns remains unchanged while processing 2007-12-05 23:37:26 +00:00
pcap-snoop.c From Pawel Pokrywka: add support for requesting that only received 2005-05-03 18:53:58 +00:00
pcap-stdinc.h Added the definition of strdup as _strdup under VC6. 2007-09-27 17:59:45 +00:00
pcap-usb-linux.c Handle the case where mmap()ped access to the USB buffer is used; 2007-12-14 08:02:40 +00:00
pcap-usb-linux.h From Paolo Abeni: fix copyrights. 2007-09-14 01:55:49 +00:00
pcap-win32.c Under MingW/cygwin, we need to use ddk/ndis.h instead of ntddndis.h. 2007-11-13 21:55:51 +00:00
pcap.3 Now that we try to build libpcap with large file support, add a warning 2008-01-01 04:34:49 +00:00
pcap.c [from Gisle Vanem] 2007-11-06 16:20:53 +00:00
pcap.h Put the public libpcap headers into a pcap subdirectory in both the 2006-10-04 18:09:21 +00:00
pcap1.h Put the public libpcap headers into a pcap subdirectory in both the 2006-10-04 18:09:21 +00:00
ppp.h The DLT_LINUX_PPP_WITHDIRECTION is also used for pppd on some BSDs, so 2005-02-08 19:52:18 +00:00
runlex.sh Add --nounput if Flex supports the --noFUNCTION options, as at least 2007-12-31 03:38:39 +00:00
savefile.c DLT_ value for IPMB with a Linux-specific pseudo-header,a s requested by 2007-12-23 04:40:45 +00:00
scanner.l Support OpenBSD's "addr1", "addr2", "addr3", and "addr4" link-layer 2007-11-18 02:03:52 +00:00
sunatmpos.h Add SunATM support, based on code from Yen Yen Lim at North Dakota State 2002-07-11 09:06:30 +00:00

README

@(#) $Header: /tcpdump/master/libpcap/README,v 1.30 2004-10-12 02:02:28 guy Exp $ (LBL)

LIBPCAP 0.9
Now maintained by "The Tcpdump Group"
See 		www.tcpdump.org

Please send inquiries/comments/reports to 	tcpdump-workers@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 0.9 of LIBPCAP can be retrieved with the CVS tag "libpcap_0_9rel1":
	cvs -d :pserver:tcpdump@cvs.tcpdump.org:/tcpdump/master checkout -r libpcap_0_9rel1 libpcap

Please send patches against the master copy to patches@tcpdump.org.

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.

Note well: this interface is new and is likely to change.

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.

Problems, bugs, questions, desirable enhancements, etc. should be sent
to the address "tcpdump-workers@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
"patches@tcpdump.org", or 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