Commit Graph

1940 Commits

Author SHA1 Message Date
Gilbert Ramirez c74451becd Jochen Friedrich <jochen@nwe.de>
protocol type 0x0c in AIX iptrace is used for the IBM SP switch
devices. Encoding is RAW IP...

svn path=/trunk/; revision=1767
2000-03-30 21:41:11 +00:00
Guy Harris a02c9146d5 "add_rr_to_tree()" is exported from "packet-dns.c" for use by the NBNS
protocol, which is DNS-derived; hopefully, Microsoft won't shovel any
more stuff into NBNS (I suspect that they ultimately want to make DNS
replace it completely), so it won't pick up stuff such as OPT RRs.

As such, we don't need to export "add_opt_rr_to_tree()", so make it
static to "packet-dns.c".

svn path=/trunk/; revision=1766
2000-03-30 01:52:40 +00:00
Jun-ichiro itojun Hagino 72ebab08bf add dissector for OPT pseudo-RR, in RFC2671 section 4.
svn path=/trunk/; revision=1765
2000-03-30 01:33:10 +00:00
Guy Harris 7dbe2ffaf2 Get rid of the "Find Frame" and "Go To Frame" items under "Display"; we
put them under "Edit" a while ago.

svn path=/trunk/; revision=1764
2000-03-29 22:39:19 +00:00
Guy Harris a91805901f Use the "-o" flag, rather than using the "-t" flag and redirecting the
standard output, in the rules to get Flex to produce scanner code; that
way, if Flex fails to run for some reason, we don't leave around a
zero-length or otherwise incorrect "XXX-scanner.c" file that might
keep a subsequent make from thinking it has to generate that file.

svn path=/trunk/; revision=1763
2000-03-29 19:55:51 +00:00
Gilbert Ramirez ca71c851dd Add ID for Lucent, and sort lines.
svn path=/trunk/; revision=1762
2000-03-29 16:55:08 +00:00
Guy Harris 3a29d6e090 Fix from Michael Johnston to check the correct bit when testing the
broadcast flag in DHCP packets.

svn path=/trunk/; revision=1761
2000-03-29 09:29:16 +00:00
Guy Harris 72a70000db Updates from Doug Nazar.
svn path=/trunk/; revision=1760
2000-03-29 09:25:21 +00:00
Jun-ichiro itojun Hagino 01d2363d0e update RFC1966 (BGP route reflection) support.
From: Greg Hankins <gregh@twoguys.org>

svn path=/trunk/; revision=1759
2000-03-29 06:27:54 +00:00
Gilbert Ramirez c317b042a8 Add getopt.c (from GNU libc) for use on Win32.
Ethereal/win32 now supports command-line options.
Tethereal now compiles on win32, except for the fact that I haven't
put the Makefile.nmake changes in for that yet.

svn path=/trunk/; revision=1758
2000-03-28 20:20:11 +00:00
Guy Harris e386451345 Patches from Andreas Sikkema:
On Win32, always save a temporary capture file by copying -
	Win32 systems don't allow you to rename a file that is open, and
	we have the temporary file open.

	When saving by copying the raw bytes of a capture file, create
	the target file with "open()", using the O_BINARY flag, rather
	than with "creat()"; on Win32 systems, "creat()" apparently
	opens the file as a text file rather than a binary file.

svn path=/trunk/; revision=1757
2000-03-28 08:11:52 +00:00
Guy Harris 67d2ea7af0 Doug Nazar's LDAP dissector.
svn path=/trunk/; revision=1756
2000-03-28 07:12:36 +00:00
Guy Harris 3f6f2f4eaa Ralf Schneider's change to boost the maximum size of a line in the
"filters" file (we also make it a #define so you only have to change it
in one place).

svn path=/trunk/; revision=1755
2000-03-28 06:20:08 +00:00
Guy Harris df22c169ac Fix from Ralf Schneider to the IS Neighbor dissection.
svn path=/trunk/; revision=1754
2000-03-28 06:12:15 +00:00
Gilbert Ramirez 1b25952ad4 Change dissect_ppp() to accept offset.
Change GRE dissector to call dissect_ppp() instead of dissect_payload_ppp().

