Commit Graph

2343 Commits

Author SHA1 Message Date
Gilbert Ramirez 4a3b77ba46 Move #include <time.h> into wtap-int.h instead of requiring it in
every C file. I noticed this because of a build break of csids.obj on
Win32.

svn path=/trunk/; revision=2378
2000-08-25 21:25:43 +00:00
Guy Harris 5429a55be3 Attach my name to the "GtkClist replacement" item; it's a work in
progress, but the beginnings of one exist (it's far from ready for prime
time, but it does read in capture files a lot quicker and consumes a
fair bit less memory).

Get rid of the item about a line-mode capture program - that's
Tethereal.

Get rid of the "Make lines in GTK Tree (proto_tree GUI) user-selectable"
item, as they're now user-selectable.

Put back the item about Kerberos V4 - we hae a V5 dissector, but no V4
dissector yet.

svn path=/trunk/; revision=2377
2000-08-25 20:50:31 +00:00
Laurent Deniel ca825e0ea5 Remove some items which are now available.
svn path=/trunk/; revision=2376
2000-08-25 19:43:28 +00:00
Gilbert Ramirez 3bdcd15cb4 Note GTK+ distribution version for 0.8.11 binary release.
I finally have working tools, so a 0.8.11 win32 binary release we be
available soon.

svn path=/trunk/; revision=2375
2000-08-25 19:21:24 +00:00
Laurent Deniel 9310d96221 - add protocol registration
- add some missing Vines IP header fields in protocol tree
- add protocol type as display filter
- miscellaneous code cleaning

svn path=/trunk/; revision=2374
2000-08-25 18:46:11 +00:00
Laurent Deniel 465895fcab Fix comment.
svn path=/trunk/; revision=2373
2000-08-25 13:05:32 +00:00
Laurent Deniel 250b9e7a99 Fix comment and add reference to RFC.
svn path=/trunk/; revision=2372
2000-08-25 13:00:05 +00:00
Laurent Deniel f5a09a3f31 Add protocol registration (pptp).
Add OLD_CHECK_DISPLAY_AS_DATA().

Add display filters.

Check the magic cookie to see if the decoding or frame is correct
(in most cases, we probably need TCP reassembly).

svn path=/trunk/; revision=2371
2000-08-25 12:30:30 +00:00
Guy Harris 9cc45a4a10 Include the control-field information in the Info column for LLC frames.
svn path=/trunk/; revision=2370
2000-08-25 06:31:25 +00:00
Guy Harris 5e52e98926 Redo the way we map between libpcap encapsulation type codes and Wiretap
encapsulation type codes - for those libpcap type codes whose numerical
value is interpreted differently by different versions of libpcap,
include <pcap.h> if you can and, if you can, use what it defines to
control which Wiretap code we map those type codes to.

Also, map the new libpcap type codes introduced by libpcap 0.5.

svn path=/trunk/; revision=2369
2000-08-25 06:25:21 +00:00
Guy Harris 49d075c4b3 Include bus errors and aborts, as well as segmentation violations, as
examples of errors that generate core dumps, and suggest that a stack
trace from the debugger could be useful for *all* failures that produce
core dumps.

Note that the core dump file may be named "ethereal.core", and note that
"tethereal" rather than "ethereal" should be used in file names if it's
Tethereal that blew up.

svn path=/trunk/; revision=2368
2000-08-24 23:33:09 +00:00
Guy Harris 2cbf5c4a15 Give the RFC number of the spec for the portmapper/rpcbind protocols.
svn path=/trunk/; revision=2367
2000-08-24 23:16:16 +00:00
Guy Harris 381eb6bf29 Add a comment giving the RFC numbers of specs for ONC RPC.
svn path=/trunk/; revision=2366
2000-08-24 23:09:37 +00:00
Guy Harris c0aac1e720 Name updates to stuff in GSS authentication for ONC RPC, from Dug Song.
svn path=/trunk/; revision=2365
2000-08-24 22:58:56 +00:00
Laurent Deniel 99421f72f4 Do not malloc a TCP fragment for a packet that does not contain data.
svn path=/trunk/; revision=2364
2000-08-24 21:05:16 +00:00
Laurent Deniel c691739727 Add some dlg_set_cancel().
Reduce a bit the button sizes for homogeneousness.

(still need some work on filter color selection, in progress ...)

svn path=/trunk/; revision=2363
2000-08-24 13:21:29 +00:00
Richard Sharpe 18a3495d64 Fixes to add state keeping and properly decode SMTP.
svn path=/trunk/; revision=2362
2000-08-24 11:32:09 +00:00
Guy Harris 781eb21d46 If we've thrown away saved state before a rescan of the frames in a
capture, clear the per-frame data pointers of all frames in the capture,
as those pointers now refer to data that's been freed.

Do that to all frames even if the user stops the rescan in the middle -
and clear the "visited" flag for all frames as well.

svn path=/trunk/; revision=2361
2000-08-24 09:16:39 +00:00
Guy Harris 5765a6e587 Use 0, rather that 0xffffffff, as the "no reply frame number known yet"
- frame numbers are 1-origin, so 0 can be used as an "exception" value.

