summaryrefslogtreecommitdiff
path: root/plugins/mate/mate_setup.c
AgeCommit message (Collapse)AuthorFilesLines
2014-10-06plugins: Add editor modelines; Adjust whitespace as needed.Bill Meier1-0/+12
Change-Id: I36124f6021d46a228721bdc976f6b9fef1c8c088 Reviewed-on: https://code.wireshark.org/review/4488 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-03-31Continue to remove $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^\* \$Id\$/,+1 d') (no space before star) Change-Id: I318968db2b8512ba1303b5fc5c624c66441658f0 Reviewed-on: https://code.wireshark.org/review/879 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-08-06Replace hfinfo pointer to same_name_prev, with same_name_prev_id.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=51175
2013-03-21From beroset:Bill Meier1-13/+13
remove C++ incompatibilities https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 attachment #10409 svn path=/trunk/; revision=48449
2012-12-26Fix a bunch of warnings.Guy Harris1-4/+4
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of sizeof. Cast away some implicit 64-bit-to-32-bit conversion errors due to use of strtol() and strtoul(). Change some data types to avoid those implicit conversion warnings. When assigning a constant to a float, make sure the constant isn't a double, by appending "f" to the constant. Constify a bunch of variables, parameters, and return values to eliminate warnings due to strings being given const qualifiers. Cast away those warnings in some cases where an API we don't control forces us to do so. Enable a bunch of additional warnings by default. Note why at least some of the other warnings aren't enabled. randpkt.c and text2pcap.c are used to build programs, so they don't need to be in EXTRA_DIST. If the user specifies --enable-warnings-as-errors, add -Werror *even if the user specified --enable-extra-gcc-flags; assume they know what they're doing and are willing to have the compile fail due to the extra GCC warnings being treated as errors. svn path=/trunk/; revision=46748
2012-06-28Update FSF address - part II.Jakub Zawadzki1-1/+1
svn path=/trunk/; revision=43538
2012-04-13Remove doubled semicolons and semicolons outside function.Jakub Zawadzki1-2/+2
svn path=/trunk/; revision=42053
2011-05-19Fix another old style function declaration warningJörg Mayer1-1/+1
svn path=/trunk/; revision=37281
2011-01-30Whitespace cleanup (remove trailing blanks from lines).Bill Meier1-66/+66
svn path=/trunk/; revision=35711
2010-04-14Be sure we initialize the p_id in hf's. This fixesJeff Morriss1-2/+5
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3010 . Also finish the implementation of ShowTimes for GOGs so that the variable gets initialized (preventing another uninitialized variable warning from Valgrind). svn path=/trunk/; revision=32465
2010-04-14Fix up MATE's hf display values so MATE will actually run.Jeff Morriss1-6/+8
svn path=/trunk/; revision=32464
2009-03-27Replace some unnecessary use of g_snprintf and g_strdup_printfBill Meier1-4/+4
svn path=/trunk/; revision=27864
2008-12-22Fix some typos and spelling (mostly in text strings)Bill Meier1-2/+2
svn path=/trunk/; revision=27085
2008-08-05luis.ontanon@gmail.com => luis@ontanon.orgLuis Ontanon1-1/+1
svn path=/trunk/; revision=25937
2008-05-11g_string_sprintf --> g_string_printf and g_string_sprintfa --> ↵Bill Meier1-2/+2
g_string_append_printf svn path=/trunk/; revision=25276
2008-04-07- Remove GLIB1 codeStephen Fisher1-1/+0
- Change ugly GLIB version checking statements to GLIB_CHECK_VERSION - Remove ws_strsplit files because we no longer need to borrow GLIB2's g_strsplit code for the no longer supported GLIB1 builds svn path=/trunk/; revision=24829
2007-03-26Fix a bunch more warnings. Add -Werror when using --with-warnings-as-errorsStephen Fisher1-295/+0
under gcc to tools/lemon, plugins/mate and epan/ svn path=/trunk/; revision=21204
2007-03-23Fix about 150 warnings new to gcc 4.0 in the error on warning directories.Stephen Fisher1-0/+5
Comment out -Werror in plugins/asn1/ until warnings can be fixed. svn path=/trunk/; revision=21158
2007-02-13From Sebastien Tandel:Stephen Fisher1-0/+1
Create two new files (ws_strsplit.[ch]) that use GTK2 code to override the buggy g_strsplit() function when compiling for GTK1. Include this work-around function (ws_strsplit) in libwireshark.def. Add notes on usage to README.developer. Include epan/ws_strsplit.h in all files that use g_strsplit(). svn path=/trunk/; revision=20804
2006-05-28Ethereal->WiresharkAnders Broman1-1/+1
svn path=/trunk/; revision=18231
2006-05-21name changeRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18197
2006-01-05Bill Meier:Jörg Mayer1-4/+4
Spelling fixes. svn path=/trunk/; revision=16956
2005-12-12- add Debug and Default declarations.Luis Ontanon1-5/+0
- supress unwanted console printouts. svn path=/trunk/; revision=16769
2005-12-12Avoid to crash if we are given an unexistent field.Luis Ontanon1-1/+1
svn path=/trunk/; revision=16762
2005-07-23More 'char*' -> 'const char*' changes to fix warnings.Jörg Mayer1-4/+4
svn path=/trunk/; revision=15015
2005-06-24More constification.Guy Harris1-1/+1
svn path=/trunk/; revision=14740
2005-05-22at this point mate should be working as it did before the grammarLuis Ontanon1-24/+47
- pdu transports were upside down (ip/tcp vs tcp/ip) - the gop to gog index was not being populated - tell svn to ignore generated c files svn path=/trunk/; revision=14416
2005-05-16Transforms and Pdus are working already, Gops start to work.Luis Ontanon1-130/+2
svn path=/trunk/; revision=14376
2005-05-16MATE has a grammar.Luis Ontanon1-1150/+451
Although not yet fully implemented I want this version as a reference. svn path=/trunk/; revision=14373
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-20Changed the GopTree in GogDef and GogExtra from a boolean to a stringLuis Ontanon1-4/+22
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-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-18Adds Payload AVP to PduDef AVPLs simmetric to the Transport AVPLuis Ontanon1-29/+68
allows to fetch fields also from ranges that are the payload of the Proto svn path=/trunk/; revision=13427
2005-02-18Add a pointer to the start frame of each gop in the gog's treeLuis Ontanon1-1/+15
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-10add "mate" as a protocol to its treeLuis Ontanon1-2/+3
svn path=/trunk/; revision=13380
2005-02-06From: LEGOAnders Broman1-43/+55
- 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-21From Luis Ontanon for Mate:Lars Roland1-3/+16
- supress some solaris compiler warnings - adds GopExpiration, GopIdleTimeout and GopLifetime parameters svn path=/trunk/; revision=13154
2005-01-10One more patch for mate:Lars Roland1-48/+69
- 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 Roland1-111/+101
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 Roland1-3/+4
Fix some MSVC warnings in MATE svn path=/trunk/; revision=12969
2005-01-06From Luis Ontanon:Lars Roland1-11/+34
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 Roland1-25/+47
- 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 Roland1-5/+15
- 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 Roland1-0/+43
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 Roland1-13/+108
- 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 Roland1-15/+35
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 Roland1-0/+1417
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