svn path=/trunk/; revision=1753
2000-03-27 17:53:20 +00:00
Guy Harris 1d640c1296 Add type tag values for the REAL and ENUMERATED types.
svn path=/trunk/; revision=1752
2000-03-27 08:51:05 +00:00
Guy Harris 0b5adee493 Note that we may want to add support for the constructed encoding of
octet strings, as well as the primitive encoding (if we ever run into a
protocol where the constructed encoding is allowed).

svn path=/trunk/; revision=1751
2000-03-27 08:26:23 +00:00
Richard Sharpe 73927243e7 Adding definitions of routines ... Will want to get rid of malloc and use
the glib equivalents ...

svn path=/trunk/; revision=1750
2000-03-26 07:59:47 +00:00
Richard Sharpe e987dcca02 Set the per frame data pointer to NULL when a new frame is read in.
svn path=/trunk/; revision=1749
2000-03-26 07:03:52 +00:00
Richard Sharpe 92646c4b3c First pass at per frame proto data. Keep each proto block as a GSList list.
Use glib as far as possible. Currently have data structures and routines
defined ... Next will write the routines ...

svn path=/trunk/; revision=1748
2000-03-26 06:57:41 +00:00
Guy Harris df1a7250cf Get rid of some unnecessary variables.
svn path=/trunk/; revision=1747
2000-03-23 10:49:33 +00:00
Guy Harris a7cc3d8a4f Don't use temporary buffers for strings; use the data in the packet
buffer directly.

Don't use "strlen()" to determine how much Telnet data there is; we have
the number of bytes of Telnet data in a variable, and using "strlen()"
makes it not correctly handle Telnet data with '\0' in it.

Correctly handle Telnet options we don't know about.

General cleanup.

svn path=/trunk/; revision=1746
2000-03-23 10:25:38 +00:00
Gilbert Ramirez adcb40405c Remove small memory leak when converting strings that represent
byte sequences in display filters to byte arrays. This was caused
by a duplicate g_strdup() in my code.

svn path=/trunk/; revision=1745
2000-03-23 05:43:57 +00:00
Guy Harris 0b8378e622 When dissecting an NFS file handle, show the raw bytes of the file
handle data (snoop does this, and it's somewhat convenient if you're
trying to see whether, say, an ACCESS call is acting on the file whose
file handle you got back from a previous MOUNT request).

Boost the maximum number of bytes worth of hex data shown by
"bytes_to_str()" from 10 to 16, so that we can show the file handle 16
bytes per line (as snoop does).

svn path=/trunk/; revision=1744
2000-03-23 00:38:11 +00:00
Guy Harris fbaa212634 Florian Lohoff's fixes to L2TP result and error code dissection.
svn path=/trunk/; revision=1743
2000-03-22 23:49:20 +00:00
Guy Harris 0df6b59a91 Make the previous checkin actually compile on big-endian machines.
svn path=/trunk/; revision=1742
2000-03-22 23:47:28 +00:00
Guy Harris 1c07cd9b89 Byte-swap the frame table on big-endian machines.
Free it as soon as we're at the end of the sequential pass through the
file; that way, if we keep the capture file open with Wiretap even after
that's done (as I may do as part of some stuff I'm working on), we
at least aren't hanging on to the frame table memory after that point.

svn path=/trunk/; revision=1741
2000-03-22 09:52:21 +00:00
Guy Harris 005588b8b9 In a Network Monitor capture file, get the starting offsets of frames
from the frame table - Network Monitor 2.x, at least, doesn't always
write frame N+1 right after frame N.

To do that, we need to mallocate a big array to hold the frame table,
and free it when we close the capture file; this requires that we have
capture-file-type-specific close routines as well as
capture-file-type-specific read routines - we let it the pointer to that
routine be null if it's not needed.  Given that, we might as well get
rid of the switch statement in "wtap_close()", in favor of using
capture-file-type-specific close routines, as per the comment before
that switch statement.

