Commit Graph

120 Commits

Author SHA1 Message Date
fenner
f3e835f6be Updated patch from Jim Vaughan (especially fixing my stupid TCHECK() bugs) 2000-12-04 05:27:49 +00:00
fenner
e3e36b4b68 Add some truncation checks.
#include <netdb.h> for MAXHOSTNAMELEN on Solaris
Use EXTRACT_16BITS to extract 16-bit quantities
Print withdrawn routes if we think we can
Print must-be-zero attribute flags if they're not zero

Partly from: Jim Vaughn, http://www.tcpdump.org/lists/patches/107
2000-12-04 00:43:39 +00:00
fenner
7a58cc284c Resize 2 statically allocated hostname buffers.
This was in http://www.tcpdump.org/lists/patches/89 , and also
ftp://ftp.freebsd.org/pub/FreeBSD/CERT/patches/SA-00%3A61/tcpdump-4.x.patch.v1.1
2000-11-10 17:52:02 +00:00
guy
cf53dc05f1 Get rid of includes of <netinet/in_systm.h>, and replace "n_short",
"n_long", and "n_time", defined in that file, with other types.
2000-09-29 04:58:33 +00:00
guy
c922e6e0b8 "getname()" takes a "u_char *" as an argument; cast arguments to it to
"u_char *", rather than "char *", to avoid warnings on some compilers.
2000-09-24 07:48:19 +00:00
guy
536f512583 Add an "ip.h" header, to declare the IP stuff needed by dissectors, and
have dissectors include them rather than <netinet/ip.h> or
<netinet/ip_var.h>, if they actually need that stuff.

Put the declarations of the ICMP stuff directly into "print-icmp.c".

Remove all unnecessary includes of <netinet/ip*.h> files.

Copy the byte-order stuff from "nameser.h" into "tcp.h".
2000-09-23 08:54:24 +00:00
guy
7b50febe28 Add "tcp.h" and "udp.h" headers, to declare the TCP and UDP stuff needed
by dissectors, and have dissectors include them rather than
<netinet/udp.h>, <netinet/udp_var.h>, or <netinet/tcp.h>, if they
actually need that stuff.

Remove all unnecessary includes of <netinet/udp*.h> or <netinet/tcp*.h>
files.
2000-09-23 08:26:30 +00:00
itojun
c8592c4742 -Wall -Werror clean. fix uninitialized variables. 2000-04-28 11:34:12 +00:00
itojun
3f49d6297c fix bgp COMMUNITIES attribute dump. 2000-01-25 09:23:10 +00:00
itojun
dff10c7f70 s/sprintf/snprintf/.
there seem to be couple of unsafe use of strcat and strcpy - we should
bring in strl{cat,cpy}.
2000-01-17 06:24:23 +00:00
fenner
34ff77ff43 Unify rcsid[]'s. 2000-01-09 21:34:14 +00:00
itojun
c4521bbf47 * print-rt6.c: make IPv6 routing header printing work with new 2292bis
API.
* print-bgp.c: improve options printing.  ugly code exists for
  unaligned option parsing (need some fix).
* const poisoning in SMB decoder.
* make dump format back to original.  someone may want to add an
  option to do ascii printing, but keep the default behavior as is
  for scripts used in many places.
* -Wall -Werror clean checks.
1999-12-22 06:27:19 +00:00
fenner
dce1065699 Include string.h
Eliminate unused variables
1999-12-15 07:43:44 +00:00
itojun
4c517b1b66 remove extra "if" which prevents bgp packet decode (leftover from old code) 1999-12-13 09:27:41 +00:00
fenner
b9ac23ce92 Switch to config.h instead of passing defines in DEFS. 1999-11-21 09:36:43 +00:00
itojun
6cc3e07267 print "[|BGP]" for unaligned bgp data. make it look better on -v (newlines). 1999-11-11 02:28:03 +00:00
itojun
89b19e2445 make bgp dump a bit more readable (when with -v).
sync from KAME tcpdump.
1999-10-31 00:39:59 +00:00
itojun
70fbff8d34 HP-UX 10.20 build fix <http://www.sics.se/~assar/tcpdump_patches/13>
#ifdef h_errno, snprintf -> sprintf, arpa/inet.h for [hn]to[hn][sl]
1999-10-30 23:45:50 +00:00
itojun
fb47cfdaae fix complation on IPv4 host (tested with plain FreeBSD228). 1999-10-30 05:30:20 +00:00
itojun
c9d84d15c5 Bring in KAME IPv6 tcpdump. replaces esp/ah/isakmp decoder.
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?
1999-10-30 05:11:06 +00:00