Commit Graph

85 Commits

Author SHA1 Message Date
guy
03cfed6821 Make static the structure to which the test program checking what to use
for "inlines", so that we don't get tripped up by compilers complaining
that we're returning a pointer to an automatic variable.
2002-07-13 09:36:36 +00:00
guy
84dbd61af9 Fix up AC_LBL_C_INLINE to put all of the test code into the "inlines"
section - the other section gets stuck in the middle of "main()", and,
although GCC lets you define functions inside functions, other C
compilers don't.

Pick a name more likely to be unique to use as the iterator variable in
AC_LBL_C_INLINE.

Make AC_LBL_C_INLINE print "no" rather than "not supported" if inline
isn't supported, to match what AC_C_INLINE does.
2002-07-02 02:22:36 +00:00
guy
cb0c77819f Put variables in quotes when testing them in "test" commands, so that
the test doesn't get a syntax error if the variable isn't set or is set
to a null string.
2002-06-29 04:24:25 +00:00
guy
b1263c69c5 Some versions of the HP C compiler can handle inlines, but not if they
return a structure pointer.  Check whether the C compiler can handle
inline functions that return a structure pointer, not whether they can
handle inline functions that return an int, as at least some versions of
autoconf's AC_C_INLINE do.
2002-06-28 10:45:40 +00:00
guy
86cfeae8ab From Kazushi Sugyo <sugyo@pb.jp.nec.com>:
Here is a patch for draft-ietf-mobileip-ipv6-17.
	- print-mobility.c: Mobility header(MIPv6 defines a new IPv6 protocol)
	  printing
	- added Routing header type 2
	- ICMPv6 Home Agent Address Discovery and Mobile Prefix Sol., Adv.
	  message update
2002-06-27 08:21:39 +00:00
itojun
4c59f03755 regen from configure.in 1.150 2002-06-14 15:48:35 +00:00
itojun
24ec836293 __ss_len/family is now nonstandard. standards were clarified to use
ss_len/family.
2002-06-11 17:15:30 +00:00
guy
c70be1f7e1 Regenerate. 2002-04-25 04:26:45 +00:00
guy
6aa353579f From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
Here is a patch that addresses a few SSL-related issues noticed:

	1. The "/usr" directory is not the best choice to start looking
	   for SSL libraries when cross-compiling.  The patch adds
	   "/usr/${host_alias}" at the front.  Actually the test is quite
	   bogus anyway -- there might be no libcrypto.a library at all
	   (but e.g. libcrypto.so), so a better approach would be trying to
	   link against -lcrypto and seeing if that works.  First with no
	   additional options (it might be in the default compiler/linker's
	   search patch, like on sane systems), then with the -L<dir>
	option.

	2. The "cast.h" and "rc5.h" headers should include the
	   "openssl/" path as that is what is used throughout the code.
	   Right now they are simply not found by configure.

	3. The buggy CAST128 test should use a cache variable to permit
	   overriding by an educated user.

	I think I may actually rewrite the test as described in #1 above
	one day, but my time is quite limited and tcpdump is not my
	priority task, so it might not happen soon.  I won't mind if
	someone does it earlier.
2002-04-07 02:16:03 +00:00
guy
49385084a8 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
Due to missing quotes a shell complains about the "while"
	command missing ("bash: while: command not found").
2002-04-07 02:12:01 +00:00
guy
0c39e2bdaa From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
DECnet support currently assumes certain conditions instead of
	checking for them explicitly.  The following code checks if
	dnet_htoa() is available, possibly in libdnet and also verifies
	there is no declaration for the function in <netdnet/dnetdb.h>
	before it decides to provide a substitute.
2002-04-07 02:09:04 +00:00
guy
24ee0160a3 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>:
An incomplete getaddrinfo bug test may prevent from
	cross-compiling a working IPv6 support.  Caching the test's
	variable permits a user to override a result if he knows a given
	stack implementation is fine.
2002-04-07 02:01:36 +00:00
guy
7941e0e4b7 Enable the SMB dissector by default, now that Bill Fenner's added bounds
checking; however, leave in the "possibly buggy" warning and the option
to disable it.
2002-01-17 05:00:16 +00:00
guy
ea54ca7605 Replace "target_cpu", "target_os", and AC_CANONICAL_SYSTEM with
"host_cpu", "host_os", and AC_CANONICAL_HOST, as per Maciej W.
Rozycki's patch.
2001-12-10 08:41:15 +00:00
guy
2566537526 From Maciej W. Rozycki <macro@ds2.pg.gda.pl>: treat all MIPS and SPARC
platforms as always requiring strict alignment, rather than doing
configure-time testing with a sample program.
2001-11-25 02:26:34 +00:00
guy
c8a665cd1e If the user specified neither "--enable-smb" nor "--disable-smb", print
"no" after printing the "Checking whether to enable the possibly-buggy
SMB printer" message (as we default to not enabling it), rather than
printing nothing and having the next "Checking ..." message show up
after it on the same line.
2001-10-09 06:56:24 +00:00
fenner
5f5130ba6d Regenerate. 2001-10-08 21:25:50 +00:00
mcr
dc985bea39 fixed quoting of [] in m4 file 2001-10-08 17:31:44 +00:00
mcr
7bad90c6fd updated configure after aclocal.m4 patches for pcap.h 2001-10-08 17:24:30 +00:00
fenner
99486ff2ce Regenerate. 2001-10-08 16:44:41 +00:00
fenner
1c8df3dc06 Regenerate. 2001-10-08 16:17:51 +00:00
guy
5f2ed3537a Check in the updated configure script, from the following change to
aclocal.m4:

	revision 1.74
	date: 2001/09/14 08:11:33;  author: torsten;  state: Exp;  lines: +2 -2
	Added ia64 to the list of systems were unaligned memory accesses fail.
	In fact they don't fail but generate kernel warnings on Linux and
	probably performance suffers as well. See also http://bugs.debian.org/112154