svn path=/trunk/; revision=1740
2000-03-22 07:06:59 +00:00
Guy Harris 8d47efa6f9 Some cleanup of the RADIUS AVP output (Tunnel Tagging Tag), and a bit of
Vendor-specific decoding (shows at least the Vendor), from Florian
Lohoff.

svn path=/trunk/; revision=1739
2000-03-21 19:20:41 +00:00
Guy Harris 9bd27d3471 Andreas Sikkema's patch to make the SMB dissector not blithely pass a
null "request_val->last_transact_command" to "col_add_fstr()".

svn path=/trunk/; revision=1738
2000-03-21 10:15:50 +00:00
Guy Harris f6b5d7b8b5 Paul Welchinski's changes to, on Win32 systems:
properly handle ASCII vs. Unicode in the list of interfaces;

	initialize Winsock before starting a capture, so that the code
	in the Win32 libpcap to get the IP address and netmask by
	translating the host name to an IP address works.

svn path=/trunk/; revision=1737
2000-03-21 06:52:13 +00:00
Guy Harris 6371e245c1 Create the tree entry for resource records in DNS replies, and add the
record type to the info column, before parsing the reply; add the text
for the entry, and any additional information for the info column, in
the code that handles the reply.

Don't use stuff from the resource record if you ran past the end of the
packet.

Fix some bit-scanning code.

svn path=/trunk/; revision=1736
2000-03-21 06:21:37 +00:00
Guy Harris 8efd8ae819 Add support for TXT and WKS records to the DNS dissector.
Add EIGRP and VINES to the list of protocols "ipprotostr()" knows about.

Get rid of the "proto_vals" table in "packet-ip.c" - it's not used, and
the two entries it had that weren't in the table in "ipproto.c" have
been moved there.

svn path=/trunk/; revision=1735
2000-03-21 05:15:12 +00:00
Guy Harris 8fdc3df252 Jochen Friedrich's fix to IPv6 fragment handling.
svn path=/trunk/; revision=1734
2000-03-21 04:15:14 +00:00
Gilbert Ramirez e29f2705bf Change dfilter_init() to check for empty-string abbreviations and for
duplicate abbreviations. All mods to packet-*.c files are fixes to remove
those cases.

svn path=/trunk/; revision=1733
2000-03-20 22:52:48 +00:00
Gilbert Ramirez a56b23acd8 Add fields tr.addr, fddi.addr, and isl.addr that act like eth.addr, matching
either *.src or *.dst

svn path=/trunk/; revision=1732
2000-03-20 22:22:45 +00:00
Gerald Combs 12011ce127 Added Novell option decoding patch from Fredrik Sorensson <fsn@volvo.se>.
svn path=/trunk/; revision=1731
2000-03-20 21:39:00 +00:00
Gilbert Ramirez 4a668c0a5a Added Jeff Foster's patch to add an eth.addr field.
svn path=/trunk/; revision=1730
2000-03-20 21:21:33 +00:00
Guy Harris 41b76f7209 Florian Lohoff's changes for RADIUS tunnel attributes and for the
Internet Draft for RADIUS tunnel attribute tagging.

svn path=/trunk/; revision=1729
2000-03-20 18:30:59 +00:00
Guy Harris a62224b08c In "add_packet_to_packet_list()", always use the "buf" argument to refer
to the raw packet data, don't use "cf->pd" - "cf->pd" doesn't contain
the packet data when the file is being read in, it only contains it when
we're re-reading packets.

svn path=/trunk/; revision=1728
2000-03-20 04:55:10 +00:00
Guy Harris 00dbb67cf2 Change the type of the "v120.control" protocol field from FT_STRING to
FT_UINT16; the xDLC code requires control fields to be FT_UINTn, as it
uses "proto_tree_add_uint_format()" to add that field to the protocol
tree.