In the protocol tree for a reply, don't say that the reply is to frame
N, just say that it's to a request starting in frame N - a frame can
contain more than one request, and a request may take more than one
frame.

svn path=/trunk/; revision=2360
2000-08-24 08:55:30 +00:00
Guy Harris 8d8d351d02 Actually, we do have to clear all the dissector information if we're
redissecting the packets due to some preference changing, as the
preference may affect what state information gets constructed as a
result of some particular frame being dissected.

We don't have to do it when filtering the packets, or colorizing them,
however.

svn path=/trunk/; revision=2359
2000-08-24 06:45:37 +00:00
Guy Harris 47d5cfab52 Instead of keeping in the information about an RPC call a count of the
number of replies seen, keep the frame number of the first request seen
for that call and the first reply seen for that call.  Use that to
determine whether a request or reply is a duplicate or not.

That means that we don't have to reset the table of RPC calls on a
rescan of the capture (which didn't even fix all the cases where we'd
have misreported the original call or reply as a duplicate due to having
seen it once on the initial pass through the file and once again when,
for example, the user clicked on the packet); doing so causes plenty of
other problems, so don't do that - and don't clear the "visited" flag on
frames on a rescan, either, as that's only done because we were clearing
out conversations and calling all protocols' "init" routines.

As a free bonus, this means that, for a reply, we know what frame the
request was in; put that information into the protocol tree for the
reply, snoop-style.

Make the table of RPC call information, and the routines that manipulate
it, static to "packet-rpc.c"; nobody outside "packet-rpc.c" uses them.

svn path=/trunk/; revision=2358
2000-08-24 06:19:53 +00:00
Guy Harris d93c1854b8 Don't assume that you get back from "asn1_octet_string_decode()" a
pointer to a null-terminated string; you get back a null pointer if the
octet string is zero-length, and even if it's not zero-length there's no
guarantee that the string is null-terminated.

svn path=/trunk/; revision=2357
2000-08-24 05:40:50 +00:00
Gilbert Ramirez 8e2feab49a Fix the appearance of the option menus in the GUI preference box.
It appears to be a buglet in GTK+; by explicitly calling gtk_widget_show()
on the menu item, it comes out with proper spacing. Previously I simply
used gtk_widget_show_all() on the topmost vbox, and while the option menu
menu-items showed, they came out with incorrect vertical spacing.

svn path=/trunk/; revision=2356
2000-08-24 03:16:47 +00:00
Gilbert Ramirez 5ad0b0f28c Fix and document the CLEANUP_* macros, allowing the programmer to register
cleanup functions for the cases in which an exception is thrown but not
caught in a region where cleanup needs to occur.

Use these macros in proto_tree_add_item, where we need to free the field_info*
in case an exception is thrown when accessing the tvbuff.

svn path=/trunk/; revision=2355
2000-08-24 02:55:36 +00:00
Laurent Deniel a33d2bfcd5 If the default build-in fonts are not found, use the "6x13" fonts
but change also the prefs.gui_font_name so that an unexisting font
will not be saved with the preferences.

svn path=/trunk/; revision=2354
2000-08-23 21:05:11 +00:00
Laurent Deniel a77af93938 Cosmetic changes.
Add a table so that the first 4 rows of the capture dialog
are correctly aligned.

Remove the unneeded hboxes.

svn path=/trunk/; revision=2353
2000-08-23 20:55:44 +00:00
Laurent Deniel c1c46097b3 Documents the "marked frame" related menu items and associated
features (e.g. GUI "Colors...").

svn path=/trunk/; revision=2352
2000-08-23 19:40:12 +00:00
Laurent Deniel bc547f5647 Missed one IPv4 TOS field display option is the manual.
(why some items are described at two locations ?, one for
menu and one for window ?)

svn path=/trunk/; revision=2351
2000-08-23 19:13:33 +00:00
Laurent Deniel 30c432f734 If you "save" your preferences without opening the color
selection dialog, the colors are saved with null values.
So do not call fetch_colors if the colors_changed boolean
is FALSE ...

svn path=/trunk/; revision=2350
2000-08-23 18:52:38 +00:00
Laurent Deniel fb3643b8d5 Remove the -D option.
svn path=/trunk/; revision=2349
2000-08-23 18:22:12 +00:00
Laurent Deniel 0c73ead218 Do the same as with colors for the font selection dialog.
Add a boolean that will be set to TRUE if the user hit OK
in the font selection dialog. And do nothing about fonts
in the apply routine if the font dialog has not been used
by the user. This gets rid of a warning which was displayed
each time the preferences are "OK, Saved or cancelled"
and that whether the user has used the font selection
dialog or not (which was very annoying) ...

svn path=/trunk/; revision=2348
2000-08-23 16:15:13 +00:00
Laurent Deniel fe01ebe5d2 Fix a comment.
svn path=/trunk/; revision=2347
2000-08-23 10:38:43 +00:00
Guy Harris 53252372a6 Don't set the marked-packet foreground and background colors in "prefs"
until the GUI-preferences fetch routine is called, and don't re-colorize
marked packets until the GUI-preferences apply routine is called;
those preferences shouldn't take effect until the user clicks "OK" or
"Apply", as that's the way other preferences work.

