Commit Graph

446 Commits

Author SHA1 Message Date
Ulf Lamping 78ff68d4b5 a lot of warnings removed, most of them about pointer to int casts without using the appropriate GLib macros
svn path=/trunk/; revision=12832
2004-12-25 13:49:30 +00:00
Lars Roland 5474c91d65 Fixes for Mate from Luis Ontanon:
- fixes crash at reinit when DiscardPduData=TRUE: check if there's an
avpl before deleting it.
- mate.pdu_type.RelativeTime had a dual use, add
mate.pdu_type.TimeInGop and leave the other alone.
- other fixes related to times (they now seem to be right)
- scs_subscribe doesn't use g_malloc anymore. it uses GMemChunks
(I had to rename two GMemChunks to make MSVC happy)
- fixes crash at reinit when DiscardPduData=TRUE: check if there's an
avpl before deleting it.
- mate.pdu_type.RelativeTime had a dual use, add
mate.pdu_type.TimeInGop and leave the other alone.
- other fixes related to times (they now seem to be right)
- fixed few things at reinit:
     - reset last_id 
     - remove the nodes in the items hash tables 

svn path=/trunk/; revision=12820
2004-12-23 08:27:30 +00:00
Lars Roland af8041a316 Patch for Mate Plugin.
From Luis Ontanon:
- moves mate configuration from proto_register to proto_register_handoff
- add the config file protocol preference
- every item (gop,gog,pdu) has it's own ett
- the tap doesn't do nothing, it just primes the tree
- analyze_frame()  what once was the tap now is called by the dissector
- should work with tethereal now (to be tested)

svn path=/trunk/; revision=12763
2004-12-16 19:36:23 +00:00
Lars Roland e4b76b25e6 Update Xplugin_table.h, too. (Just by regenerating the X-files of the plugin api)
svn path=/trunk/; revision=12747
2004-12-13 21:35:59 +00:00
Ronnie Sahlberg 9a41dceb4a change some signatures for some ber helpers from unsigned to signed
svn path=/trunk/; revision=12746
2004-12-13 21:11:13 +00:00
Ronnie Sahlberg 8afae320de update of the asn2eth compiler to use the types ber_[choice|sequence]_t instead of ber_[choice|sequence]
regenerated all dissectors


fixed the choice/sequence struct to use unsigned entities for class and tag
(to reduce some compiler warning and because it should be signed quantities)



svn path=/trunk/; revision=12740
2004-12-13 08:15:34 +00:00
Ronnie Sahlberg fa6a017338 yet another plugin update for GeneralizedTime
svn path=/trunk/; revision=12738
2004-12-13 04:36:01 +00:00
Ronnie Sahlberg 68d7a3186b rename generalized_time to the new name GeneralizedTime in the plugin directory.
I didnt notice it since i never comple with plugins.



svn path=/trunk/; revision=12737
2004-12-13 03:40:45 +00:00
Lars Roland 04a6f55e4c Update for Mate from Luis Ontanon:
- make rd static (no purpose for it to be global)
- remove outdated comments
- add "PduCriteria" feature (as already stated in the wiki)
- add "DiscardUnassignedPdu" feature (as already stated in the wiki)
- removed ".Id" from abbrev for "mate.item_name"

- in radius.mate:  Don't use the port to determine the Gop key.

svn path=/trunk/; revision=12735
2004-12-12 23:40:44 +00:00
Lars Roland 3974027add Update the declaration of dissect_ber_integer() in the plugin api
svn path=/trunk/; revision=12729
2004-12-12 17:59:01 +00:00
Lars Roland 62506c09d6 Fixes for Mate Plugin:
As suggested by Martin Regner:
- Use strtod() instead of strtof()

From Luis Ontanon:
- changes the id of mate items to be integer (the old string ID
imposed a lenght limit and as mate fileds had become dynamic it makes
no more sense anymore)

- fixes a huge avp leak on reinit (every avp object was leaked when a
new file was loaded)

- adds the "Lib" AVP to the Action=Include AVPL to include definitions
>from matelib

- rename mate.[dll/so] to zzmate.[dll/so] so it gets initialized as
the very last protocol (so that fields from every dissector can be
used).

svn path=/trunk/; revision=12728
2004-12-12 16:58:59 +00:00
Lars Roland 86d7ed9bae New Plugin from Luis Ontanon:
MATE -- Meta Analysis and Tracing Engine

Won't be compiled by default.

It is still not possible to link the plugin on Win32.

svn path=/trunk/; revision=12716
2004-12-11 01:00:17 +00:00
Lars Roland ea67e4cfab Add functions to the old and the new plugin api for the MATE Plugin.
svn path=/trunk/; revision=12715
2004-12-11 00:13:27 +00:00
Guy Harris bebb2b7705 Get rid of C++/C99-style comments - not all C compilers accept them.
Fix some indentation.

