| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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>).
|
| |
|
|
|
|
| |
make it build on Tru64 UNIX, so get rid of it.
|
|
|
|
| |
is set, it doesn't get treated as a negative number.
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
with Windows printf.
|
|
|
|
|
|
|
|
|
|
| |
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".
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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()").
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
| |
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".
|
|
|
|
|
| |
DLT_PPP_BSDOS - don't assume they're defined, check whether they're
defined before using them.
|
| |
|
|
|
|
| |
standard tcpdump RCS ID.
|
|
|
|
|
| |
versions, and changes to make it work on DOS/Windows with various
compilers and C support libraries.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
| |
definitions, to squelch warnings from some compilers.
|
| |
|
|
|
|
| |
ss_len/family.
|
| |
|
|
|
|
|
|
|
| |
(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()".
|
|
|
|
|
|
|
| |
"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).
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
|
|
|
| |
From: Juergen Schoenwaelder <schoenw@ibr.cs.tu-bs.de>
|
| |
|
|
|
|
|
|
| |
more portability checks for getaddrinfo.
checked on: netbsd141, kame/netbsd141
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
#ifdef h_errno, snprintf -> sprintf, arpa/inet.h for [hn]to[hn][sl]
|
|
|
|
| |
only works for IPv4-only build.
|
|
|
|
|
|
|
| |
- endian checks (use WORDS_BIGENDIAN)
- fallback def for IPPROTO_{AH,ESP}
- sa_len issues
- do not use bittypes.h, respect AC_LBL_CHECK_TYPES
|
| |
|
|
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?
|