Commit Graph

41 Commits

Author SHA1 Message Date
risso
3d932490b8 Added support for Win32, based on WinPcap. 2002-08-01 08:52:55 +00:00
guy
8df5006c28 Get rid of a null-pointer dereference when dissecting DNS requests with
a query count of 0 (no, such a request makes no sense, but that's what
tcpdump thought it saw in one DNS-over-TCP capture).
2001-10-19 09:00:48 +00:00
fenner
c672f00276 Eliminate some unused parameters.
Use const more.
Use EXTRACT_* macros more.
Use TCHECK* more.
Use tok2str() to replace some home-grown workalikes.
smb:
 - Get rid of private types, use tcpdump-defined types
 - Rename fdata and fdata1 to smb_fdata and smb_fdata1 to avoid conflict
   with IRIX library function.
2001-09-17 21:57:50 +00:00
guy
e4b93879cf Move all the "undefine so that the compiler doesn't whine about
redefinitions" stuff from files that include "nameser.h" to "nameser.h"
itself (we used to include <arpa/nameser.h>, over which we had no
control so we couldn't do that, but we now have our own "nameser.h").
Add T_OPT to the list of things we undefine, and undefine T_UNSPEC iff
T_UNSPEC is defined, not iff NOERROR is defined.

Replace the include of <arpa/nameser.h> in "print-rx.c" with an include
of "nameser.h", and "#if 0" it out pending a determination of whether
it's necessary (why would AFS's RX care about the internals of DNS
packets?) or not.
2001-06-26 06:19:03 +00:00
guy
46de5c986c Audit DNS printer for buffer overflows. Use TTEST2() in tests, and make
some additional tests (some of which might, in theory, be unnecessary,
but...).  Check for null pointers *before* checking whether there's
enough data at the pointer in question.
2001-02-23 08:55:21 +00:00
guy
998f4f88c9 Add an additional check for a truncated packet, as per a patch from Jim
Hutchins <jim@ca.sandia.gov>.
2001-02-21 08:52:30 +00:00
itojun
a7e2c51dfd slightly better TSIG decoding. 2001-02-20 07:22:17 +00:00
itojun
e8bcb0d14e add TKEY, TSIG and IXFR 2001-02-20 06:31:34 +00:00
itojun
2ff2c4c9a7 print dynamic update a little bit better 2001-02-20 06:22:57 +00:00
itojun
de0e71c99b do not SEGV if there's no query section 2001-02-20 06:03:42 +00:00
itojun
0e44b855f2 fix query section decoding 2001-02-03 05:04:33 +00:00
itojun
d15d3f3a1e full support of lwres dissector 2001-01-29 20:04:00 +00:00
itojun
000a90c61a remove extra space after type name 2001-01-28 07:56:21 +00:00
itojun
c981dfc94b move T_xx and C_xx fallback definitions into nameser.h. 2001-01-28 07:47:56 +00:00
itojun
277c15d74a print truncated message in a more friendly manner. from jinmei@kame.net 2001-01-12 15:06:06 +00:00
guy
0947e63cde Remove some uninitialized variable complaints. 2001-01-02 23:24:51 +00:00
itojun
16ce7b4be2 avoid segfault (NULL pointer deref) 2001-01-01 04:22:56 +00:00
itojun
5d5b5e03ac fix bit string label decoding again. from jinmei@kame.net 2000-12-31 07:12:18 +00:00
itojun
f4bc38ab26 correct bit string label decoding. jinmei@kame.net 2000-12-30 15:47:58 +00:00
itojun
79ce1730d7 spacing 2000-12-30 09:07:40 +00:00
itojun
8ad280b397 parse EDNS0. 2000-12-30 09:06:21 +00:00
itojun
041e99f6c0 support DNAME and bit string label. more pedantic snapend validation.
{jinmei,itojun}@kame.net
2000-12-28 20:30:41 +00:00
itojun
6eeb04bfe0 fix A6 decoding. jinmei@kame.net 2000-12-27 12:23:27 +00:00
itojun
ce3c0b3c62 fix A6 decoding. 2000-12-20 05:09:56 +00:00
guy
1869f416f3 Remove some includes of <sys/socket.h>, and add includes of
<netinet/in.h> to declare "ntoh[sl]" and "hton[sl]".
2000-10-10 05:05:07 +00:00
guy
e11ed169b1 Get rid of some includes of <net/route.h>, and empty declarations of
"struct mbuf" and "struct rtentry" - they shouldn't be necessary (and
weren't on the platforms on which I tested, both with GCC and the native
compiler if it isn't GCC).
2000-10-06 04:23:10 +00:00
guy
5bad3420c9 Bitfield layout in memory is not specified by the ANSI C spec; don't use
C bitfields to specify the layout of a DNS request or response header,
use shifts and masks to extract the bitfields.
2000-10-03 09:13:25 +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
8b67f77134 Get rid of unneeded includes of <net/if.h>. 2000-09-28 06:42:55 +00:00
guy
37543fd5b1 Cast an string constant argument to "u_char *", to avoid warnings from
some compilers.
2000-09-24 07:43:26 +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
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
assar
af07258a7e do not rely on the system providing us everything we need in
<arpa/nameser.h> but include a nameser.h with all the required stuff.
From Guy Harris <gharris@flashcom.net>
2000-07-05 23:50:37 +00:00
assar
3cd171317f remove non-STDC code 2000-07-01 03:38:59 +00:00
itojun
95982b2395 parse authentication-related bits from BIND9.
may require recent arpa/nameser.h.
2000-04-27 03:44:05 +00:00
itojun
9489d35647 do not make infinite loop on fabricated DNS data compression pointers.
From: Guy Harris <gharris@flashcom.net>
http://www.tcpdump.org/lists/workers/1999/msg00607.html
2000-04-17 06:49:27 +00:00
fenner
b9ac23ce92 Switch to config.h instead of passing defines in DEFS. 1999-11-21 09:36:43 +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
mcr
f6fa6a40d4 patches to help build on Linux 2.2 1999-10-17 21:37:10 +00:00
mcr
f555c163f9 Initial revision 1999-10-07 23:47:09 +00:00