Commit Graph

370 Commits

Author SHA1 Message Date
Guy Harris d209115ba3 Add a "report_failure()" routine to allow dissectors to report arbitrary
errors to the user.  Use that, rather than "g_warning()", in the
Diameter dissector to report errors reading the dictionary.

Make the format argument to "simple_dialog()" a "const" pointer.

Fix up the read-error message in Tethereal to end with a newline.

If a simple dialog is requested before the main window or the
capture-control window is popped up, queue it up and pop the queued
messages up once the main or capture-control window is displayed.

svn path=/trunk/; revision=10616
2004-04-16 23:17:13 +00:00
Olivier Biot 4459d9f0a9 Add support for plugin dissectors on cygwin builds, by adding the following
line to every Makefile.am file for a given plugin XXX:

	XXX_la_LIBADD = -L../../epan -lethereal @GLIB_LIBS@

This way symbols defined in libethereal and GLib are resolved when linking
the plugin dissector modules.

svn path=/trunk/; revision=10601
2004-04-14 22:13:28 +00:00
Guy Harris af3a427ffd From Albert Chin: the Sun WorkShop 5.0 compiler and HP-UX 10.20 compiler
don't allow you to initialize aggregates with an initializer that
includes non-constant values.

svn path=/trunk/; revision=10527
2004-03-30 19:36:50 +00:00
Guy Harris 1ca8d227a2 From Lars Roland: have "make clean" and "make distclean" clean up the
new Cisco VoIP plugins.

svn path=/trunk/; revision=10521
2004-03-30 18:45:04 +00:00
Guy Harris 36abac74a4 From Duncan Sargeant: include "moduleinfo.h" so that the plugins get the
right version number.

svn path=/trunk/; revision=10520
2004-03-30 18:30:28 +00:00
Gerald Combs 320e375f09 Call plugin_address_table_init() before proto_register_protocol().
svn path=/trunk/; revision=10497
2004-03-26 04:01:31 +00:00
Guy Harris d937629449 Update for Tomas Kukosa's new APIs to get the parent and the
nth-grandparent-up for a protocol tree item and to get the last item
created by the BER dissector (that API and the new names for the
universal tags were supplied by him - the checkin item didn't give him
credit).

svn path=/trunk/; revision=10491
2004-03-26 00:01:32 +00:00
Guy Harris 044f075c66 From Tomas Kukosa: add APIs to get the parent of a protocol tree item
and the item N levels up from a protocol tree item.

svn path=/trunk/; revision=10486
2004-03-25 23:55:21 +00:00
Guy Harris d5c6a38601 Add .cvsignore files to the new plugins.
svn path=/trunk/; revision=10484
2004-03-25 23:11:27 +00:00
Guy Harris c04677e83c Squelch compiler warnings, and remove some trailing blanks from lines.
svn path=/trunk/; revision=10483
2004-03-25 23:09:18 +00:00
Guy Harris ab724a63eb Add the usual extra files to the new plugins.
svn path=/trunk/; revision=10482
2004-03-25 19:11:05 +00:00
Guy Harris a1467c86e1 From Duncan Sargeant: Cisco SS7 RUDP, RLM, and Session Management
support.

svn path=/trunk/; revision=10480
2004-03-25 11:21:07 +00:00
Guy Harris a6ed2d499a From Tomas Kukosa: BER dissector enhancements and proto.c updates to
support them.

From Ronnie Sahlberg: Kerberos updates with new constants from the
current draft, decryption and dissection of Kerberos blobs, and changes
to work with the changed BER dissector.

svn path=/trunk/; revision=10479
2004-03-25 09:18:03 +00:00
Guy Harris 121f06fab7 Make "epan_init()" take, as additional arguments, pointers to routines
that dissectors should call to report file open and read errors, and
have "report_open_failure()" and "report_read_failure()" call through
those pointers, rather than being defined and exported by the
application using libethereal - instead, the application would define
those functions and pass pointers to them to 'epan_init()".

Move "report_err.h" to the epan directory, as the functions it declares
are now part of the libethereal API.

svn path=/trunk/; revision=10470
2004-03-23 21:19:58 +00:00
Guy Harris 2b9ad9ec25 From Brian Wheeler: DOCSIS 2.0 support.
svn path=/trunk/; revision=10387
2004-03-17 06:55:03 +00:00
Guy Harris 2271736636 Add the URL of the specifications page.
svn path=/trunk/; revision=10348
2004-03-08 23:19:14 +00:00
Guy Harris c74dac3af9 Use "tvb_format_text()" on the port name, so that if there are bytes in
it that aren't printable characters, they'll be shown as C-style escape
sequences.

