risso
b2656a7aa7
Fixed a conditional typedef that caused wpcap.dll not to compile with VC.
2004-04-06 13:30:22 +00:00
guy
b7be31258d
Move "snprintf.c" to the "missing" directory, as that's where
...
"Makefile.in" expects it to be (tcpdump puts "snprintf.c" and the like
into a "missing" subdirectory).
2004-04-05 22:43:50 +00:00
mcr
febe5a1a4e
documentation for proposed pcap format
2004-04-05 20:26:58 +00:00
guy
6c9206b958
Small whitespace style cleanup.
2004-04-03 20:53:48 +00:00
guy
cec387867a
Add support for sending packets on HP-UX if DL_HP_RAWDLS (for "raw
...
mode") is defined.
2004-04-03 20:52:41 +00:00
guy
5b35985840
If we get EAGAIN, return 0, as we do with EAGAIN and EWOULDBLOCK on
...
other platforms, and as the man page says we do (in non-blocking mode,
we return 0 if no packets are available).
2004-04-03 02:04:13 +00:00
guy
14645789a6
Not all systems have "sa_family_t"; use "u_int8_t" instead.
2004-04-02 06:33:30 +00:00
guy
f20514f49f
From Rick Jones: the DL_HP_PPA_ACK_OBS #defines are gone in HP-UX 11.23;
...
check for DL_HP_PPA_REQ instead.
2004-04-02 06:18:22 +00:00
guy
229ab726f9
Update a comment to suggest how to detect the OS X broken BIOCSHDRCMPLT
...
at run time, so we automatically adapt to systems with Jeff Nathan's fix
or to future OS X releases if they fix the bug.
2004-03-31 01:03:00 +00:00
mcr
eb9ec105d1
update changes file
2004-03-30 14:42:50 +00:00
guy
0a56a3721a
Get rid of long-vs-int problem in a printf format (sometimes sizeof is
...
an int, sometime's it's a long).
2004-03-29 21:04:31 +00:00
mcr
f0f5fc44e4
changes for 0.8.2
2004-03-29 17:40:11 +00:00
fenner
3058de1dde
Regenerate.
2004-03-28 20:31:56 +00:00
fenner
9cb15b4863
Pass correct prereqs for <netinet/if_ether.h>
2004-03-28 20:31:07 +00:00
fenner
8177eec7d9
Handle the new OpenBSD pf format (DLT 117), which is now being used
...
by other systems as they adopt pf.
Don't bother trying to be backwards compatible with DLT 17.
2004-03-28 20:27:12 +00:00
guy
55a1578cbe
Get rid of an out-of-date comment.
...
Add a comment noting why we don't do BIOCSHDRCMPLT on OS X.
2004-03-24 19:52:46 +00:00
mcr
50c4867b89
work-in-progress pcap format 1.0.
2004-03-24 19:51:11 +00:00
mcr
78caf331be
patch from Gisle Vanem for Symantec/Raptor tcpdump.
2004-03-24 19:50:54 +00:00
guy
0efb0602ff
From Mark Pizzolato: do a BIOCSHDRCMPLT so that the link-layer header we
...
supply is sent without the source address being overwritten.
2004-03-24 07:00:41 +00:00
guy
5f9f6317d2
Fixes from Mark Pizzolato.
2004-03-24 06:49:16 +00:00
guy
2d2890dd37
Add support for sending packets; includes contributions from Mark
...
Pizzolato <List-tcpdump-workers@subscriptions.pizzolato.net>.
2004-03-23 19:18:04 +00:00
guy
3380fa10db
Fix cut-and-pasteos; thanks to Darren Reed for finding them.
2004-03-21 08:32:05 +00:00
guy
1bd06dd0d5
Add support for Apple's IP-over-IEEE 1394 encapsulation.
...
Fix a comment.
2004-03-17 19:03:28 +00:00
risso
fe6b7f8e33
Avoid a null pointer access in pcap_dump_open if fname is a read only file
2004-03-16 19:27:55 +00:00
guy
ce798150ac
Beef up some comments, and clean up some other comments.
2004-03-11 23:47:29 +00:00
guy
2f74e436ab
Put the LINKTYPE_ values in numerical order, to make it easier to make
...
sure that all values from 100 to the current maximum value are in use;
put in comments to indicate for what purpose the reserved ones are
reserved.
Note in the "don't just grab a value and use it yourself" comment why
you shouldn't use values below 100 or above the maximum value you see in
the file.
2004-03-11 23:40:54 +00:00
guy
bd53902d4a
Don't rely on SA_LEN to check whether it's passed a null pointer (it
...
might be supplied by the OS, and the OS might supply a version that
doesn't check); instead, check for null pointers before doing anything
with the address at all. This also means we don't supply a netmask if
the address is null; that makes sense, as a netmask makes no sense
without an address.
2004-03-11 23:04:24 +00:00
guy
9876992f2c
Add support for 99 as a linktype in a capture file.
2004-03-11 19:56:45 +00:00
guy
8842b61d2f
Add support for DLT_ value 99, as used by the Axent Raptor
...
firewall/Symantec Enterprise Firewall. Thanks, Axent/Symantec, for not
asking us for a DLT_ value and not telling us about the link-layer type.
2004-03-11 09:13:11 +00:00
guy
7dea26c4b6
Document "pcap_get_selectable_fd()" - and give some details on the stuff
...
you might have to do with that FD to work around the brokenness of
"select()"/"poll()" on most versions of most BSDs.
2004-02-28 02:51:26 +00:00
guy
f61f1bb9a6
From Shaun Clowes: work around brokenness in the 32-bit compatibility
...
layer for Linux on IA-64.
2004-02-27 08:03:05 +00:00
hannes
673ea44790
assign DLT_ and LINKTYPE_ 164 to Juniper Networks Inc.
2004-02-11 22:06:58 +00:00
guy
7d3d1094ec
AC_LIBOBJ takes the name of an object file without the extension (as the
...
extension is platform-dependent).
2004-02-09 06:28:19 +00:00
guy
333b8942de
We have to define DLT_DOCSIS ourselves, as we include <net/bpf.h> to get
...
the OS's ioctl definitions, rather than including our own "pcap-bpf.h".
2004-02-09 06:24:42 +00:00
guy
34379f5c0e
For now, support "link[N:M]" filtering, but nothing else, for
...
DLT_IEEE802_11_RADIO (rather than supporting nothing, which keeps most
capture programs from working at all, as they set an empty filter if no
filter was explicitly supplied).
2004-01-31 01:54:43 +00:00
guy
1c186556cd
From Jesper Peterson: fix a couple of endianness problems.
2004-01-30 02:23:53 +00:00
guy
7ac8a0a75b
DLT_IEEE802_11_RADIO is used for the BSD radio header; add a new
...
DLT_IEEE802_11_RADIO_AVS for future use with the AVS radio header.
Fix a comment.
Put in reserved LINKTYPE_USERn values corresponding to the reserved
DLT_USERn values.
2004-01-29 10:36:43 +00:00
guy
28d3e917c0
Add stuff from the FreeBSD gencode.c to a comment.
2004-01-29 10:25:19 +00:00
risso
3d28325423
Added a couple of folders to the include path of Windows VisualC project, in order to properly compile libpcap with Dag support
2004-01-28 14:08:33 +00:00
risso
cd98f8f525
Added support for Endace Dag cards under Windows
2004-01-28 14:06:20 +00:00
risso
d1a175cf76
Added the definition of MOD_MON, required by WinPcap to work properly with some applications
2004-01-27 09:44:14 +00:00
guy
3c677e1380
Update the date.
2004-01-26 02:11:06 +00:00
guy
5d2a9d1922
Regenerate with autoconf 2.57.
2004-01-14 03:01:25 +00:00
guy
c6925e0c52
Autoconf 2.5x won't let you modify LIBOBJS directly; use AC_LIBOBJ to
...
modify it.
AC_LIBOBJ isn't supported by pre-2.50 autoconf; require 2.50.
2004-01-14 03:00:36 +00:00
guy
1924b620dc
Don't use a static variable for the accumulated statistics, accumulate
...
the statistics in "handle->md.stat", so that the statistics are
maintained correctly if more than one pcap_t is in use.
2004-01-14 01:56:10 +00:00
guy
963cacf276
Put in support for raw "link[N:M]" filtering for DOCSIS.
2004-01-14 01:09:03 +00:00
guy
fab5c982f2
From Jesper Peterson:
...
- don't auto-detect HDLC DLT on serial links, use
"pcap_set_datalink()" to choose the link-layer header
- for ATM, allow selecting SUNATM rather than the default
RFC1483 with "pcap_set_datalink()"
- reformat and otherwise clean up the code.
2004-01-05 18:18:54 +00:00
hannes
f2101dbb5d
patch from Erik de Castro Lopo <erik.de.castro.lopo@sensorynetworks.com>:
...
In the Linux kernel the packet statistics are zeroed during each retrieval.
In contrast, on FreeBSD, the packet statistics are retrived using
ioctl(BIOCGSTATS):
The patch adds a static variable to pcap_stats_linux() which
holds a running total of the packet statistics so that the behaviour
of pcap_stats() on Linux matches the behaviour of FreeBSD.
2004-01-02 11:25:26 +00:00
itojun
1b3a318d83
typo
2003-12-24 09:14:21 +00:00
itojun
08ef9a54d2
some getaddrinfo(3) can return multiple address against SOCK_STREAM (like tcp
...
adn sctp). hardcode to tcp for now. suz@kame
2003-12-24 08:27:04 +00:00