dect
/
libpcap
Archived
13
0
Fork 0
Commit Graph

1271 Commits

Author SHA1 Message Date
assar 6019517c9b ISLOOPBACK_IFA: add
(pcap_lookupdev): handle device names without numbers.  based on a
patch from Rafal Maszkowski <rzm@icm.edu.pl>
2000-07-29 07:42:48 +00:00
guy 84f822f4d8 Pick up, from the FreeBSD libpcap, changes to surround all declarations with
#ifdef __cplusplus
	extern "C" {
	#endif

		...

	#ifdef __cplusplus
	}
	#endif

so that C++ code can include these header files and correctly call the
C-language routines they declare.
2000-07-29 07:36:41 +00:00
assar 84f2cb311c remove owner/group from installs 2000-07-29 07:20:24 +00:00
assar 662b2c32d8 (install): install everything
(uninstall): add
(force): remove
2000-07-29 07:05:20 +00:00
guy 099d57bfe9 Give it an SCCS/RCS ID.
Update the date.

Fix a couple of typos.
2000-07-25 06:20:37 +00:00
guy c8c2e7e65b Token Ring support, from various patches. Also add "tr" as an alias for
"ether", "fddi", "link", etc..
2000-07-25 05:50:08 +00:00
guy 884ed98aed Add support for reading capture files from programs using Alexey
Kuznetzov's patched version of libpcap; we ignore the additional fields
it adds to the per-packet header.  Red Hat Linux 6.2 uses that patched
version, and some other Linux distributions might do so as well.

(This won't handle an early version of his patch, which changed the
per-packet header but didn't change the magic number; that early version
appears in Red Hat Linux 6.1.

Doing that requires a heuristic test, wherein we assume the file is
standard libpcap and try to read the first and second records, and, if
the header of the second record looks like garbage, assume that the file
came from that early version, and that we're therefore reading random
packet data when we think we're reading the header of the second packet.

As we don't then want to seek back to the first packet, because we want
to continue to allow libpcap-based programs such as tcpdump to read from
pipes, we'd have to buffer data from the file so that we can go back and
re-read it.  I leave this for later.)
2000-07-18 03:43:47 +00:00
guy 9862176baf Add CREDITS and README.aix to the list of files in the tarball.
Don't put the entire SUNOS4 directory into the tarball, as that may drag
in the CVS directories; instead, put in the files that actually belong
there.

Put "config.h.in" into the list in sort order.
2000-07-16 19:46:02 +00:00
guy 869687bc29 Include "config.h.in" in "FILES", as it needs to be a part of the source
tarball.
2000-07-16 19:18:01 +00:00
guy 3c3e2686ab Remove "lbl/gnuc.h" from the list of files in "FILES", as it's no longer
part of the libpcap source.
2000-07-16 19:10:07 +00:00
guy 28d89246f2 As "make tar" runs tar with a list of files to include in the tarball,
the classic BSD "F" flag, which tells it to *exclude* certain files, is
unnecessary; furthermore, some versions of tar may not support it, and
GNU tar, as appears in FreeBSD and perhaps other BSDs, and in Linux,
interprets the "F" flag as meaning "run, at the end of each archive
volume, the script whose name is given as an argument to the flag", so
it's not even syntactically compatible with the classic "F" flag.

The latter problem causes "make tar" to fail; we remove the "F" flags to
fix the problem.
2000-07-16 19:08:29 +00:00
guy 1ee8ddb3d4 Only turn BIOCIMMEDIATE mode on in AIX, not on other OSes with BPF such
as the various BSDs, and put in a comment explaining this.
2000-07-14 06:25:49 +00:00
guy ef8aca6eb3 Pick up the v0.5 changelog items, and delete the equivalent time-stamped
items.

Add some time-stamped items (more to come).
2000-07-14 02:35:03 +00:00
guy ab1c0634f4 libpcap doesn't use <sys/ioccom.h>, but the test program in
"AC_LBL_FIXINCLUDES" does, so we have to check for it, otherwise the
configure script fails on, among other platforms, Solaris.
2000-07-14 02:12:36 +00:00
guy 0d0297bdd1 Older versions of Flex (e.g., 2.5.2, which at least one user had) dump
core if the YY_FLUSH_BUFFER macro is called when there's no current
buffer (e.g., before any scanning has been done).

So, instead, when using Flex, we use "yy_scan_string()" to specify that
the scanner should read from the filter expression string, rather than
defining our own YY_INPUT macro, and we add a "lex_cleanup()" routine,
called after parsing is complete, to delete the buffer allocated by
"yy_scan_string()", which arranges that, when we next hand the scanner a
string, it doesn't then return to the parser cruft left over from the
previous parse.
2000-07-13 06:51:56 +00:00
guy e7039d24f4 Merge in changes from the libpcap 0.5 branch:
Update to note that non-patch mail should be sent to
	"tcpdump-workers@tcpdump.org", and that patches should be sent to
	"patches@tcpdump.org".