svn path=/trunk/; revision=12710
2004-12-10 11:20:48 +00:00
Lars Roland 22bc471bb6 Make rtnet plugin compile again with MSVC
and some white space cleanup.

svn path=/trunk/; revision=12622
2004-11-29 23:48:26 +00:00
Guy Harris 7c3027c5e9 Export two versions of the Ethereal dissector, for use with encapsulated
Ethernet frames, one for encapsulated frames that include an FCS and one
for encapsulated frames that don't include an FCS.  Use the appropriate
versions.

In the ISL dissector, do the same sort of processing we do in the
Ethernet dissector to figure out whether the frame has a trailer or not
and whether it has an FCS or not.

svn path=/trunk/; revision=12593
2004-11-24 09:13:52 +00:00
Guy Harris ccb72b77b5 From Erwin Rol: Dissect DMX in a readable format, and other updates.
svn path=/trunk/; revision=12587
2004-11-24 03:35:17 +00:00
Guy Harris eb0a24bbad Updates from Erwin Rol.
svn path=/trunk/; revision=12584
2004-11-24 02:36:14 +00:00
Guy Harris 77f9af3434 Update a URL.
svn path=/trunk/; revision=12550
2004-11-21 03:01:15 +00:00
Guy Harris 1f4073974f Check for bogus attribute lengths.
svn path=/trunk/; revision=12505
2004-11-10 10:46:40 +00:00
Gerald Combs 642513149f From Laurent Rabret:
- enable Windows' ShellExecute command to call Ethereal without specifying
  the installation path (a new key added in the registry)
- decode 2 more options in the OPSI plugin.


svn path=/trunk/; revision=12363
2004-10-21 02:06:37 +00:00
Guy Harris f0b50fb262 Constify more pointer arguments.
svn path=/trunk/; revision=12266
2004-10-11 18:35:26 +00:00
Guy Harris 518f7926b7 Constify more pointer arguments.
svn path=/trunk/; revision=12265
2004-10-11 18:34:54 +00:00
Guy Harris 21119337d0 Make the "per_choice_t" and "per_sequence_t" pointer arguments pointers
to const.

svn path=/trunk/; revision=12254
2004-10-11 06:39:04 +00:00
Guy Harris 4998eb51ee Make the "per_choice_t" and "per_sequence_t" pointer arguments pointers
to const.

svn path=/trunk/; revision=12253
2004-10-11 06:38:12 +00:00
Ulf Lamping aa85e98b06 remove some MSVC warnings
svn path=/trunk/; revision=12248
2004-10-09 07:44:41 +00:00
Guy Harris 017d788da0 From Lars Roland: we need to define _NEED_VAR_IMPORT_ in plugins if we
link the plugins with libethereal, so do so.

svn path=/trunk/; revision=12176
2004-10-01 19:50:03 +00:00
Guy Harris 99392257b7 In "plugins/plugin_api.h", don't include stuff required for the plugin
address table if we don't need the plugin address table, so as to catch
plugin dissectors that don't directly include stuff they need -
eventually, the plugin address table stuff should completely go away, so
we don't want dissectors depending on it.

Fix those dissectors caught by this.

Don't include "simple_dialog.h" in the ASN.1 dissector - it doesn't use
it.

svn path=/trunk/; revision=12140
2004-09-29 22:20:21 +00:00
Guy Harris 444119dbcb From Lars Roland: add an option to link plugins with libethereal rather
than using the plugin address table.

svn path=/trunk/; revision=12139
2004-09-29 19:30:10 +00:00
Guy Harris eaadcc4c62 Move various tables into the epan directory.
svn path=/trunk/; revision=12130
2004-09-29 00:52:45 +00:00
Guy Harris 6472876ab3 Move the tap infrastructure to the epan directory.
svn path=/trunk/; revision=12128
2004-09-29 00:06:36 +00:00
Guy Harris 53ab91826b Move the xDLC helper routines into epan.
svn path=/trunk/; revision=12127
2004-09-28 23:48:02 +00:00
Guy Harris ac98f225a8 Move various checksum routines and headers to epan.
svn path=/trunk/; revision=12117
2004-09-28 00:06:32 +00:00
Guy Harris bbe7f89742 Move prefs.c and prefs.h into the epan subdirectory.
svn path=/trunk/; revision=12115
2004-09-27 22:55:15 +00:00
Guy Harris fdfdd39080 Routines called by "g_node_traverse()" return a Boolean - FALSE to
continue traversing, TRUE to stop traversing - so make
"free_node_data()" return FALSE.

