dect
/
libpcap
Archived
13
0
Fork 0
Commit Graph

12 Commits

Author SHA1 Message Date
guy 30e89f192a Add _U_ to "rcsid[]" definitions, to eliminate "unused variable"
warnings from newer versions of GCC.
2003-11-15 23:23:57 +00:00
guy dc0242b509 Note that if this is ever compiled on a SuperH platform where LBL_ALIGN
is not defined by the configure or build procedure, e.g. building for
WinCE SuperH, this probably won't work, as it'll assume unaligned
accesses are OK.
2003-03-22 07:24:49 +00:00
guy 463507912d Include "config.h", so that LBL_ALIGN is defined as appropriate, and add
"__arm__" to the list of #defines we check for if LBL_ALIGN isn't
defined, so that on ARM we assume unaligned accesses are unsafe (which
they are, on at least some ARM processors).
2003-02-23 00:22:00 +00:00
guy aedf01b20f From Shaun <delius@progsoc.uts.edu.au>: on AIX, load the BPF driver and
create the BPF device nodes if necessary, and rename our "bpf.h" to
"pcap-bpf.h" and install it in "/usr/include", so that "pcap-bpf.c" gets
the system's bpf.h file if it includes <net/bpf.h> - on AIX, it needs to
get an AIX-specific structure from that header in order to support
loading the driver and creating the nodes.

Update "packaging/pcap.spec".
2003-02-11 01:46:05 +00:00
guy 5060f872d8 Oops - fix a typo. 2003-01-10 09:15:18 +00:00
guy d4e32467f8 Test both for "sparc" and "__sparc__" in the case where LBL_ALIGN isn't
defined - Debian bug 171210 says that "sparc" isn't defined by GCC,
which presumably means "with the compiler we're using on Debian" as
there are versions of GCC that *do* define "sparc" on SPARC.
2003-01-10 09:14:07 +00:00
guy 309e386870 Use <pcap-stdinc.h> only on Windows; on UNIX, selectively include, in
each source file, only the headers that file needs, and all the headers
it needs in order to compile on various platforms and not to get any
avoidable compiler warnings on those platforms (as well as any
incomplete structure definitions needed to avoid those warnings).

That also means that <pcap.h> doesn't include <pcap-stdinc.h> on UNIX;
we don't want it to include <pcap-stdinc.h>, at least on UNIX, as doing
so

	1) would mean we'd have to install that, so that programs can
	   build with libpcap

and

	2) would mean that programs including <pcap.h> would drag in a
	   bunch of header files that they don't need.

Put a newline at the end of "inet.c" - the Sun C compiler doesn't like
it if the last line doesn't end with a newline.
2002-08-02 03:44:19 +00:00
risso 6831542ec7 Added support for Win32, based on WinPcap. 2002-08-01 08:33:01 +00:00
itojun 5918c491c1 whitespace cleanup 2002-06-11 17:04:44 +00:00
fenner 72f94b6459 Eliminate __P(). 2000-10-23 19:32:20 +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
mcr b11ddf8a9b Initial revision 1999-10-07 23:46:40 +00:00