2001-10-08 10:24:16 +00:00
guy
cab3c4cb47 As we're not using "bcmp()" or "bcopy()" in "addrtoname.c", we don't
need to include <strings.h> on some platforms in order to declare them.
2001-06-28 10:27:08 +00:00
fenner
c52b4ace0d Regenerate. 2001-06-28 00:24:31 +00:00
guy
cc67460fe4 If the platform on which tcpdump is being built has "strings.h", include
it in "addrtoname.c", so that "bcmp()" and "bcopy()" are defined.
2001-06-26 06:36:08 +00:00
itojun
8bdecae47b on netbsd mailing list, it was mentioned that the NetBSD byteorder guessing
code needs revisit.
2001-06-24 21:41:28 +00:00
itojun
57b2b8fb2f AC_C_BIGENDIAN is no longer used. 2001-06-24 21:39:08 +00:00
fenner
3774477c7b Regenerate. 2001-04-27 02:36:16 +00:00
itojun
d7e0b408cc correct openssl include pathname management. <openssl/foo.h> should be
used (see openssl docs).
2001-04-13 02:56:37 +00:00
guy
84018cc541 Patch from Pekka Savola <pekkas@netcore.fi> to get rid of "savestr()"
(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()".
2001-01-20 07:22:20 +00:00
guy
e0349b359b Sigh. Not all systems have <netinet/if_ether.h> - for example, at least
some libc5 Linux systems don't - so we have to check whether it exists,
and include it only if it does.
2001-01-17 18:27:36 +00:00
fenner
712dbb6a75 Regenerate. 2001-01-09 07:26:09 +00:00
guy
2b0c9995e4 Patch from Pekka Savola <pekkas@netcore.fi> to keep from dragging in our
version of "snprintf()" unless the platform on which we're running lacks
"snprintf()" or "vsnprintf()" - if it lacks one of the "asprintf" family
of routines, we don't drag it in, as we don't use those routines.
2001-01-02 22:47:04 +00:00
fenner
97fdf34d3f Regenerate. 2000-12-09 19:09:55 +00:00
fenner
bea1ede3b3 Eliminate __P(). 2000-10-24 01:07:28 +00:00
guy
e1b8a9344c We should no longer need to use our own versions of system header files
when compiling on Linux, as we extracted from those copies the
definitions and declarations we need in order to dissect packets, and
put them into our own header files in the regular source directory.

We should also no longer need to define __STDC__ as 2 on Digital UNIX,
as we're no longer including the native OS's <netinet/ip.h> to get the
layout of an IP packet declared, we're using our own "ip.h" header file
for that.
2000-10-21 05:00:18 +00:00
guy
b72953a314 As we no longer use the system's "slip.h" header file, there's no need
to check for it.
2000-10-09 01:58:53 +00:00
itojun
f4f269aecb regen 2000-10-07 05:59:49 +00:00
itojun
8f5ebe04d0 regen 2000-10-07 05:49:00 +00:00
guy
b67cb8951c We no longer include <netinet/ip.h>, so we don't need to work around
Digital UNIX using "ip_vhl" rather than "ip_v" and "ip_hl" bitfields if
__STDC__ is defined (we have our own "ip.h", and we don't use bitfields
in it).

Get rid of HAVE_INET_ATON, HAVE_INET_NTOP, and HAVE_INET_PTON - we don't
use them; instead, we supply our own versions of "inet_aton()",
"inet_ntop()", and "inet_pton()".  (Defining them in "configure.in"
caused complaints from "autoreconf".)

Check for the "rc5.h" header, as we *do* use HAVE_RC5_H.
2000-10-06 04:19:21 +00:00
itojun
864dbc54ee regen 2000-10-03 03:00:08 +00:00
itojun
879ed4b76e regen 2000-09-29 20:38:54 +00:00
guy
e894092542 Add definitions of Ethernet types from
"linux-includes/netinet/if_ether.h" to "ethertype.h".

Move other stuff used by dissectors from <netinet/if_ether.h> to
"ether.h", along the lines of "fddi.h" and "token.h".

Move ARP declarations from BSD include files to "print-arp.c".

Remove from dissectors includes of <netinet/if_ether.h>, and add
includes of "ethertype.h" and/or "ether.h" as necessary.

Get rid of configuration options that test declarations now made in
"ether.h" or "print-arp.c", as those declarations are now under our
control, not the OS's control.
2000-09-23 08:03:27 +00:00
guy
9c1c90781a The current "config.guess" may give different Alpha processors different
names, e.g. "alphaev56", rather than just "alpha", so, in
"AC_LBL_UNALIGNED_ACCESS", we should check for "alpha*", rather than
"alpha", in our test for platforms we *know* shouldn't do unaligned
accesses (Digital^H^H^H^H^H^H^HTru64 UNIX, by default, may just catch
the alignment trap, complain on the console, and then simulate the
unaligned access, but that's slow - and, in one test, didn't appear to
prevent all the faults from unaligned accesses).
2000-09-19 04:01:25 +00:00
assar
83d6304aa9 regen 2000-07-11 00:51:53 +00:00
assar
227103abf0 re-generated 2000-07-01 03:40:34 +00:00
assar
a56c83b48b re-generated 2000-06-10 14:21:14 +00:00
itojun
b4176d50a6 regen 2000-05-10 08:22:09 +00:00
itojun
df828a7f40 align output from ./configure --help. 2000-04-27 10:50:27 +00:00
itojun
bf3bf8efa8 add --without-crpyto to arg to configure, to skip partially incompatible/
old crypto libraries.
2000-04-27 09:16:08 +00:00