Commit Graph

3091 Commits

Author SHA1 Message Date
Guy Harris 56d199c7ff Clear the Info column before you start dissecting, just in case you
throw an exception.

Fix a comment to reflect that the "location", "info", and
"make-and-model" fields are optional (CUPS 1.0[.x] didn't put them into
its browse packets).

svn path=/trunk/; revision=3132
2001-03-15 07:03:13 +00:00
Guy Harris a9659200c1 Add a new AT_OSI address type.
In the CLNP dissector, set the source and destination network-layer and
"top-level" addresses; this will cause them to show up in the source and
destination columns of the summary display if you're showing the
network-layer or top-level address (although you'll probably have to
widen those columns significantly to see the entire address), and also
makes them available to subdissectors.

svn path=/trunk/; revision=3131
2001-03-15 06:41:13 +00:00
Guy Harris fceae9e370 Display the printer type/capability bits in the standard way we display
bitfields.

Rename "get_space()" to "skip_space()", to indicate what it does, and
have it return FALSE if the first non-blank character it found was a CR
or LF (meaning "end of packet").  If it returns FALSE, stop dissecting
the packet.

In "get_unquoted_string()", search not only for a space, but also for a
tab, CR, or LF; there is no guarantee that there will be any fields in
the packet past the URI (CUPS 1.0[.x] didn't put anything after the URI,
and that's what I'm running on my machine...).

svn path=/trunk/; revision=3130
2001-03-15 06:09:19 +00:00
Guy Harris 29f1d4b093 Don't attempt to modify the data pointed to by the result of
"tvb_get_ptr()".

Display a "(B)" flag for supported rates that are in the BSSBasicRate
Set.

svn path=/trunk/; revision=3129
2001-03-15 05:39:04 +00:00
Gilbert Ramirez 5664e5887f Make tvb_get_ptr() return 'const guint8*', and clean up all the
usages of tvb_get_ptr(). packet-ieee80211.c still has one bad usage,
in which it *does* modify the tvbuff's data.

svn path=/trunk/; revision=3128
2001-03-13 21:34:28 +00:00
Guy Harris d820905672 It's generally considered Bad Form to free something up if you've handed
it to somebody else to use; don't do that.

svn path=/trunk/; revision=3127
2001-03-13 21:25:48 +00:00
Guy Harris 088446bd37 Tvbuffification, and various enhancements, from Ronnie Sahlberg.
svn path=/trunk/; revision=3126
2001-03-13 17:36:50 +00:00
Guy Harris ed3b9031f6 Handle NetBSD Cisco HDLC as PPP, for now.
svn path=/trunk/; revision=3125
2001-03-11 02:51:05 +00:00
Guy Harris 3f31328941 CUPS browsing protocol support, from Charles Levert
<charles@comm.polymtl.ca>.

svn path=/trunk/; revision=3124
2001-03-11 02:08:32 +00:00
Guy Harris a251addb63 Obliging every capture file reader's "open()" routine to seek to the
beginning of the file before reading anything from the file is bogus -
do that in the loop that tries each of the open routines, instead.
(They may have to reset the seek pointer later if, for example, the
capture file begins with the first packet, and the "open()" routine
looks at that packet to try to guess whether the packet is in the file
format in question.)

Set "wth->data_offset" to 0 while you're at it, so capture file readers
don't have to do that, either.

svn path=/trunk/; revision=3123
2001-03-10 06:33:58 +00:00
Guy Harris 9b1133892b Close the random stream, not just the sequential stream, if we got an
error trying to open a file.

svn path=/trunk/; revision=3122
2001-03-09 07:11:38 +00:00
Guy Harris 561f935663 Include "etherpeek.h", which declares routines we define, not "snoop.h",
which declares routines we neither define nor use.

svn path=/trunk/; revision=3121
2001-03-09 06:34:59 +00:00
Guy Harris 64a43e1c0e Fixes to Lemon to get it to compile on platforms (such as some versions
of Tru64 UNIX) that define TRUE and FALSE.

Fixes to some Tru64 compiler warnings.

svn path=/trunk/; revision=3120
2001-03-09 04:35:25 +00:00
Gilbert Ramirez 682dc85b3a Add ability to create HTML documentation on Windows, if you have
perl and man2html. Don't call this makefile from the parent makefile
as not everyone will want to create documentation.
Add a couple variables to config.nmake to support this.