Treat a request to close the color selection dialog the same as a click
on the "Cancel" button.

svn path=/trunk/; revision=2346
2000-08-23 07:38:56 +00:00
Guy Harris 56697db466 Bleah. What was I thinking? "dlg_window_new()" should take the title
for the dialog window as an argument (as various dialog creators in GTK+
do), not oblige every caller of it to cut-and-paste a
"gtk_window_set_title()" call after it.

svn path=/trunk/; revision=2345
2000-08-23 06:56:31 +00:00
Laurent Deniel 2f1bab3f96 Do not display "Text (text)" (i.e. FT_TEXT_ONLY) for unfilterable
fields in status bar.

svn path=/trunk/; revision=2344
2000-08-22 20:17:27 +00:00
Laurent Deniel 609806cbd3 Add a help context identifier for the status bar.
This allows the display of a short field description (and
field abbreviation) in the status bar when a field is selected
in the protocol tree window.

The description is the blurb field when available (i.e. not empty),
the name otherwise.

When the item is unselected, the file context (e.g. the file name)
is restored.

Now it is much easier to build a display filter without the manual ;-)

svn path=/trunk/; revision=2343
2000-08-22 19:40:09 +00:00
Gilbert Ramirez 8b916e49be Change u_int32_t to guint32
svn path=/trunk/; revision=2342
2000-08-22 15:07:33 +00:00
Laurent Deniel 7c48f6c0d4 Remove the "Decode IPv4 TOS field as DiffServ field" option from the
display options since it is available from the preferences.

svn path=/trunk/; revision=2341
2000-08-22 14:39:41 +00:00
Laurent Deniel 85a4718c6b Small update (add accelerator).
svn path=/trunk/; revision=2340
2000-08-22 14:21:27 +00:00
Laurent Deniel d56c56cf88 Add "Colors..." button in GUI preferences.
Currently, it allows the selection of the foreground and
background colors of the marked frames but it could be
extended further (e.g. color of normal frames).

Add update_marked_frames() in main.c to update the
display (e.g. colors) of marked frames.

svn path=/trunk/; revision=2339
2000-08-22 14:04:52 +00:00
Jun-ichiro itojun Hagino 35a3dd5ab4 more support for icmp6 node information query.
- DNS name decode (uses function in packet-dns.c)
- supported bitmap

svn path=/trunk/; revision=2338
2000-08-22 08:30:00 +00:00
Jun-ichiro itojun Hagino 52101799a7 prototype declarations should have no variables names, as #define
could play in a strange way (it happens, really).

svn path=/trunk/; revision=2337
2000-08-22 08:28:45 +00:00
Jun-ichiro itojun Hagino 6767faac0c protect macro expansion - there may be more necessary.
svn path=/trunk/; revision=2336
2000-08-22 08:19:40 +00:00
Gilbert Ramirez b27ce4e859 More mention of csids support in wiretap.
svn path=/trunk/; revision=2335
2000-08-22 06:50:16 +00:00
Gilbert Ramirez 7c0421b146 Change FT_NSTRING_UINT8 to FT_UINT_STRING. The length parameter passed
to proto_tree_add_item() will indicate if the length of the string is
indicated by an UINT8, UINT16, UINT24, or UINT32.

Change NCP dissector-maker to produce FT_UINT_STRING.

Fix off-by-one in dissection of some NCP reply packets.

svn path=/trunk/; revision=2334
2000-08-22 06:38:32 +00:00
Guy Harris 064936053c Given that DLT_ values and libpcap appear to mutate almost as fast as
the influenza virus, if "wtap_pcap_encap_to_wtap_encap()" returns
WTAP_ENCAP_UNKNOWN, indicating that the libpcap encapsulation type can't
be mapped to a Wiretap encapsulation type, include the data link type in
the message, so the user can at least give us a clue as to what type it
is that we don't support (or, at least, the DLT_ value for that type -
it could well be some standard type whose value just got gratuitously
changed).

svn path=/trunk/; revision=2333
2000-08-22 06:04:40 +00:00
Guy Harris 0746b8a5ed Put "-t <time stamp format>" back into the usage message for Ethereal
with libpcap; I inadvertently deleted it when removing "-b".

svn path=/trunk/; revision=2332
2000-08-22 05:06:20 +00:00
Guy Harris faccb9665c Initialize all the fields of the "frame_data" structure, so that, for
example, "fdata->pfd" doesn't contain junk that upsets dissectors that
try to attach data to the frame (not that it does them much good in
Tethereal, as the frame is never revisited).

svn path=/trunk/; revision=2331
2000-08-22 03:33:41 +00:00
Guy Harris 3c553f2ec7 Explain why we don't currently have to defer setting
"prefs.gui_font_name" until the "fetch" routine is called.

svn path=/trunk/; revision=2330
2000-08-21 22:35:59 +00:00
Guy Harris 88b2aba937 Put in a comment noting that the "apply" routine for the TCP stream
preferences should change the colors for all existing TCP stream
windows.

svn path=/trunk/; revision=2329
2000-08-21 22:31:04 +00:00