2000-07-13 06:24:14 +00:00
assar f4ab57be13 (pcap_open_live): rewrite BIOCSBLEN loop as a for(). from Guy Harris <gharris@flashcom.net> 2000-07-11 23:02:51 +00:00
assar b113d4f386 (pcap_open_live): repair BIOCSBLEN loop. from Guy Harris <gharris@flashcom.net> 2000-07-11 23:00:05 +00:00
assar 855d5eab07 conditionalize on USHRT_MAX and SOL_PACKET. From Love
<lha@stacken.kth.se>
2000-07-11 01:09:16 +00:00
assar b59cd6dc3c (MSG_TRUNC): define if it's not defined. From Love
<lha@stacken.kth.se>
2000-07-11 01:06:27 +00:00
assar 916c01aa0a not used any longer 2000-07-11 00:42:43 +00:00
assar d501922cfa regen 2000-07-11 00:38:47 +00:00
assar f1eb21451b add config.h. remove gnuc.h, use AC_DEFINE/3 to get strings into config.h.in 2000-07-11 00:38:19 +00:00
assar 0e2f8c8892 add config.h, remove gnuc.h. remove __dead 2000-07-11 00:37:04 +00:00
assar ca9f99af45 use AC_DEFINE/3 to get defines into config.h.in 2000-07-11 00:36:07 +00:00
assar 028f9db367 clarify error message
loop until buffer size is acceptable
BIOCIMMEDIATE: set if exists

based on patches from Darren Reed <darrenr@reed.wattle.id.au>
2000-07-10 04:50:05 +00:00
assar 26b4c53bde re-generated 2000-07-06 01:51:37 +00:00
assar cac15b82a8 add code for handling find the correct dlpi device on HP-UX 11.0
From: Guy Harris <gharris@flashcom.net>
2000-07-06 01:50:36 +00:00
assar be5b659ebf use snprintf instead of sprintf. From Juergen Schoenwaelder
<schoenw@ibr.cs.tu-bs.de>
2000-07-04 12:24:01 +00:00
itojun acc7a22687 re-correct fallback strlcpy(). do not choke on z == 0. 2000-07-04 00:22:03 +00:00
itojun 8cb4bb315b correct fallback strlcpy() macro. 2000-07-04 00:10:47 +00:00
assar ca4ad890a3 re-generated 2000-07-01 03:35:52 +00:00
assar 7b517010e0 remove non-STDC code and malloc.h 2000-07-01 03:35:07 +00:00
assar ae9e9d40b5 remove non-STDC code 2000-07-01 03:33:48 +00:00
assar 95cd5942c1 remove non-stdc code
remove unused variable warning
2000-07-01 03:32:50 +00:00
assar 1cf3c4fbc9 remove setting of umask
remove check for malloc.h: not used any longer
2000-07-01 03:31:45 +00:00
itojun 026d4bfb5c correct ethertype_ipv6 again. from <risso@polito.it> 2000-06-29 15:44:55 +00:00
itojun 20600c88c2 correct ethertype_ipv6. from <risso@polito.it> 2000-06-29 15:38:57 +00:00
assar 43d686800c add bpf_dump.c (moved here from tcpdump) 2000-06-26 10:55:16 +00:00
assar 3e80c2e1e6 add pcap_open_dead 2000-06-26 08:14:48 +00:00
assar 301b568422 remove some empty lines 2000-06-26 05:12:11 +00:00
assar 2dffac5060 handle no link-layer
From Darren Reed <darrenr@reed.wattle.id.au>
2000-06-26 05:10:40 +00:00
assar cae5972e6d make it compile under solaris and hp-ux
(bpf_filter): clarify comment
From Darren Reed <darrenr@reed.wattle.id.au>
2000-06-26 05:08:35 +00:00
assar d514a1aa6f (pcap_open_dead): add function for just creating a pcap_t that be
later used when calling other functions.
From Darren Reed <darrenr@reed.wattle.id.au>
2000-06-26 04:58:04 +00:00
assar 5ea9c97fb8 (pcap_open_dead, bpf_validate, bpf_dump): add 2000-06-26 04:57:11 +00:00
assar 44b4d1845b handle both KERNEL and _KERNEL.
add prototypes for functions.
From Darren Reed <darrenr@reed.wattle.id.au>
2000-06-26 04:56:28 +00:00
assar fe8ad9b324 do not check for sys/ioccom.h and net/if_arp.h they are not being used 2000-06-26 04:20:36 +00:00
assar 85ed1466a8 reomve interface.h, it's not used in libpcap 2000-06-26 04:17:05 +00:00
assar 4d1337a4f8 (CSRC): add bpf_dump.c 2000-06-26 04:16:04 +00:00
assar b846c9d16f remove extra prototype (now in interface.h) 2000-06-18 11:12:59 +00:00