summaryrefslogtreecommitdiff
path: root/tcpdump-stdinc.h
Commit message (Collapse)AuthorAgeFilesLines
* Mark various IPv4 and IPv6 headers as unaligned.Guy Harris2010-08-311-2/+35
| | | | | | | | | | | | | This prevents GCC on SPARC from generating code that assumes those structures are aligned naturally, which they are not guaranteed to be. Move some #defines from interface.h to tcpdump-stdinc.h to make them available to code that doesn't include interface.h. Move the declaration of nextproto6_cksum() to ip6.h, so that only files that use it get it declared, and thus so that you don't need to define "struct ip6_hdr" in everything that includes interface.h. Don't include ip6.h in tcpdump-stdinc.h.
* Added the definition of NBBY for Visual Studio compilers.test22010-03-091-0/+4
|
* added "make check"mcr2007-11-241-6/+6
| | | | | | | when optimization is not on, glibc6 doesn't define ntohs(), and our attempt to optimize it for x86 doesn't work --- the functions need to be static, not extern. added decryption of IKE v2 payloads, when keys are provided by -E.
* add TRUE, FALSE defshannes2006-05-191-1/+9
|
* Removed the inclusion of IP6_misc.h. It's no more needed and it upsets ↵risso2005-07-091-2/+2
| | | | cygnus gcc.
* Added again some #define's for MSVC compilers that were wrongly removed.risso2005-05-041-1/+15
|
* From Alexander Dupuy: don't define our own [hn]to[nh][sl] macros ifguy2005-04-271-2/+2
| | | | | | __ntohl is defined; __ntohl is defined in some OSes as a special asm function that does the same sort of fast byte swapping, and that gets in the way of our so defining it.
* From Albert Chin:guy2005-04-201-2/+9
| | | | | | | | | | | | | | 1. On AIX, AC_LBL_C_INLINE detected the compiler supported the inline keyword which is wrong. AC_C_INLINE from autoconf-2.59 worked. 2. AC_CHECK_TYPE from autoconf-2.5x is no longer broken. Replaced AC_LBL_CHECK_TYPE with it, mainly to use <sys/bitypes.h> for Tru64 UNIX where some of the u_int#_t types are defined. 3. Tru64 UNIX 4.0D doesn't support %llx; however, it does support %lx. 4. Added <stdint.h> to interface.h for int#_t types on Tru64 UNIX 4.0D (required for missing/snprintf.c). 5. Reworked includes in tcpdump-stdinc.h for int#_t types.
* Some UN*Xes need INET_ADDRSTRLEN defined as well, for "inet_ntop_v4()".guy2005-03-271-5/+5
|
* Add declarations of __ntohl() and __ntohs() to squelch compiler warningsguy2005-03-271-1/+4
| | | | on Solaris 7 x86 with GCC 2.8.1.
* From Gisle Vanem:guy2005-02-091-18/+44
| | | | | | | | | | | the _errno() stuff isn't needed for current versions of MinGW; get rid of some definitions not needed with MSVC++ and other non-MinGW32/non-Watcom compilers; add IPv6 capability to inet_pton.c, courtesy of Paul Vixie; add inline ntoh{ls}/hton{ls} functions for GCC/i386.
* Assume that u_int64_t is defined, along with PRI[dux]64, as per theguy2004-04-171-1/+4
| | | | | | | recent configure script changes. On UN*X, include <inttypes.h> in "tcpdump-stdinc.h" if it defines the PRI[duxo]64 macros.
* Give it a proper RCS ID.guy2003-11-161-0/+2
|
* Add a new "ipproto.h" header file, with definitions of IP protocol typeguy2003-06-071-1/+0
| | | | | | | values. Use that rather than private definitions in various files. Add "gmpls.h" to the list of files in FILES, and add it and "ipfc.h" to the list of files in INSTALL.
* Modified the license at the beginning of the files created by the Politecno ↵risso2003-05-151-17/+26
| | | | di Torino developers from the 4-clause BSD code to the modified BSD license
* From Hank Leininger <tcpdump-workers@progressive-comp.com>: fix a typo.guy2003-03-221-2/+2
|
* From Gisle Vanem: make print-esp.c work with more (maybe all?) OpenSSLguy2003-03-021-2/+27
| | | | | versions, and changes to make it work on DOS/Windows with various compilers and C support libraries.
* Give the file an SCCS and RCS ID.guy2002-08-051-0/+2
|
* Only include in "tcpdump-stdinc.h" the headers that are actually neededguy2002-08-021-12/+16
| | | | | | | | | by most files in tcpdump. Include <net/if.h> in "addrtoname.c", as it's needed there (but not needed in other files, so it doesn't belong in "tcpdump-stdinc.h". Put in explanatory comments in "tcpdump-stdinc.h".
* Added support for Win32, based on WinPcap.risso2002-08-011-0/+87