Commit Graph

55 Commits

Author SHA1 Message Date
fenner
797b1e3bd6 Prototype bpf_dump if it's not in libpcap. 2001-05-17 18:33:00 +00:00
fenner
966a87ee4a Add sctp_print() 2001-05-09 01:26:32 +00:00
guy
3838a46155 ARCNet support, from NetBSD. 2001-04-17 08:39:17 +00:00
guy
576e24446e "interface.h" includes <sys/time.h>, so it doesn't have to include an
incomplete declaration of "struct timeval"; in fact, that incomplete
declaration causes the HP C compiler to print a warning, so we get rid
of it.

In addition, we include <pcap.h> rather than including an incomplete
declaration of "struct pcap_pkthdr", to avoid other HP C compiler
warnings.
2001-04-12 09:05:07 +00:00
guy
33fe8e7d3c PPTP support, from Motonori Shindo <mshindo@mshindo.net>. 2001-03-09 05:38:19 +00:00
itojun
4fcedd64bb BIND9 lwres dissector. 2001-01-29 09:18:46 +00:00
itojun
f12d9bbf4c do not put variable name in prototype, #define will bite you 2001-01-28 08:12:25 +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
0056894f4e Do some additional bounds checking when dissecting SMB packets. 2001-01-15 03:59:13 +00:00
guy
64e81f2917 Handle IPX socket 0x553, which is some kind of NetBIOS-over-IPX socket.
(We call it "nwlink-dgm" for now; Ethereal calls it a NWLink SMB
datagram.)

Don't throw every LLC frame with unknown SAPs at the NetBIOS-over-IPX
dissector; just throw the frames for IPX sockets 0x455 and 0x553 at it,
as those appear to be the sockets used (if there are any others, please
add them to the IPX dissector - putting it back in the LLC dissector
won't help, as all IPX frames, including LLC frames, should now be
handed to the IPX dissector).

Do better bounds checking in "ipx_netbios_print()" and
"netbeui_print()", i.e. don't go past the end of the captured data in
the packet when looking for the 0xFF S M B signature.
2001-01-15 03:23:58 +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
guy
71eb51233f Add support for a new link layer type DLT_LINUX_SLL, for use when doing
live captures with a "cooked" (SOCK_DGRAM) rather than a "raw"
(SOCK_RAW) PF_PACKET socket; it includes a bunch of the fields from the
"struct sockaddr_ll" you get in a "recvfrom()", including the Ethernet
protocol field.
2000-12-21 10:43:19 +00:00
guy
7c4458eb6a Making "extracted_ethertype" static to "print-ether.c" broke other
dissectors that expected calls to "llc_print()" to set it.  (Thanks and
a tip of the hat to Olaf Kirch <okir@caldera.de> for noticing this.)

Make "ether_encap_print()" and "llc_print()" take a pointer to an
extracted-Ethertype variable as an argument, have "llc_print()" pass it
to "ether_encap_print()", and have "ether_encap_print()" set what it
points to rather than setting a static "extracted_ethertype" variable.

Get rid of said static "extracted_ethertype" variable in favor of one
local to "ether_if_print()", just as other link-layer dissectors have
local "extracted_ethertype" variables.
2000-12-18 05:41:58 +00:00
guy
393ce0607f The control field of an LLC frame is 1 byte for a U frame and 2 bytes
for an S or I frame; have the LLC dissector pass the control field value
as an argument to the NetBEUI dissector, rather than having the NetBEUI
dissector extract the control field value itself, and have it pass a
pointer to the beginning of the LLC *payload* rather than to the control
field.

Keep the NetBEUI dissector from running past the end of the buffer.

Add support for the NetBEUI SESSION ALIVE frame.
2000-12-05 06:42:47 +00:00
itojun
8f002a3ccc do not try to compute tcp/udp checksum for fragmented datagram.
from: jinmei@kame.net
2000-11-17 19:08:14 +00:00
fenner
3986a9bb99 Move IGMP to its own file.
Add IGMPv3 support.

