dect
/
libpcap
Archived
13
0
Fork 0
Commit Graph

14 Commits

Author SHA1 Message Date
Guy Harris a1a7640419 Don't define or use any of the SIZEOF_ values.
We don't need or want them on UN*X (for one thing, we do fat builds on
OS X, and SIZEOF_LONG doesn't have the same value in ILP32 and LP64),
and don't need them on Windows, either (long is 32 bits in both Win32
and Win64).
2010-04-04 13:48:11 -07:00
test 7adb5eda4b Added an #ifdef directive to allow compiling the WinPcap samples with VC2008. 2009-07-16 15:09:15 -07:00
Guy Harris 5fb89099c6 From Gisle Vanem:
* Added header-guard.

* Include IP6_misc.h unconditionally (why treat MingW specially?)
2009-02-14 14:31:47 -08:00
gianluca 854adf5232 Implemented pcap_hopen_offline(). This "internal" function allows us to
support pcap_fopen_offline() on windows platforms (where FILE* handles cannot
be passed on DLL boundaries).
2008-10-06 15:27:32 +00:00
gianluca 03c3f2e979 Added the definition of strdup as _strdup under VC6. 2007-09-27 17:59:45 +00:00
guy 42fe978417 Add RCS IDs. 2007-04-01 21:43:55 +00:00
risso a0f5f72985 Added a definition for SIZEOF_LONG_LONG for Cygnus compilation (win32). 2005-07-21 18:12:41 +00:00
risso 18c85291c8 Avoids a compiler warning in case _WINSOCKAPI_ was already defined (someone defined _WINSOCKAPI_ when including 'windows.h', in order * to prevent it from including 'winsock.h') 2003-09-25 15:59:42 +00:00
risso 6ca7c69b0b Modified the license at the beginning of the files created by the Politecno di Torino developers from the 4-clause BSD code to the modified BSD license 2003-05-15 14:30:29 +00:00
guy 7989614935 Give the file an SCCS and RCS ID. 2002-08-05 07:45:09 +00:00
risso 13d78b6be1 Sorry, didn't see the patch that brought pcap-stdinc.h to version 1.2. This patch forgot an #endif at the end of the file that prevented compilation under Windows. Everything should be OK now. 2002-08-02 09:35:08 +00:00
risso 816ed4a225 Strangely, the file seems to be truncated after its commit on cvs.tcpdump.org. This update should fix the problem. 2002-08-02 09:07: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