svn path=/trunk/; revision=3119
2001-03-09 03:43:58 +00:00
Guy Harris 9c2f1a5005 Fixes to some typos, from Thomas Gimpel.
svn path=/trunk/; revision=3118
2001-03-08 19:15:33 +00:00
Gilbert Ramirez 712548da3e In the code that handles finding a field after a user clicks on
a byte in the hex dump,

1. Fix an off-by-one error when finding the field. This only showed up
if the selected byte had no field of its own and was only designated
as part of the parent protocol (like the 00-padding at the beginning of
TCP options).

2. Fix an off-by-one error when clicking on a character in the second
half of the "text dump" portion of the hex dump. I forgot about the
extra space between the first 8 characters and the second 8 characters.

svn path=/trunk/; revision=3117
2001-03-07 19:33:24 +00:00
Gilbert Ramirez db4e6ae220 Actually *use* SSL_LIBS if found by configure.
From Henri Gomez.

svn path=/trunk/; revision=3116
2001-03-06 23:45:03 +00:00
Guy Harris bf1ebaea4f Use "proto_get_first_protocol()" and "proto_get_next_protocol()" to
enumerate the protocols, as that

	1) gives you the protocols in dictionary order;

	2) leaves out the non-protocol "text";

	3) doesn't even bother to show you non-protocols, so you don't
	   have to check for them.

svn path=/trunk/; revision=3115
2001-03-06 21:07:13 +00:00
Guy Harris 36a1ae190d Mention support for reading Etherpeek files.
svn path=/trunk/; revision=3114
2001-03-06 20:52:32 +00:00
Guy Harris 3e73883db0 Update the man page for the new display filter code.
svn path=/trunk/; revision=3113
2001-03-06 20:36:42 +00:00
Gilbert Ramirez 30eb87d558 Mention etherpeek support.
svn path=/trunk/; revision=3111
2001-03-06 18:41:29 +00:00
Gilbert Ramirez ba9ca69fe8 Update doco re: display filters.
Add config.h to dependencies for man pages so that correction VERSION
number is in the man page.

svn path=/trunk/; revision=3110
2001-03-06 18:38:47 +00:00
Gilbert Ramirez 697cd22723 Fix a decode problem with failed NFSv4 SETATTR operations.
From Mike Frisch.

svn path=/trunk/; revision=3109
2001-03-06 18:27:07 +00:00
Gilbert Ramirez 4b6b3da4e7 Add some win32-specific targets in .cvsignore's.
Replace 'nmake' with $(MAKE) /$(MAKEFLAGS), from Mike Frisch.

svn path=/trunk/; revision=3108
2001-03-06 13:08:13 +00:00
Gilbert Ramirez d21e83b98b Move version to 0.8.16.
Fix build for splitting build dir from src dir.
Note the use of updated GTK+ release for Win32 binaries.

svn path=/trunk/; revision=3107
2001-03-05 22:53:41 +00:00
Guy Harris 3941a1e3a4 Move the definition of IP_PROTO_IGRP to "packet-ip.h", and put an entry
for IGRP in the table in "ipproto.c".

Get rid of a duplicate entry for TCP in the same table, and also get rid
of the entry for IP_PROTO_IPV4 right after IP_PROTO_IPIP, as
IP_PROTO_IPIP and IP_PROTO_IPV4 are both 4.

svn path=/trunk/; revision=3106
2001-03-05 20:11:36 +00:00
Guy Harris 63887cb8c8 IP_PROTO_IPV4 and IP_PROTO_IPIP are both 4; there's no need to register
both of them as dissected by the IP dissector.

svn path=/trunk/; revision=3105
2001-03-05 19:59:01 +00:00
Gilbert Ramirez 3fbe8a6120 All the news, in 80 columns. :)
svn path=/trunk/; revision=3104
2001-03-05 17:52:20 +00:00
Guy Harris 703f49d14d Updates from Ed Warnicke.
svn path=/trunk/; revision=3103
2001-03-04 03:38:20 +00:00
Guy Harris 9078b773ca Update from Ed Warnicke.
svn path=/trunk/; revision=3102
2001-03-04 00:43:56 +00:00
Guy Harris 89b239da88 Fix a typo, and break some lines at 80 characters.
svn path=/trunk/; revision=3101
2001-03-03 00:56:46 +00:00
Guy Harris c4562297ab Add a few more items to ".cvsignore".
svn path=/trunk/; revision=3100
2001-03-03 00:47:31 +00:00
Guy Harris 1c71e3a0fa Do a bunch of semantic checks when "Accept" is clicked, so that we catch
at least some invalid filter expressions.