svn path=/trunk/; revision=12110
2004-09-27 08:30:25 +00:00
Guy Harris a1968b1326 Add proto_tree_add_debug_text(), rtcp_add_address(), and
rtp_add_address() to the list of functions exported from libethereal.dll
and exported via the plugin function table.

svn path=/trunk/; revision=12068
2004-09-23 07:32:58 +00:00
Guy Harris 55d15a436b Add proto_tree_add_debug_text(), rtcp_add_address(), and
rtp_add_address() to the list of functions exported from libethereal.dll
and exported via the plugin function table.

svn path=/trunk/; revision=12067
2004-09-23 07:32:16 +00:00
Guy Harris 97cd8040a8 Preference strings don't remain null pointers for long - they get
converted to pointers to null strings (see prefs.c for an explanation). 
Initialize "current_asn1" to a mallocated null string.

That lets us use "strcmp()" to compare asn1_filename and current_asn1. 
We already do that with asn1_pduname and current_pduname, so use
"strcmp()" for them as well.

Call "build_pdu_tree()" if we haven't yet built a PDU tree, even if the
PDU type preference hasn't changed.

Don't register with any of the ports unless we have a PDU tree, so we
don't try to dissect with a null PDU tree pointer.

Before constructing a PDU tree, if we already have a PDU tree, free it.

When we free data_nodes, free the data attached to the nodes.

Make a bunch of stuff static.

svn path=/trunk/; revision=12045
2004-09-19 03:00:00 +00:00
Anders Broman 790e524443 Fix dissection of MEGACO over TCP, there will be a TPKT header included.
svn path=/trunk/; revision=12043
2004-09-18 21:28:28 +00:00
Guy Harris 92dcbdc192 Export the "proto_tree_add_float" routines, and the routines to get IEEE
float and double values from a tvbuff.

svn path=/trunk/; revision=12019
2004-09-16 19:33:18 +00:00
Guy Harris 56f95db6b4 Export the "proto_tree_add_float" routines, and the routines to get IEEE
float and double values from a tvbuff.

svn path=/trunk/; revision=12018
2004-09-16 19:32:09 +00:00
Anders Broman dbec88f562 Fix a problem where MEGACO not fully RFC complient wasn't dissected, change some indentations,
and a problem where transaction ID wasn't put in the info columb correctly.

svn path=/trunk/; revision=11997
2004-09-15 19:59:53 +00:00
Guy Harris f23f4ecf04 Use _WIN32 rather than WIN32 to determine if we're compiling on Win32;
according to Gisle Vanem, WIN32 isn't a built-in in MSVC, but _WIN32 is.

svn path=/trunk/; revision=11972
2004-09-11 23:03:36 +00:00
Guy Harris d15724fc9e Make a bunch of source files non-executable.
svn path=/trunk/; revision=11869
2004-09-01 07:07:23 +00:00
Guy Harris b061f78dad Updates from Erwin Rol.
svn path=/trunk/; revision=11868
2004-09-01 06:56:33 +00:00
Guy Harris e6bc3872b0 From Lars Roland: don't link with GTK+, as it's not necessary to do so,
and as plugin dissectors shouldn't be linked with GTK+ (so that they
don't depend on Ethereal being built with a particular version of GTK+ -
Ethereal is packaged for Windows in both GTK+ 1.3[.x] and 2.x versions -
and so that they can work with Tethereal, which doesn't use GTK+).

svn path=/trunk/; revision=11840
2004-08-26 22:46:32 +00:00
Guy Harris b700504585 From Lars Roland: add "tvb_get_ntoh64()" to the list of routines
callable from plugins and the list of routines exported from
libethereal.dll.

Do the same for "tvb_get_letoh64()".

svn path=/trunk/; revision=11826
2004-08-25 03:30:40 +00:00
Guy Harris 3481780eea From Lars Roland: add "tvb_get_ntoh64()" to the list of routines
callable from plugins and the list of routines exported from
libethereal.dll.

Do the same for "tvb_get_letoh64()".

svn path=/trunk/; revision=11825
2004-08-25 03:29:54 +00:00
Guy Harris fcf529654a Ethereal has required guint64 support for a while, so there's no need to
check for it in the Gryphon plugin.

Use "tvb_get_ntoh64()" to fetch the time stamp, and format it similarly
to the way absolute date/time time stamps are formatted.

svn path=/trunk/; revision=11800
2004-08-22 02:42:27 +00:00
Guy Harris 42b915674b Map the old one-port "generic ASN.1" TCP/UDP/SCTP port-number
preferences to the new multi-port ones, so that, instead of complaining
when the old preferences were seen, we make the port be the one port in
the new preference.

Make the "message_win" "generic ASN.1" preference an obsolete
preference, so we silently ignore it rather than complaining about it.

svn path=/trunk/; revision=11623
2004-08-08 01:20:26 +00:00