svn path=/trunk/; revision=10343
2004-03-08 19:41:52 +00:00
Guy Harris 4a4650b273 Fetch the port name string using "tvb_get_string()", so that we don't
have to worry about overflowing a buffer; thanks to Stefan Esser for
catching that one.  (It also means we handle it if there's no '\0' at
the end.)

svn path=/trunk/; revision=10341
2004-03-07 22:46:04 +00:00
Guy Harris 36a9a266f4 From Tomas Kukosa: add packet-ber.c routines to the plugin API.
svn path=/trunk/; revision=10295
2004-03-04 07:07:57 +00:00
Jörg Mayer 12a17e8f96 Note to self: If you update the code, you should update the docs too.
Update README.plugins to use ENABLE_STATIC instead of __ETHEREAL_STATIC__
Update some plugins, that were created after my changes according to the
outdated docs.
Changed occurrences of
G_MODULE_EXPORT void plugin_reg_handoff(void)
into
G_MODULE_EXPORT void
plugin_reg_handoff(void)

as the one line Python version doesn't work with the Python of Suse 9.0

svn path=/trunk/; revision=10281
2004-03-02 23:45:34 +00:00
Guy Harris 07a989fbc6 Make the default ASN.1 file be "no file", not {Ethereal install
directory}/asn1/default.tt.

svn path=/trunk/; revision=10192
2004-02-22 23:53:57 +00:00
Guy Harris 9a7cac1dff Include "report_err.h" to declare "report_open_failure()" and
"report_read_failure()".

svn path=/trunk/; revision=10167
2004-02-21 11:38:45 +00:00
Guy Harris 711a7cbfa3 Regenerate the files from the latest list of exported functions.
svn path=/trunk/; revision=10154
2004-02-21 02:21:36 +00:00
Guy Harris 091108fb80 Move "dissect_per_bit_string()" to the end, to preserve the order of
earlier entries in the table of exported functions.

svn path=/trunk/; revision=10153
2004-02-21 02:20:44 +00:00
Guy Harris 83634f54c7 Add routines that can be called from dissectors to report file open and
read errors; there are separate implementations for Ethereal (pops up an
alert box) and Tethereal (prints an error message).

Use those routines in the ASN.1 dissector.

svn path=/trunk/; revision=10152
2004-02-21 02:15:07 +00:00
Guy Harris 0a8db3ba32 Fix a typo.
svn path=/trunk/; revision=10141
2004-02-20 22:14:12 +00:00
Guy Harris 3b1a2d094f On Win32, don't treat "file not found" as an error when trying to load
the ASN.1 file if the pathname is the old default file pathname, with
the last component preceded by "/" rather than "\", to suppress
complaints if you have a preferences file saved under the old regime.

svn path=/trunk/; revision=10118
2004-02-20 02:57:08 +00:00
Gerald Combs 037c2c12e4 From Lars Roland: Add support for a combined GTK1/2 Windows installer.
svn path=/trunk/; revision=10098
2004-02-18 20:45:54 +00:00
Guy Harris eed50af495 From Erwin Rol: update RTnet plugin to the latest spec.
svn path=/trunk/; revision=10083
2004-02-18 05:33:35 +00:00
Ronnie Sahlberg 126383282c From Tomas Kukosa, add a PER helper to dissect BITSTRINGS
svn path=/trunk/; revision=10071
2004-02-16 18:31:40 +00:00
Guy Harris e6adbf5966 Add "tvb_strsize()".
svn path=/trunk/; revision=10023
2004-02-10 23:30:56 +00:00
Ulf Lamping 5297f06717 replaced every appearance of gtk_scrolled_window_new() with
scrolled_window_new().
added gtk_scrolled_window_set_policy(AUTOMATIC,AUTOMATIC) to
scrolled_window_new()
added GTK2's gtk_scrolled_window_set_shadow(GTK_SHADOW_IN)
to every place needed

svn path=/trunk/; revision=9999
2004-02-06 19:19:12 +00:00
Guy Harris dbdea1617e Update a comment.
svn path=/trunk/; revision=9981
2004-02-05 08:16:01 +00:00
Guy Harris 02d2de411a From Lars Roland: fix the declaration of "tvb_strneql()".
svn path=/trunk/; revision=9958
2004-02-02 18:01:59 +00:00
Jörg Mayer 38faa0f27b packet-dcerpc-afs4int.c
svn path=/trunk/; revision=9938
2004-02-01 06:49:25 +00:00
Gerald Combs d69016e552 Delete generated files during distclean instead of maintainerclean, so
that we pass distcheck.

