Commit Graph

2062 Commits

Author SHA1 Message Date
Gilbert Ramirez d8944a80aa Add COPS dissector (with a few fixes for compiling on Win32).
I put the header file info in packet-cops.c since no one else uses it.

Fix the version number and plugin directory in config.h.win32.

svn path=/trunk/; revision=2044
2000-06-07 22:57:45 +00:00
Gilbert Ramirez 0de6781c3b Fix L2TP so that dissect_ppp() is called.
Convert L2TP dissector to use tvbuffs.

svn path=/trunk/; revision=2043
2000-06-07 11:37:08 +00:00
Gilbert Ramirez f185b77167 Move to version 0.8.9
svn path=/trunk/; revision=2042
2000-06-07 02:37:06 +00:00
Gilbert Ramirez d9f463b297 Fix list of deliverables (add wtap-int.h)
svn path=/trunk/; revision=2041
2000-06-06 16:21:26 +00:00
Gilbert Ramirez d4510c811c Add news for 0.8.9.
svn path=/trunk/; revision=2040
2000-06-05 18:59:12 +00:00
Gilbert Ramirez 8c27c3d37b Change dissect_ah() so that dissect_ip() doesn't have to make a
special case for it. dissect_ah() is registered with the "ip.proto"
handoff table, and dissect_ah() calls the next dissector using this
same "ip.proto" handoff table.

The old dissect_ah() is kept as dissect_ah_old() since dissect_ipv6()
still uses it. I need to convert some more functions before I can
get rid of dissect_ah_old().

svn path=/trunk/; revision=2039
2000-06-05 03:21:03 +00:00
Gilbert Ramirez 78cd3a9a26 Add gtk_set_locale() as recommended by
"Kaoru.Kusunoki" <kusunoki@mbox.kyoto-inet.or.jp>

svn path=/trunk/; revision=2038
2000-06-05 03:09:21 +00:00
Gilbert Ramirez 31d6051396 Show ICMP sequence number as two bytes, not as integer.
svn path=/trunk/; revision=2037
2000-06-02 16:43:46 +00:00
Gilbert Ramirez 7dbbfc48b0 Correctly handle Resv Tear Confirm message.
svn path=/trunk/; revision=2036
2000-06-02 13:24:12 +00:00
Gilbert Ramirez 0f7cf64763 Add a "Enable name resolution" check box to the File Open dialogue.
svn path=/trunk/; revision=2035
2000-06-02 03:35:39 +00:00
Gilbert Ramirez 5a5f56ffbf Fix plugin function table so that plugins work on Win32.
svn path=/trunk/; revision=2034
2000-05-31 18:32:15 +00:00
Gilbert Ramirez 5d76d96929 Get rid of the only uses of proto_tree_add_item_old() and
proto_tree_add_item_hidden_old(), and get rid of the functions as well.
Also remove a static function in proto.c that is no longer used
(it was used by proto_tree_add_item()).

svn path=/trunk/; revision=2033
2000-05-31 17:10:10 +00:00
Gilbert Ramirez c9371c3cd2 Correct the URL for Dante.
svn path=/trunk/; revision=2032
2000-05-31 16:49:42 +00:00
Guy Harris 283ce59938 Add routines for adding items to a protocol tree that take arguments of
a particular type, rather than taking a varargs list, along the lines of
the "proto_tree_add_XXX_format()" routines.

Replace most calls to "proto_tree_add_item()" and
"proto_tree_add_item_hidden()" with calls to those routines.

Rename "proto_tree_add_item()" and "proto_tree_add_item_hidden()" to
"proto_tree_add_item_old()" and "proto_tree_add_item_hidden_old()", and
add new "proto_tree_add_item()" and "proto_tree_add_item_hidden()"
routines that don't take the item to be added as an argument - instead,
they fetch the argument from the packet whose tvbuff was handed to them,
from the offset handed to them.

svn path=/trunk/; revision=2031
2000-05-31 05:09:07 +00:00
Gilbert Ramirez aa553f63ec Convert LAPD and V.120 dissector to use tvbuff. Convert xdlc dissector-helper,
too.

svn path=/trunk/; revision=2030
2000-05-31 03:58:56 +00:00
Guy Harris fa8b1d4e8b Define "proto_tree" and "proto_item" as "GNode" rather than "struct
GNode"; the latter, as Andreas Sikkema noted, gets warnings from some
C++ compilers, but the former doesn't.

svn path=/trunk/; revision=2029
2000-05-30 09:52:30 +00:00
Guy Harris 86e1e74fb9 Give the IPX dissector dissector hash tables for the IPX type and socket
number, and have the protocols encapsulated inside IPX register
themselves with that table.

