summaryrefslogtreecommitdiff
path: root/missing
Commit message (Collapse)AuthorAgeFilesLines
* Get rid of unnecessary configure script tests and missing/XXX.h headers.Guy Harris2011-02-013-121/+0
| | | | | | | | This also fixes configure-script problems on OSes that have IPv6 support but don't have <netinet6/in6.h> - no standard I could find requires that header for IPv6 support (the Single UNIX Specification speaks of <netinet/in.h> for both IPv4 and IPv6, and RFCs 2292 and 3542 don't mention <netinet6/in6.h>, just <netinet/in.h> and <netinet6/ip6.h>).
* Our bittypes.h is needed only on Windows. Move it to win32/Include.Guy Harris2010-04-041-117/+0
|
* Nothing in missing/getaddrinfo.c is used in tcpdump, and it's a pain toGuy Harris2009-07-082-1118/+0
| | | | make it build on Tru64 UNIX, so get rid of it.
* Cast argument to isdigit to unsigned char, so if the characters 8th bitGuy Harris2009-07-021-1/+1
| | | | is set, it doesn't get treated as a negative number.
* From Gisle Vanem:guy2005-02-091-4/+119
| | | | | | | | | | | 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.
* "_int64" is signed. "unsigned _int64" is unsigned.guy2004-09-191-1/+1
|
* It's "%I64[doux]", not "%i64[doux]", to print 64-bit integral data typesguy2004-06-201-4/+4
| | | | with Windows printf.
* Second stage of adding support for 64-bit integral data types - thisguy2004-04-171-0/+32
| | | | | | | | | | causes the configure script to attempt to define the PRI[doux]64 macros if they're not defined by including <inttypes.h>, and causes "missing/bittypes.h" to attempt to define them, if undefined, in a fashion that should, with any luck, work on MSVC++ and various flavors of GNU C on Windows. Fix the spelling of "Mac OS X".
* First stage of adding support for 64-bit integral data types - thisguy2004-04-171-0/+18
| | | | | | | causes "int64_t" and "u_int64_t" to be defined by the configure script, and causes "missing/bittypes.h" to attempt to define "u_int64_t" in a fashion that should, with any luck, work on MSVC++ and various flavors of GNU C on Windows.
* Print both the name and the description of a link-layer type (the nameguy2003-11-181-43/+66
| | | | | | | | isn't always very suggestive - for example, somebody might think "EN10MB" is always 10 MB/s, and might not know that "IEEE802" is Token Ring), using "pcap_datalink_val_to_description()". Supply our own "pcap_datalink_val_to_description()" if libpcap doesn't have it (even if it has "pcap_datalink_name_to_val()").
* Have the configure script arrange that the Makefile define _U_guy2003-11-1610-74/+38
| | | | | | | | | | appropriately, and that GNUmakefile and the MSVC++ project file define it apppriately, as we do with libpcap, rather than defining it in "interface.h". Undo the rcsid-shuffling and addition of extra #includes, as we no longer need to arrange that "interface.h" be included before using _U_ in an RCS ID or copyright.
* From Neil Spring:guy2003-11-1510-37/+77
| | | | | | | | | | | use "_U_" in the definitions of "rcsid[]", to eliminate complaints about those variables being unused; move the definitions after the include of "interface.h", or add an include of "interface.h", so that "_U_" is defined. Include "config.h" before including "tcpdump-stdinc.h" in "missing/datalinks.c".
* Digital UNIX 4.0's <net/bpf.h> doesn't define DLT_SLIP_BSDOS orguy2003-05-021-1/+5
| | | | | DLT_PPP_BSDOS - don't assume they're defined, check whether they're defined before using them.
* Fix up some compiler warnings.guy2003-03-251-5/+8
|
* Get rid of the include of <sys/cdefs.h>, as that's a BSDism, and put in aguy2003-03-031-5/+5
| | | | standard tcpdump RCS ID.
* From Gisle Vanem: make print-esp.c work with more (maybe all?) OpenSSLguy2003-03-021-0/+80
| | | | | versions, and changes to make it work on DOS/Windows with various compilers and C support libraries.
* NetBSD support for multiple data link types on an interface, from Davidguy2002-12-192-0/+211
| | | | | | | | | | | | | | | Young <dyoung@ojctech.com>, with some minor changes by Jason R. Thorpe <thorpej@netbsd.org>, and further changes by me to: use "-y" rather than "-D" to set the link type ("-D" was already taken); use libpcap APIs to map between data link type names and values; supply stub versions of missing-but-needed libpcap APIs. Update Jason Thorpe's e-mail address (Zembu is going away, if it hasn't done so already).
* Make the definitions of "strlcat()" and "strcpy()" prototypeguy2002-08-022-10/+4
| | | | definitions, to squelch warnings from some compilers.
* Added support for Win32, based on WinPcap.risso2002-08-015-24/+21
|
* __ss_len/family is now nonstandard. standards were clarified to useitojun2002-06-111-3/+3
| | | | ss_len/family.
* whitespaceitojun2002-06-1112-75/+75
|
* Patch from Pekka Savola <pekkas@netcore.fi> to get rid of "savestr()"guy2001-01-201-0/+57
| | | | | | | (which doesn't actually seem to be significantly more efficient than "strdup()", at least not to the extent that it makes any difference to "tcpdump"), modified to use the BSD "strdup()", rather than the old "savestr()", on platforms that lack "strdup()".
* "#if 0" out stuff for "asprintf()", "asnprintf()", "vasprintf()", andguy2001-01-121-2/+6
| | | | | | | "vasnprintf()", as we're not using any of them, and we're not declaring them in "interface.h" (keep them around for now in case we decide we need them; they may be useful if we ever want to "sprintf" a string and want the string to grow dynamically to hold what we're putting into it).
* As GCC "2.96" notes, "`short int' is promoted to `int' when passedguy2001-01-021-3/+3
| | | | | | | | | through `...'", and therefore "...you should pass `int' not `short int' to `va_arg'". GCC "2.96" apparently fails to compile code that passes "short int" to "va_arg()", and Red Hat Linux 7.0 uses GCC "2.96", so we fix this, as per Pekka Savola's note.
* Eliminate __P().fenner2000-10-244-77/+32
|
* repair 1-byte buffer overrunitojun2000-10-071-6/+6
|
* split checks for struct addrinfo and NI_xxx.itojun2000-01-212-4/+4
| | | | From: Juergen Schoenwaelder <schoenw@ibr.cs.tu-bs.de>
* need strl{cat,cpy} badly for buffer overflowitojun2000-01-192-0/+153
|
* bring in latest kame getaddrinfo (couple of bug fixes).itojun2000-01-192-41/+132
| | | | | | more portability checks for getaddrinfo. checked on: netbsd141, kame/netbsd141
* Include <sys/types.h> to allow compilation on Solaris.fenner2000-01-101-2/+3
|
* Unify rcsid[]'s.fenner2000-01-096-4/+36
|
* add snprintf implementationassar2000-01-071-0/+620
|
* always include addrinfo.h (some needed flags values might be defined there)assar1999-11-211-2/+0
|
* always include addrinfo.hassar1999-11-211-2/+0
|
* define values of flags if they are not already definedassar1999-11-211-15/+31
|
* HP-UX 10.20 build fix <http://www.sics.se/~assar/tcpdump_patches/13>itojun1999-10-303-2/+16
| | | | #ifdef h_errno, snprintf -> sprintf, arpa/inet.h for [hn]to[hn][sl]
* last resort functions for inet_{aton,pton,ntop}.itojun1999-10-304-3/+231
| | | | only works for IPv4-only build.
* - enable build outside of the treeitojun1999-10-301-0/+2
| | | | | | | - endian checks (use WORDS_BIGENDIAN) - fallback def for IPPROTO_{AH,ESP} - sa_len issues - do not use bittypes.h, respect AC_LBL_CHECK_TYPES
* fix complation on IPv4 host (tested with plain FreeBSD228).itojun1999-10-301-0/+2
|
* Bring in KAME IPv6 tcpdump. replaces esp/ah/isakmp decoder.itojun1999-10-309-0/+1642
Hope I did not break anything. Portability on IPv4-only node needs checking, I'll do this very soon. (sorry for rather jumbo commit) XXx what is _FAVOR_BSD?