svn path=/trunk/; revision=3099
2001-03-03 00:45:14 +00:00
Guy Harris 1773080631 Fix some places where value-to-string routines were returning FALSE,
indicating an invalid string, but not reporting the error to the user.

svn path=/trunk/; revision=3098
2001-03-03 00:33:24 +00:00
Gilbert Ramirez 13a2d27349 Add changes through the end of January. I'll work on February and
what there is of March later.

svn path=/trunk/; revision=3097
2001-03-03 00:18:00 +00:00
Gilbert Ramirez 540f564993 Calculate the height and width of m_r_font globally, since various
routines need it.

When a user clicks on a hex digit or on the corresponding character
(the "text dump" portion) in the hex dump, find the field in the
proto_tree that the byte corresponds to, expand the GtkCTree so that
the field is viewable, select the field, and center it vertically.
LanAlyzer has this feature, and I've missed it in Ethereal.

svn path=/trunk/; revision=3096
2001-03-02 23:10:12 +00:00
Guy Harris 22e8d3d18f Update from Mike Frisch.
svn path=/trunk/; revision=3095
2001-03-02 21:54:02 +00:00
Gilbert Ramirez 8260a34fe5 create_main_window() does not need to be called by the capture child
process.

svn path=/trunk/; revision=3094
2001-03-02 17:44:07 +00:00
Gilbert Ramirez cf75b3f6a8 Get rid of unused method from ftypes structure.
svn path=/trunk/; revision=3093
2001-03-02 17:17:56 +00:00
Gilbert Ramirez b24dff17bd Enable slices of [i-j], where i is start offset and j is end offset,
inclusive. That is, [0-1] is a slice of 2 bytes.

svn path=/trunk/; revision=3092
2001-03-02 17:04:25 +00:00
Gilbert Ramirez c88e7b5a63 Add "Toggle All", "Enable All", and "Disable All" buttons to the
protocol GUI.

svn path=/trunk/; revision=3091
2001-03-01 21:34:09 +00:00
Gilbert Ramirez e9b0d49fb0 Don't let the color selection dialogue for TCP Streams
stretch itself due to a really wide notebook widget.

svn path=/trunk/; revision=3090
2001-03-01 20:49:50 +00:00
Gilbert Ramirez 187934cad4 Create proper display filter for FT_BOOLEAN when using "Match Selected".
svn path=/trunk/; revision=3089
2001-03-01 20:24:05 +00:00
Guy Harris 242e57f780 Tvbuffify the ICP dissector.
svn path=/trunk/; revision=3088
2001-02-28 21:26:58 +00:00
Guy Harris 1658a51f79 Add hidden fields for bad checksums to various IP-family protocols.
Initialize the "hf_" value for "icmp.checksum_bad" to -1, the way all
other "hf_" values are initialized, and declare it and "ip.checksum_bad"
to have base BASE_NONE, not 4.

svn path=/trunk/; revision=3087
2001-02-28 19:33:49 +00:00
Guy Harris 9815f80563 Tvbuffify the TACACS dissector (such as it is).
svn path=/trunk/; revision=3086
2001-02-28 10:28:55 +00:00
Guy Harris f8f8957c01 Tvbuffify the ISAKMP dissector.
Handle the payloads iteratively rather than recursively, so that the
code that knows how to iterate over payloads is confined to a small
number of places rather than being in every single payload dissector.

Pull the code to dissect the generic payload header into a single
routine, and do it in the code that iterates over payloads rather than
in the dissectors for each payload.

Clean up some other things.

svn path=/trunk/; revision=3085
2001-02-28 10:22:29 +00:00
Guy Harris d1a2f49102 Tvbuffiy the IPSec dissectors.
Pull the bulk of the AH dissection code into a common routine, used both
by "dissect_ah()" and "dissect_ah_old()".

"dissect_ah()" isn't used outside "packet-ipsec.c"; make it static.

svn path=/trunk/; revision=3084
2001-02-28 06:37:29 +00:00
Gilbert Ramirez b864c8d80d Move the location of cppmagic.h, since the lemon-flex include files
require it. It makes more sense to either put cppmagic with lemon, or
in yet another common directory. I'll just put it with lemon.

svn path=/trunk/; revision=3083
2001-02-27 20:34:09 +00:00
Guy Harris ed665a1b50 Rquota support, from Mike Frisch.
svn path=/trunk/; revision=3082
2001-02-27 19:40:58 +00:00