svn path=/trunk/; revision=2028
2000-05-30 03:35:55 +00:00
Gilbert Ramirez 11b7f3727d #include netinet/in.h (for ntohs() macro), if available.
svn path=/trunk/; revision=2027
2000-05-30 03:09:11 +00:00
Olivier Abad f6a8eb6e0f 1 - Use "tvb_reported_length()" in the X.25 dissector.
2 - Consistantly display LCN in decimal (they used to be displayed in
    decimal in the packet list, and in hexadecimal in the tree view).

svn path=/trunk/; revision=2026
2000-05-29 22:35:11 +00:00
Guy Harris 019c5d9c3e Graham Bloice's Win32 Makefile changes to build in batch mode (gets rid
of multiple compile lines in the output of the build, speeds the build
up).

svn path=/trunk/; revision=2025
2000-05-29 20:42:55 +00:00
Guy Harris baaad29bf8 Graham Bloice's Win32 Makefile changes to build in batch mode (gets rid
of multiple compile lines in the output of the build, speeds the build
up).

svn path=/trunk/; revision=2024
2000-05-29 20:11:41 +00:00
Guy Harris 10ea13ed18 Add "tvb_reported_length()" to get the "reported length" of a tvbuff
(i.e., the amount of data that was in the packet, even if not all of it
was captured), for use when dissecting packets containing data that
fills the packet (we want the dissector to try to dissect all of it; if
it runs past the end of the captured data, we want it to throw an
exception so that we'll put a "Short Frame" note in the protocol tree).

This means we always want a tvbuff to have a real reported length value,
so we make it an unsigned integer, and don't bother checking it for -1,
as it should never be -1.

If the reported length passed in to "tvb_set_subset()" is -1, set the
reported length to the reported length of the tvbuff of which the new
tvbuff will be a subset minus the offset in that tvbuff of the subset,
so that "-1" means "what's left of the packet after we chop off the
header".  This is necessary in order to ensure that all tvbuffs have a
real reported length value.

Have "dissect_packet()" set the reported length of the top-level tvbuff
to the reported length of the frame, so that we start out with a tvbuff
with a real reported length value.

Have "tvb_offset_exists()" return FALSE if the offset is past the end of
the tvbuff.

If the offset passed to it is postitive, have "compute_offset_length()"
check for that it's not more than one byte past the end of the tvbuff -
if it's just past the end, we don't want the check to fail, as we don't
want attempts to create a subset tvbuff containing zero bytes to fail;
that would be done if a captured packet was all header and no payload,
and we'd want the dissector of the payload, not the dissector of the
header, to throw an exception, as the problem isn't with the protocol
for the header, it's with the protocol for the payload.

Convert the ATM dissector, the SSCOP dissector, the Q.2931 dissector,
and the Q.931 dissector to use tvbuffs.

Make the LAPD dissector set up a tvbuff for the Q.931 dissector (it's
not converted yet).

svn path=/trunk/; revision=2023
2000-05-29 08:57:42 +00:00
Guy Harris cb5b6c4719 Give the Appletalk DDP dissector a dissector hash table, and have the
protocols encapsulated inside DDP register themselves with that table.

Pull the EIGRP dissector into its own file, as suggested by Paul
Ionescu; it's not an IP-specific protocol.

svn path=/trunk/; revision=2022
2000-05-28 22:59:18 +00:00
Guy Harris 713245f76c In the FDDI and LLC dissectors, extract fields as we use them, so that
we don't get an exception (and thus a "Short Frame" or "Malformed
Frame" entry) until we get to a field that isn't in the frame.

svn path=/trunk/; revision=2021
2000-05-28 22:02:17 +00:00
Guy Harris a2b30d028c Use "tvb_get_ntoh24()" to extract the OUI from a SNAP header, rather
than extracting each byte with "tvb_get_guint8()" and then putting them
together.

svn path=/trunk/; revision=2020
2000-05-28 21:21:23 +00:00
Olivier Abad b977b382b3 Changed my mail address to oabad@cybercable.fr (dhis.net is too
unreliable).

svn path=/trunk/; revision=2019
2000-05-28 17:04:47 +00:00
Gilbert Ramirez 249b847a77 Properly register hf_x25_dbit and hf_ex25_dbit.
svn path=/trunk/; revision=2018
2000-05-28 06:26:10 +00:00
Guy Harris 0c8ef3ec33 Fix some typos in strings.
Remove some of the comments from the "README.developer" sample whose
purpose was tutorial rather than explanatory, or that don't apply.

svn path=/trunk/; revision=2017
2000-05-27 17:51:15 +00:00
Gilbert Ramirez 19c978c5cd Use tvb_length() instead of END_OF_FRAME.
svn path=/trunk/; revision=2016
2000-05-27 15:46:02 +00:00
Gilbert Ramirez ed1863187c Mention Stefan Raab as author of Mobile IP dissector.
svn path=/trunk/; revision=2015
2000-05-27 15:21:31 +00:00
Gilbert Ramirez 4c658cda1f Add Mobile IP.
svn path=/trunk/; revision=2014
2000-05-27 13:54:17 +00:00
Gilbert Ramirez 6598abd96f Add Mobile IP dissector. Converted to use tvbuff.
I'm going to make one more change to get rid of use of END_OF_FRAME, but
that will be later.

svn path=/trunk/; revision=2013
2000-05-27 13:53:26 +00:00
Guy Harris 41f7100539 Support for SCTP in the capture dialog, from Michael Tuexen.
svn path=/trunk/; revision=2012
2000-05-26 22:08:16 +00:00
Guy Harris 8efa4b8551 Initial SCTP support (showing it by name from "ipprotostr()") from
Michael Tuexen.

svn path=/trunk/; revision=2011
2000-05-26 21:54:59 +00:00
Guy Harris d6a6de8cb3 Incorporate the GTK+ 1.2.8 version of "gtkclist.c" (which includes all
the speedups ours included, and some others).

svn path=/trunk/; revision=2010
2000-05-26 07:47:47 +00:00
Guy Harris cfc9ec9f21 Don't duplicate the "gtk_radio_button_new_with_label()" and
"gtk_check_button_new_with_label()" code, just call those routines and
then fix up the label, as suggested by Dermot Musgrove on the gtk
mailing list.

svn path=/trunk/; revision=2009
2000-05-26 07:32:56 +00:00
Guy Harris 680886f825 Get rid of some now-unused variables.
svn path=/trunk/; revision=2008
2000-05-26 05:52:55 +00:00
Olivier Abad b7b0a32400 Convert X.25 dissector to use tvbuffs.
svn path=/trunk/; revision=2007
2000-05-25 21:34:58 +00:00
Olivier Abad 294cd03b27 replaced pinfo->current with pinfo->current_proto
svn path=/trunk/; revision=2006
2000-05-25 18:32:06 +00:00
Gilbert Ramirez f117a5827d Set pinfo->current_proto
svn path=/trunk/; revision=2005
2000-05-25 15:11:11 +00:00
Olivier Abad e34f27f22e Removed : col_add_fstr(pinfo->fd, COL_RES_DL_SRC, "0x%02X", byte0);
because it overrides the "DTE" or "DCE" value which was added before.

svn path=/trunk/; revision=2004
2000-05-25 14:57:34 +00:00
Gilbert Ramirez 1c2ca9c39c Convert dissect_clip() to use tvbuffs. Very trivial change.
svn path=/trunk/; revision=2003
2000-05-25 14:55:22 +00:00
Guy Harris 8af330852d Support for reading compressed Sniffer files, from Tim Farley, Joerg
Mayer, and yours truly.

svn path=/trunk/; revision=2002
2000-05-25 09:00:24 +00:00
Gilbert Ramirez 99efdc9fba Convert LAPB dissector to use tvbuffs, and to get pseudo_header from
packet_info struct.

svn path=/trunk/; revision=2001
2000-05-25 08:45:54 +00:00
Guy Harris f90bbf2a5a Assorted enhancements from Mark Burton.
svn path=/trunk/; revision=2000
2000-05-25 08:38:54 +00:00
Guy Harris f937a5d86f Assorted padding fixes from Mark Burton.
svn path=/trunk/; revision=1999
2000-05-25 08:32:13 +00:00
Gilbert Ramirez 40c5ed378f Convert dissect_ppp() and friends to use tvbuffs.
(the ip_tcp_options stuff is still non-tvbuff until I convert ip and tcp).

Add preliminary fix for Linux ISDN ippp devices (similar watch was posted
to ethereal-users, but did not use tvbuffs).

Change packet-raw.c to call capture_ppp()/dissect_ppp() in the case
where the frame starts with FF:03. We had been calling
capture_ip()/dissect_ip() at byte offset 4, but I think this is for
historical reasons of packet-raw.c and packet-ip.c existing before
packet-ppp.c.

svn path=/trunk/; revision=1998
2000-05-25 07:42:26 +00:00
Guy Harris 2a0cd38254 Display the fragment offset in decimal (as the IPv4 dissector does)
rather than hex.

svn path=/trunk/; revision=1997
2000-05-24 07:52:31 +00:00
Guy Harris d7b9c90614 Patch from Scott Howard to show the IP fragment offset as a byte offset
rather than an 8-byte offset.

svn path=/trunk/; revision=1996
2000-05-24 07:51:10 +00:00
Guy Harris a12762b431 Update a comment to reflect that only UCD SNMP 4.1.1 has
"snmp_set_full_objid()" as a macro rather than a function - 4.1.2 has it
as a function again.

svn path=/trunk/; revision=1995
2000-05-24 05:59:50 +00:00