Commit Graph

11 Commits

Author SHA1 Message Date
guy
b340e34b6a Add bounds checking. 2004-03-24 00:30:19 +00:00
guy
bbc1cfa669 Have the configure script arrange that the Makefile define _U_
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.
2003-11-16 09:36:07 +00:00
guy
3824a6c041 From Neil Spring:
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".
2003-11-15 00:39:12 +00:00
guy
f875106903 The now-expired draft-perkins-aodv6-01 specified a different order for
fields in most of the AODV messages when used with V6; print those
correctly.

Get rid of some "v6" tags that weren't there before my previous checkin.
2003-09-13 01:34:42 +00:00
guy
485a2e2ed0 Use %[l]u, not %[l]d, to print unsigned quantities. 2003-09-12 22:16:53 +00:00
guy
93875de9dc As itojun said, u_int32_t can be long or int, depending on the platform. 2003-09-12 22:10:42 +00:00
guy
cd8e2f4ca0 Updates from Bruce Simpson:
Fix numerous bugs in my AODV submission, red faces all round,
	mainly due to misunderstanding of EXTRACT_STRING() macro
	arguments (because these are macros, type checking didn't
	happen).

	AODV HELLO extensions are now correctly printed.

	The code is closer to FreeBSD's style guidelines.

Don't use "u_char" and "u_long", use "u_int8_t" and "u_int32_t".
"u_long" is definitely wrong as it's 64 bits on some platforms; "u_char"
is safe, but the official tcpdump style uses "u_int8_t".

At least according to the (long-since-expired) draft-perkins-aodv6-01,
the V6 AODV messages have different message type values from the V4 ones
in draft-ietf-manet-aodv-13.  However, draft-ietf-manet-aodv-13 says
that the only differences are in the addresses; we support both.

Clean up the way we tell the AODV6 dissector that we're running atop
IPv6 a bit.

Use "udpipaddr_print()" if we're printing AODV packets as a result of
saying "anything that matches this filter is AODV", rather than doing it
ourselves under the assumption that it's running over IPv4.
2003-09-12 22:05:56 +00:00
guy
c6d3ff424a Squelch a compiler warning. 2003-09-06 22:16:56 +00:00
itojun
f614688dcd u_int32_t is long or int depending on platform 2003-08-13 02:23:07 +00:00
risso
0f29a7b583 Modified the included files in order to make print-aodv compile under Windows as well. 2003-08-07 11:31:42 +00:00
guy
073489bc82 From Bruce M. Simpson <bms@spc.org>: RFC 3561 AODV support. 2003-08-06 06:49:38 +00:00