Contributed by: Wilbert de Graaf <wilbertdg@hetnet.nl>
2000-11-02 02:18:28 +00:00
guy
692590f38c The packets inside IPTalk are just LLAP packets, so call the routine to
print them "llap_print()" (as per NetBSD), not "iptalk_print()".
2000-10-30 06:22:14 +00:00
guy
d259580958 Patch from Daniel Hagerty <hag@ai.mit.edu>, submitted with NetBSD PR
#4141, to dissect raw Appletalk-atop-Ethernet packets correctly, i.e.
not as if they were IPTalk packets.  (A very similar patch was submitted
for Debian bug #67642.)
2000-10-30 05:41:30 +00:00
fenner
c09e6737ee Eliminate __P(). 2000-10-24 00:56:48 +00:00
guy
90a3f90f3e RADIUS support, from Alfredo Andres Omella (aandres@mfom.es). 2000-10-06 06:49:20 +00:00
guy
0e40e56ff0 "timed" dissector, from Ben Smithurst. 2000-10-06 05:35:36 +00:00
itojun
535dd007b3 some sprintf fixes, from kris@freebsd.org (patches@tcpdump.org #89)
pedant.
2000-10-05 04:10:00 +00:00
guy
674302314e BXXP support, from Richard Sharpe <sharpe@ns.aus.com>. 2000-09-30 03:35:55 +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
6bd49d02af Add support for NetBSD DLT_PPP_SERIAL (PPP in HDLC-like framing, as per
RFC 1662, or Cisco point-to-point with HDLC framing, as per seciont
4.3.1 of RFC 1547; there's always an address and control octet at the
beginning of these packets, but they're not necessarily 0xff 0x03),
which we map to PCAP_ENCAP_PPP_HDLC.
2000-09-18 05:11:43 +00:00
guy
277dc1f0ec Add a token-ring link-layer dissector, made by merging the FreeBSD and
NetBSD ones; use it for DLT_IEEE802, which in many OSes is used for
token ring.
2000-07-25 05:28:11 +00:00
assar
35795ae1ba check the ip protocol version on printing raw packets, from Love <lha@stacken.kth.se> 2000-07-11 01:22:38 +00:00
assar
6e2695e9e0 remove gnuc.h and __dead 2000-07-11 00:49:02 +00:00
assar
3cd171317f remove non-STDC code 2000-07-01 03:38:59 +00:00
assar
6c64855056 remove bpf_dump 2000-06-26 10:54:29 +00:00
assar
57ceb28fe2 (bpf_dump): add prototype 2000-06-18 11:12:27 +00:00
assar
954bc7f13e add IEEE8021.d printer contributed by Lennert Buytenhek <buytenh@gnu.org> 2000-06-10 20:57:55 +00:00
itojun
e44561cc48 avoid possible infinite loop in relts_print().
move safeputchar() and safeputs() into util.c for better code sharing.
some style.
2000-06-03 16:40:35 +00:00
assar
1128e7ac65 (uflag): add
From Francisco Matias Cuenca-Acuna <mcuenca@george.rutgers.edu>
2000-06-01 01:14:43 +00:00
assar
b41d5b1c87 (vrrp_print, cdp_print): add prototypes 2000-05-15 00:37:06 +00:00
itojun
6e67dba79f s/u_short/u_int16_t/ for KAME-origin source codes 2000-04-28 11:14:47 +00:00
itojun
12813bb889 add cisco NetFlow support from OpenBSD. 2000-04-27 10:05:30 +00:00
assar
c34e29eaa0 (__attribute__): define to nothing if not supported by cc/gcc 2000-04-01 12:10:21 +00:00
itojun
63ac2af9fd need strl{cat,cpy} badly for buffer overflow 2000-01-19 05:34:17 +00:00
itojun
42cb0cc43c remove any of references to "ahsecret" (which is never used to date) 2000-01-15 07:42:32 +00:00
assar
b477b4907a add prototypes for snprintf et al 2000-01-07 15:59:28 +00:00
itojun
2813c22cf1 add print-ascii.c and print-telnet.c from netbsd.
- add -X option for ascii printing.
- telnet command sequences (ff xx xx) will be dumped with -vvv -X.
1999-12-22 15:44:09 +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
89acb01238 Prototype lcp_print(); eliminate unused caplen variable
Remove extra argument to printf.
1999-12-15 07:55:42 +00:00
fenner
0190a52142 Add prototypes for SMB and L2TP stuff. 1999-12-15 06:58:49 +00:00
fenner
b0e32153fc Add prototype for print-pppoe.
Remove unused "caplen" arg from pppoe_print() to agree with how it's called
 in print-ether.c
1999-12-15 00:23:06 +00:00
mcr
dee93c3eab From: Juergen Schoenwaelder <schoenw@ibr.cs.tu-bs.de>
Here is a new version of the libsmi patch for tcpdump. It provides
	some bug fixes and some enhancements such as access checking and
	better range checking. The patch also fixed a few bugs in the
	print_snmp.c module of tcpdump itself (unrelated to the usage of
	libsmi).
1999-12-13 18:06:13 +00:00
fenner
814765d31c Enhanced PIMv1 support.
Cisco Auto-RP support.
1999-11-22 07:25:26 +00:00
assar
d4fbe25780 some new and updated prototypes 1999-11-21 03:43:23 +00:00
assar
5d19d3c0ac add Ken Hornstein's patches from /afs/transarc.com/public/afs-contrib/tools/tcpdump to add decoding of rx (the RPC-layer used in AFS3) and the AFS3 RPCs also 1999-11-17 05:45:57 +00:00