Always pass TRUE as the "is_extended" argument to
"dissect_xdlc_control()" - the V.120 spec says "The data link control
sublayer provides the procedures and formats of fields for data link
layer peer-to-peer communication.  ...  For formats and the elements of
procedures, see Recommendation Q.922", and Q.922 seems to at least allow
for modulo 128 operation; it also speaks of SABME, as does V.120, and I
*think* the "extended" in "Set asynchronous balanced mode extended"
means "modulo 128".

Dissect the terminal adaptation sublayer header field after dissecting
the control field, so that the V.120 tree shows the data in sequential
order.

Calculates the length of the V.120 header based on the control field
type (using the "XDLC_CONTROL_LEN()" macro) and the length of the
terminal adaptation sublayer header ("dissect_v120_header()" now returns
the length of what it dissects).

Call "dissect_data()" on the V.120 payload, so you at least know how
much data there is, and can click on an item to see it highlighted.

svn path=/trunk/; revision=1727
2000-03-17 05:21:48 +00:00
Guy Harris 8a7bae9ab4 Put the EIGRP packet type into the INFO column in the packet list entry
for an EIGRP packet.

svn path=/trunk/; revision=1726
2000-03-16 08:23:21 +00:00
Olivier Abad 4a1d3df963 Changed the type of the lapb.control protocol field from FT_STRING to
FT_UINT8.
The lapb dissector was broken by the changes to `proto_tree_add_uint_format'
in xdlc.c because of the type of this field.

svn path=/trunk/; revision=1725
2000-03-15 19:17:08 +00:00
Guy Harris eedea6fcd4 Give all the Ethereal APIs available to plugins their own function
pointers, and call the APIs by calling through the function pointers -
the old technique of using wrappers didn't work, as the underlying
function they all called no longer exists.

svn path=/trunk/; revision=1724
2000-03-15 19:09:52 +00:00
Guy Harris ff24cd97c0 Rename the local variable "pi" to "ti" in several places - "pi" is also
the name of the global variable containing packet information, and, on
platforms where dynamically-loaded code can't access global variables
and functions in the main program, we #define "pi" in plugins to be
"(*p_pi)", which causes problems even if a plugin with a local variable
named "pi" *isn't* accessing the global "pi".

svn path=/trunk/; revision=1723
2000-03-15 18:38:58 +00:00
Guy Harris 87d1359345 Give the entry box in the "Find Frame" and "Go To Frame" dialog boxes
the initial focus, so you can start typing immediately.

svn path=/trunk/; revision=1722
2000-03-15 08:54:24 +00:00
Guy Harris 3fa89a91c3 Treat the two integers after the request ID in a BulkPDU as
"non-repeaters" and "max-repetitions" rather than as "error status" and
"error index".

svn path=/trunk/; revision=1721
2000-03-15 07:12:55 +00:00
Guy Harris 777335fcc3 Dietmar Petras' fix to the handling of SNMPv2 TRAP PDUs.
Fix a comment.

svn path=/trunk/; revision=1720
2000-03-15 07:05:10 +00:00
Guy Harris 6fa0fd5fa8 Sigh. OpenBSD defines "HAVE_UNISTD_H" in the Makefile for zlib, so,
unlike FreeBSD and older versions of NetBSD, which give "gzseek()" and
"gztell()" signatures with "long" file-offset arguments, and thus, on
some versions, requires that "HAVE_UNISTD_H" *not* be defined before
including "zlib.h" if you want the functions declared with a signature
that matches what's actually in the library, it requires that it *be*
defined before including "zlib.h" if you want the functions declared
with a signature that matches what's actually in the library.

svn path=/trunk/; revision=1719
2000-03-14 18:27:44 +00:00
Guy Harris 71ff1d98f1 On Windows, when getting the user's home directory, don't look at the
HOME environment variable; instead, look at HOMEDRIVE and HOMEPATH.

svn path=/trunk/; revision=1718
2000-03-14 08:26:19 +00:00