aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mate
AgeCommit message (Collapse)AuthorFilesLines
2005-03-07remove remnants of the old plugin api from dissectors and pluginsLars Roland2-6/+4
svn path=/trunk/; revision=13656
2005-03-07Call the "new-style init" routine for plugins a "register" routine, asGuy Harris1-1/+1
it serves the same purpose as the register routine in a built-in dissector, and don't require all dissectors to have one, as they might just be taps. Get rid of the stats tree's init routine, as it's just a tap, and as it doesn't do anything. Update the idl2eth Python script to generate plugins with register routines. svn path=/trunk/; revision=13644
2005-03-06Change to new_plugin_init()Luis Ontanon1-3/+1
svn path=/trunk/; revision=13612
2005-03-05Preparations for dropping the old plugin api.Lars Roland1-4/+3
Introduce a new init routine for plugins, which does not take the plugin api table as an argument and allows etheral to distinguish between plugins using the old and the new api. Update README.plugins accordingly Change all g_warnings() in epan/plugins.c to report_failue(). On windows we do not have a log console open while loading the plugins, because a log console cannot be opened before the prefs have been read. Thus g_warnings() does not work for reporting problems with plugins. svn path=/trunk/; revision=13596
2005-02-24- fix a crash in new_avpl_strict_match when the operator avpl was emptyLuis Ontanon2-1/+4
- change the name of the preference mate.config_filename: into mate.config: svn path=/trunk/; revision=13488
2005-02-22avoid crashing when Debug_Cfg is set and no Payload is given for a PduLuis Ontanon1-1/+1
svn path=/trunk/; revision=13464
2005-02-20fix a typo: lenght -> lengthUlf Lamping1-2/+2
This seems to be a "more common" typo, fixed it 13 times throughout the code ... svn path=/trunk/; revision=13452
2005-02-20Changed the GopTree in GogDef and GogExtra from a boolean to a stringLuis Ontanon8-17/+67
GopTree={BasicTree|NoTree|FullTree} NoTree: just an item for each gop BasicTree: (default) some essential information regarding the gop FullTree: the Gop's full tree added Id and eol-style to examples svn path=/trunk/; revision=13435
2005-02-19add mms.mate to the examples collectionLuis Ontanon1-0/+41
svn path=/trunk/; revision=13430
2005-02-19In order to avoid a crash at reanalize_gop(), do not accept a GogKey where ↵Luis Ontanon1-0/+5
the Gop has not yet being declared. svn path=/trunk/; revision=13429
2005-02-18Step the version number of the pluginLuis Ontanon1-1/+1
svn path=/trunk/; revision=13428
2005-02-18Adds Payload AVP to PduDef AVPLs simmetric to the Transport AVPLuis Ontanon3-33/+115
allows to fetch fields also from ranges that are the payload of the Proto svn path=/trunk/; revision=13427
2005-02-18Get rid of some useless lines from the last patchLuis Ontanon1-6/+1
svn path=/trunk/; revision=13424
2005-02-18Add a pointer to the start frame of each gop in the gog's treeLuis Ontanon3-7/+37
svn path=/trunk/; revision=13423
2005-02-18two fixes in config loading:Luis Ontanon1-1/+6
- do not accept GopDefs for non existent pdus Pdu - GogExtra "no For" instead of "no Name" svn path=/trunk/; revision=13422
2005-02-14Make the "maintainer-clean" rules get rid of some additional generatedGuy Harris1-0/+2
files. Do this with GENERATED_HEADER_FILES, GENERATED_C_FILES, and GENERATED_FILES macros in Makefile.common files, along the lines of what wiretap/Makefile.common has. Clean up "*~" files with "make clean" rather than only "make distclean" in some additional places. Add "maintainer-clean" rules to the Makefile.nmake files, paralelling the ones in the automake-generated Makefile.in files, using the GENERATED_FILES macros from Makefile.common files. In some cases, move the cleanup of files from "make distclean" to "make maintainer-clean", and in other cases, put in a comment indicating why we're not doing that (because some files that are distributed in the source tarballs, namely Flex output, were built with a UN*X Flex and won't compile on Windows, so we get rid of them with "make distclean" so you can clean up stuff that *has* to be re-generated for Windows). Clean up some *CLEANFILES definitions - get rid of ones that no longer apply as files were moved or that add to the definition a name that's already there. svn path=/trunk/; revision=13402
2005-02-11avoid freeing the gop_key more than once and do not reregister the tap at ↵Luis Ontanon2-5/+8
every reload svn path=/trunk/; revision=13382
2005-02-10mate runtime did not get initialized when configured after loading a capture ↵Luis Ontanon1-1/+5
file svn path=/trunk/; revision=13381
2005-02-10add "mate" as a protocol to its treeLuis Ontanon3-6/+8
svn path=/trunk/; revision=13380
2005-02-10cleanup matelib and mate examplesLuis Ontanon15-753/+85
svn path=/trunk/; revision=13378
2005-02-07From LEGO:Anders Broman2-9/+13
- fixes a leak in analize_pdu() - fixes a typo in analize_pdu() - fixes a crash in scs_unsubscribe() - save a malloc and a free in get_pdu_fields() svn path=/trunk/; revision=13335
2005-02-06From: LEGOAnders Broman4-146/+207
- fix a bug at gog reinit that disabled gogs after reload of a file. - fix some crashes when Debug_GoG>0 - cleanup the debug output (no CR at the end is needed) - Gops start when no GopStart is given and match an existing GogKey svn path=/trunk/; revision=13318
2005-02-04HFILL can't be used to initialize at run time.Guy Harris1-1/+1
svn path=/trunk/; revision=13286
2005-02-04albert chin:Jörg Mayer1-11/+14
The HP-UX compilers don't like non-constant initializers (C99'ism). Patch attached for plugins/mate/mate_setup.c. Fix a few warnings (change some () to (void)) svn path=/trunk/; revision=13274
2005-01-28use MATE (not mate) for protocol name and protocol treeUlf Lamping1-2/+2
svn path=/trunk/; revision=13191
2005-01-28A new patch for mate from Luis Ontanon:Lars Roland3-13/+19
- move mate_packet into packet-mate.c and remove it frome mate.h - supressed some warnings svn path=/trunk/; revision=13190
2005-01-28From Yoshihiro Oyama: get rid of _U_s in prototype declarations thatGuy Harris1-1/+1
lack variable names. svn path=/trunk/; revision=13188
2005-01-21From Luis Ontanon for Mate:Lars Roland4-10/+48
- supress some solaris compiler warnings - adds GopExpiration, GopIdleTimeout and GopLifetime parameters svn path=/trunk/; revision=13154
2005-01-16Some trivial warning fixes in mateJörg Mayer3-4/+4
svn path=/trunk/; revision=13073
2005-01-15Set fp to NULL before "load_loal_error()" is called, so we don't pass anGuy Harris1-1/+1
uninitalized variable to it. svn path=/trunk/; revision=13054
2005-01-10One more patch for mate:Lars Roland6-192/+111
- renamed analyze_frame() into mate_analyze_frame(). - prepare mate to be statically linked - use report_open_failure() , report_read_failure() and report_failure() in case there's an error while loading the config - some cleanup in mate_util.c - some fixes and cleanup in examples and matelib svn path=/trunk/; revision=13001
2005-01-07From Luis Ontanon:Lars Roland6-150/+144
A new patch for mate - changed the default config file name to "" - avoid trying to confgure mate when the config filename is "" - add filename and line to config errors, that way one can actually find errors in config files - teady up the config error strings ( made them uniform ) - fixed a crash when missing index AVPs (Name,For,On etc) in config AVPLS - make sure we do not delete the config AVPs and AVPLs to avoid references to unsubscribed strings been left arround - fixed the len on LoALs - changed the way loal_from_file reports an error. - matelib/sip.mate was missing the Name in a PduDef (from Julien Leproust) - matelib/h225_ras had a wrong field name (from Julien Leproust) At this point mate is silent when it's not expressely configured by the user. From me: reduce compiler noise on MSVC svn path=/trunk/; revision=12985
2005-01-06From Luis Ontanon:Lars Roland5-8/+9
Fix some MSVC warnings in MATE svn path=/trunk/; revision=12969
2005-01-06From Luis Ontanon:Lars Roland4-49/+85
Another patch for mate: - adds a "GopTree={TRUE|FALSE}" attribute to Gogs - changes "ShowPduTree={NoTree|PduTree|FrameTree}" - adds "implicit stop" to Gops with no Stop declared svn path=/trunk/; revision=12968
2004-12-31From Luis Ontanon for Mate:Lars Roland7-134/+265
- moved gop and gog indexes into gopcfgs, which is a propedeutic change for upcoming changes in the way gops are to be grouped - changed the way gog-keys are kept in memory - every gopkey attribute is copied into the gop->extras to avoid redundancy in the configuration - added timers to gogs mate.gog_type.StartTime and mate.gog_type.Time - fixed a bug in scs_subscribe that mangled some strings - minor interface improvement to scs propedeutic to having types avp values in a future - changed medium and large into mate_medium and mate_large in the scs_collection - fixed Mode=Replace in Transforms, now it works - fixed a crash at reinit due to impropper initialization of mate_items svn path=/trunk/; revision=12902
2004-12-23Fixes for Mate from Luis Ontanon:Lars Roland9-136/+210
- 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-16Patch for Mate Plugin.Lars Roland7-132/+152
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-12Update for Mate from Luis Ontanon:Lars Roland6-52/+171
- 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-12Fixes for Mate Plugin:Lars Roland16-144/+140
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-11New Plugin from Luis Ontanon:Lars Roland32-0/+6268
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