svn path=/trunk/; revision=9850
2004-01-25 18:52:33 +00:00
Gerald Combs a8348ec990 Make the definition of tvb_format_text() match what's in tvbuff.h.
svn path=/trunk/; revision=9847
2004-01-25 17:53:55 +00:00
Ulf Lamping 064d5e5e07 Added the ability to compile both GTK versions 1 and 2 at the same time.
svn path=/trunk/; revision=9827
2004-01-24 20:01:36 +00:00
Jörg Mayer 7180513677 Trivial signed/unsigned warning fixes
svn path=/trunk/; revision=9824
2004-01-24 02:07:05 +00:00
Jörg Mayer 3a60501750 Change msg from guint8* to gchar* (because of tvb_format_text change)
svn path=/trunk/; revision=9802
2004-01-23 09:47:39 +00:00
Guy Harris 0f159e9f7b From Pierre Juhen: add "find_protocol_by_id()" to the list of functions
exported to plugins.

Fix some author list glitches.

svn path=/trunk/; revision=9789
2004-01-23 00:36:30 +00:00
Jörg Mayer aa411b1861 Fix warnings found by -Wstrict-prototypes
svn path=/trunk/; revision=9721
2004-01-18 15:57:47 +00:00
Jörg Mayer ab37702076 Remove unused rule to build packet-asn1-static.o
svn path=/trunk/; revision=9718
2004-01-18 14:08:28 +00:00
Guy Harris eaf42827f3 Give the IrDA dissector its own private value_string table for the frame
type in the IrLAP control field - on most UNIXes the dissector should be
able to use the table from the main program, but that doesn't currently
work on Windows.

svn path=/trunk/; revision=9717
2004-01-18 14:03:37 +00:00
Guy Harris 49a7eb8e5f Add arguments to "dissect_xdlc_control()" to specify value_string
tables, for use in the top-level item for the control field, for
unnumbered frame function codes for commands and responses.  If the
argument is null, default to the standard tables.

Use "dissect_xdlc_control()" and the #defines from "xdlc.h" for IrDA.

Use the reported length rather than the data length in the IrDA
dissector when iterating over the data in an IrDA packet.

Make "dissect_xid()" update the column information as well as the
protocol tree.  Put the slot number into the protocol tree only for
command frames - "the slot number field is undefined in discovery XID
response frames", to quote the IrLAP spec.

svn path=/trunk/; revision=9716
2004-01-18 13:02:30 +00:00
Guy Harris 369528c769 Add arguments to "dissect_xdlc_control()" to specify value_string
tables, for use in the top-level item for the control field, for
unnumbered frame function codes for commands and responses.  If the
argument is null, default to the standard tables.

Use "dissect_xdlc_control()" and the #defines from "xdlc.h" for IrDA.

Use the reported length rather than the data length in the IrDA
dissector when iterating over the data in an IrDA packet.

Make "dissect_xid()" update the column information as well as the
protocol tree.  Put the slot number into the protocol tree only for
command frames - "the slot number field is undefined in discovery XID
response frames", to quote the IrLAP spec.

svn path=/trunk/; revision=9715
2004-01-18 12:57:25 +00:00
Guy Harris 5a751f6811 Add arguments to "dissect_xdlc_control()" to specify value_string
tables, for use in the top-level item for the control field, for
unnumbered frame function codes for commands and responses.  If the
argument is null, default to the standard tables.

Use "dissect_xdlc_control()" and the #defines from "xdlc.h" for IrDA.

Use the reported length rather than the data length in the IrDA
dissector when iterating over the data in an IrDA packet.

Make "dissect_xid()" update the column information as well as the
protocol tree.  Put the slot number into the protocol tree only for
command frames - "the slot number field is undefined in discovery XID
response frames", to quote the IrLAP spec.

svn path=/trunk/; revision=9713
2004-01-18 08:32:46 +00:00
Guy Harris 9dac6d42d5 From Matthijs Melchior: allow an absent or empty file name to mean "no
type table".

svn path=/trunk/; revision=9650
2004-01-13 02:36:51 +00:00
Guy Harris 349feca55d Don't do anything exotic to get signed integral values - Ethereal's
dissectors assume a two's-complement machine (we offer our apologies to
those trying to run it on sign-magnitude IBM 7090/7094's and one's
complement Univac/Unisys 11xx machines :-)).

svn path=/trunk/; revision=9584
2004-01-07 05:13:29 +00:00
Guy Harris 542c89afd4 Use "tvb_get_guint8()", not "tvb_get_ntohs()", to fetch 1-byte numbers.
Use "proto_tree_add_item()" if you don't need the number's value.

svn path=/trunk/; revision=9582
2004-01-07 04:33:21 +00:00