Commit Graph

666 Commits

Author SHA1 Message Date
Gerald Combs 9f61403c0b Break out of another infinite loop. Found during fuzz testing.
svn path=/trunk/; revision=14250
2005-05-01 13:36:00 +00:00
Ulf Lamping a46d7d2d59 set subversion attributes
svn path=/trunk/; revision=14249
2005-04-30 20:55:21 +00:00
Ulf Lamping 48aee19b1a move the profinet related files to a plugin (step by step), to make prototyping and further development easier (at least for me :-)
svn path=/trunk/; revision=14248
2005-04-30 20:52:20 +00:00
Lars Roland 6a4b4fc1b9 From Martin Mathieson:
- added support for local connection options
- added missing "Response Acknowledgement (000)" response code
- got rid of "display_dissect_tree" preference and code
- increased version number in moduleinfo.h

svn path=/trunk/; revision=14225
2005-04-29 00:00:42 +00:00
Gerald Combs e5af03f331 Fix a buffer overflow. Fixes bug 96.
svn path=/trunk/; revision=14207
2005-04-27 20:25:37 +00:00
Gerald Combs b979f69c0c Break out of an infinite loop. Fixes bug 95.
svn path=/trunk/; revision=14204
2005-04-27 19:09:55 +00:00
Lars Roland 0c30cc130b Reindent the mgcp dissector with tabs and
remove trailing white spaces.

svn path=/trunk/; revision=14195
2005-04-26 23:14:35 +00:00
Lars Roland f78d66b0d7 From Martin Mathieson:
a first step of cleaning up the mgcp dissector:

- re-indenting/formatting the file as it was tricky to follow
- some code simplification and commenting (more to do)
- losing some unnecessary includes (not needed under linux at least...)
- show duplicate request and response fields in tree (previously hidden)
- improved duplicate response detection
- fix a couple of problems shown by fuzz testing

svn path=/trunk/; revision=14181
2005-04-25 00:51:11 +00:00
Gerald Combs 23738d70f0 Make sure a pointer isn't null before we dereference it.
svn path=/trunk/; revision=14121
2005-04-18 02:48:31 +00:00
Gerald Combs d8a7d0beb4 Keep MGCP from looping in an infinite fashion. Other parts of the code look
like they might be prone to doing the same.

svn path=/trunk/; revision=14119
2005-04-18 01:22:17 +00:00
Gerald Combs caf66bb8dd Add a length check.
svn path=/trunk/; revision=14030
2005-04-08 19:14:05 +00:00
Ronnie Sahlberg a574ef6b88 From Martin M
updates to MGCP
checked in per Anders B request   hope it compiles


svn path=/trunk/; revision=14028
2005-04-08 11:25:18 +00:00
Ronnie Sahlberg f16afe28a9 From Cvetan Ivanov
Updates to Q931, SM and ISUP


svn path=/trunk/; revision=14013
2005-04-04 07:40:07 +00:00
Gerald Combs f52c3c3a14 Add a couple of length checks.
svn path=/trunk/; revision=14008
2005-04-04 03:01:40 +00:00
Anders Broman 80e9643f2f From Martin Mathieson :
- allow dissector to show "MGCP/SDP" in the Protocol column, at least when
the 'Display the number of MGCP messages' preference is switched off
- when displaying the command verb, show in the tree the full verb name as
well as the 4-letter code
- show the links to response and request messages as being [generated]
- fixed some indentation problems


svn path=/trunk/; revision=13972
2005-03-29 20:56:42 +00:00
Ulf Lamping 1d3e8ddbd3 bugfix of a bug causing tethereal value output to fail:
value_string's must be terminated with { 0, NULL }!!!

...seems I've missed one place in my last commit!

svn path=/trunk/; revision=13930
2005-03-27 02:40:05 +00:00
Ulf Lamping 1352cfe808 bugfix of a bug causing tethereal value output to fail:
value_string's must be terminated with { 0, NULL }!!!

svn path=/trunk/; revision=13928
2005-03-27 01:18:06 +00:00
Guy Harris ed3ecc443b Add rules to build xml_lexer.c, and to remove it with "make distclean",
modeled after the rules in epan/dfilter/Makefile.nmake.

svn path=/trunk/; revision=13919
2005-03-26 10:48:38 +00:00
Guy Harris afd5ea96b1 xml_lexer.c is generated by Flex; we don't put files generated by Flex
into the SVN tree, we just put the files from which they're generated
into the SVN tree.

svn path=/trunk/; revision=13915
2005-03-26 03:30:08 +00:00
Jörg Mayer fcda7c68a0 Remove trailing ';'
svn path=/trunk/; revision=13865
2005-03-22 16:02:09 +00:00
Luis Ontanon 22084517ad Fix the names that were not consistent after the rename.
svn path=/trunk/; revision=13852
2005-03-21 17:51:07 +00:00
Luis Ontanon 3af24ce10a Add a cleanup call-back to the stats_tree.
svn path=/trunk/; revision=13851
2005-03-21 15:40:33 +00:00
Luis Ontanon 8f404dccf2 This one is not in the makefiles (it's an example of stats_tree not realy a feature), make sure it works nontheless
svn path=/trunk/; revision=13843
2005-03-21 01:32:26 +00:00
Luis Ontanon 29499bbb66 This one was missing from the last commit
svn path=/trunk/; revision=13841
2005-03-21 01:22:23 +00:00
Guy Harris 5d8d20629a From Oleg Terletsky:
get rid of a debugging printout;

	in "get_agentx_pdu_len()", fetch the payload length in the right
	byte order.

If the NETWORK_BYTE_ORDER flag isn't set, that means "little-endian",
not "host byte order" - the host on which I'm typing this is big-endian!
That means that using the "g_hton[ls]()" macros on the result of
"tvb_get_ntoh[ls]()" won't give you little-endian values on a big-endian
host; just directly use "tvb_get_letoh[ls]()" to fetch little-endian
values.

Use "proto_tree_add_item()" whenever possible.

svn path=/trunk/; revision=13834
2005-03-20 21:52:11 +00:00
Ulf Lamping 6c8482f286 Move request packets above (before) response ones, this seems to be more natural.
Use a single HTTP submenu instead of two menu items with an entry and a submenu

svn path=/trunk/; revision=13814
2005-03-19 19:06:08 +00:00
Ulf Lamping 6a0bf13c45 Fix capitalization of tree topics
svn path=/trunk/; revision=13813
2005-03-19 18:16:39 +00:00
Lars Roland af529a9fb0 Clean up.
Remove obsolete plugin address table and related files.
Remove related targets from various makefiles.

svn path=/trunk/; revision=13787
2005-03-17 00:10:23 +00:00
Lars Roland 65fb9ef620 Remove support for the old plugin api.
TODO: 
cleanup files in /trunk/plugins

svn path=/trunk/; revision=13782
2005-03-16 23:07:08 +00:00
Guy Harris 3fd9dac8e4 Don't use the result of "format_text()" as a format string argument, as
it might contain %'s; instead, use "%s" as the format string.

svn path=/trunk/; revision=13741
2005-03-13 10:26:56 +00:00
Gerald Combs 0ab3f0586c Sync to recent changes in packet-rtp.h.
svn path=/trunk/; revision=13703
2005-03-10 21:41:24 +00:00
Luis Ontanon 8ee0a507c7 An optimization.
Instead of first running the lexer to create a list of items and then iterate through this items to create the tree, just create the tree from the lexer.


svn path=/trunk/; revision=13696
2005-03-10 17:13:47 +00:00
Luis Ontanon 420323a212 check in the newly generated lexer too
svn path=/trunk/; revision=13687
2005-03-10 06:33:07 +00:00
Luis Ontanon 5a9267805c - changed the lexer to return entire tags, refactored packet-xml.c for those changes
- add markup_declarations and indent on doctype's []
- removed debugging code
- renamed meta_tag into xmlpi


svn path=/trunk/; revision=13686
2005-03-10 06:32:06 +00:00
Olivier Biot e16aebe919 Remove duplicate media types and add XML media types from packet-text-media.c.
NOTE: we need to make sure that all the media types registered in the XML dissector get registered with the line-based text dissector as a fall-back when the XML dissector is disabled.

svn path=/trunk/; revision=13683
2005-03-09 19:52:58 +00:00
Lars Roland 9a1a762922 remove remnants of the old plugin api from dissectors and plugins
svn path=/trunk/; revision=13656
2005-03-07 21:40:29 +00:00
Lars Roland a479e104df set SVN keyword ID
svn path=/trunk/; revision=13654
2005-03-07 20:31:35 +00:00
Lars Roland 7ca59bef69 fix clean target
svn path=/trunk/; revision=13653
2005-03-07 20:25:09 +00:00
Guy Harris 802859d3fd Call the "new-style init" routine for plugins a "register" routine, as
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-07 02:44:41 +00:00
Luis Ontanon e6853d6645 - Add some media types to be dissected as xml
- be more tollerant on how an XML document should look like


svn path=/trunk/; revision=13639
2005-03-06 21:57:25 +00:00
Guy Harris e41c4740c9 Handle XNS IDP socket numbers.
Handle SMB-over-SPP.

svn path=/trunk/; revision=13635
2005-03-06 20:13:58 +00:00
Luis Ontanon 3f3c09bf67 - get rid of some warnings
svn path=/trunk/; revision=13633
2005-03-06 18:30:59 +00:00
Luis Ontanon cdb24872be - use the string id of the node, not the integer id in tick_stat_node
svn path=/trunk/; revision=13632
2005-03-06 18:02:27 +00:00
Luis Ontanon 3bdc6321bd Forgot this in the last checkin
svn path=/trunk/; revision=13630
2005-03-06 16:58:34 +00:00
Luis Ontanon 40132d1fde Add stats_tree and xml plugins to the build process
svn path=/trunk/; revision=13629
2005-03-06 16:49:16 +00:00
Luis Ontanon b134a48c12 oops, no new_plugin_init() now there is
svn path=/trunk/; revision=13620
2005-03-06 03:45:41 +00:00
Luis Ontanon 3bdcc50bda The first part of the XML dissector
currently just a preety-printer with some generic fields


svn path=/trunk/; revision=13619
2005-03-06 03:38:25 +00:00
Luis Ontanon 17dc5ee62e remove plugin_init()
svn path=/trunk/; revision=13613
2005-03-06 02:55:06 +00:00
Luis Ontanon c6694e7354 Change to new_plugin_init()
svn path=/trunk/; revision=13612
2005-03-06 02:53:23 +00:00
Lars Roland 00273300e7 Preparations for dropping the old plugin api.
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-03-05 06:28:10 +00:00
Luis Ontanon 839ef649ed add the http_srv tap a tree to verify load distribution between several http servers and/or virtual hosts
svn path=/trunk/; revision=13566
2005-03-01 19:43:14 +00:00
Luis Ontanon 47cd961ac6 add the http_stats_tree,
a replacement for the current http tap listeners and a tree for requested hosts/uris


svn path=/trunk/; revision=13556
2005-02-28 22:32:16 +00:00
Luis Ontanon eaba6357cb Adapt the stats_tree example plugin to the last changes
svn path=/trunk/; revision=13550
2005-02-28 11:10:49 +00:00
Lars Roland b62cc7c598 add agentx plugin to the clean target and update the old plugin api
svn path=/trunk/; revision=13524
2005-02-25 23:08:53 +00:00
Guy Harris 1199ef4690 Fix the declaration of "dissect_ber_boolean()" to match the current
version.

svn path=/trunk/; revision=13512
2005-02-25 08:32:33 +00:00
Guy Harris 626a91d524 Fix the declaration of "dissect_ber_boolean()" to match the current
version.

svn path=/trunk/; revision=13511
2005-02-25 08:31:51 +00:00
Luis Ontanon 445e030088 added a tree example
svn path=/trunk/; revision=13509
2005-02-25 05:15:18 +00:00
Luis Ontanon dfa295919c Change the plugin to be something useful.
Adds more taps,
tests range nodes
tests pivot nodes


svn path=/trunk/; revision=13503
2005-02-24 22:04:34 +00:00
Luis Ontanon 96c41e1293 - fix a crash in new_avpl_strict_match when the operator avpl was empty
- change the name of the preference mate.config_filename: into mate.config:


svn path=/trunk/; revision=13488
2005-02-24 04:11:31 +00:00
Luis Ontanon 5912813eeb avoid crashing when Debug_Cfg is set and no Payload is given for a Pdu
svn path=/trunk/; revision=13464
2005-02-22 02:16:35 +00:00
Luis Ontanon 9edd68b0e1 ooops,I forgot this one with the last checkin
svn path=/trunk/; revision=13462
2005-02-21 23:29:49 +00:00
Ulf Lamping 2f836c20a8 fix a typo: lenght -> length
This seems to be a "more common" typo, fixed it 13 times throughout the code ...

svn path=/trunk/; revision=13452
2005-02-20 22:36:34 +00:00
Luis Ontanon 9b02a501cd Fixes few things during reinitialization with gtk2 (it doesn't crash anymore),
there are still problems at reinit (gtk2 node->pr warns about an iterator not been OK)

set up propperties of the given files

svn path=/trunk/; revision=13448
2005-02-20 17:43:38 +00:00
Lars Roland b65e9739d2 Don't register mgcp taps,
when we haven't loaded the mgcp plugin.

and

From Alejandro Vaquero:
mgcp support for the voip call analysis tap

svn path=/trunk/; revision=13447
2005-02-20 15:53:11 +00:00
Jörg Mayer bbee792260 Add some svn props
svn path=/trunk/; revision=13442
2005-02-20 05:39:24 +00:00
Luis Ontanon 80ec76c622 Changed the GopTree in GogDef and GogExtra from a boolean to a string
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-20 02:21:04 +00:00
Luis Ontanon 59ef46c037 add mms.mate to the examples collection
svn path=/trunk/; revision=13430
2005-02-19 03:22:24 +00:00
Luis Ontanon e2e5536fef In order to avoid a crash at reanalize_gop(), do not accept a GogKey where the Gop has not yet being declared.
svn path=/trunk/; revision=13429
2005-02-19 03:10:50 +00:00
Luis Ontanon c2f7b07a5a Step the version number of the plugin
svn path=/trunk/; revision=13428
2005-02-18 22:43:12 +00:00
Luis Ontanon 2cd67ce468 Adds Payload AVP to PduDef AVPLs simmetric to the Transport AVP
allows to fetch fields also from ranges that are the payload of the Proto

svn path=/trunk/; revision=13427
2005-02-18 22:33:16 +00:00
Luis Ontanon 9151efab45 Get rid of some useless lines from the last patch
svn path=/trunk/; revision=13424
2005-02-18 20:11:30 +00:00
Luis Ontanon f7a7af313d Add a pointer to the start frame of each gop in the gog's tree
svn path=/trunk/; revision=13423
2005-02-18 20:02:40 +00:00
Luis Ontanon 99f52419d5 two fixes in config loading:
- do not accept GopDefs for non existent pdus Pdu
  - GogExtra "no For" instead of "no Name" 


svn path=/trunk/; revision=13422
2005-02-18 18:40:25 +00:00
Luis Ontanon f99b87c519 An example stats_tree plugin using pinfo as its only data source
I'm not checking changes to the Makefiles yet.

svn path=/trunk/; revision=13415
2005-02-16 14:26:27 +00:00
Guy Harris 6616a3770c Make the "maintainer-clean" rules get rid of some additional generated
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-14 20:33:57 +00:00
Luis Ontanon f152359ac3 avoid freeing the gop_key more than once and do not reregister the tap at every reload
svn path=/trunk/; revision=13382
2005-02-11 00:04:25 +00:00
Luis Ontanon 24b8161e82 mate runtime did not get initialized when configured after loading a capture file
svn path=/trunk/; revision=13381
2005-02-10 17:14:31 +00:00
Luis Ontanon f660b69b4f add "mate" as a protocol to its tree
svn path=/trunk/; revision=13380
2005-02-10 16:55:08 +00:00
Luis Ontanon e9786bf1c3 cleanup matelib and mate examples
svn path=/trunk/; revision=13378
2005-02-10 16:23:52 +00:00
Guy Harris 162b187242 Use tcp_dissect_pdus().
svn path=/trunk/; revision=13377
2005-02-10 08:52:35 +00:00
Guy Harris 4e21355eb6 Use VB_ rather than V_ for the VarBind types, to avoid a collision with
V_INT in oleauto.h in Windows.

svn path=/trunk/; revision=13376
2005-02-10 08:15:35 +00:00
Guy Harris ba7e8f3b81 From Oleg Terletsky: AgentX support.
svn path=/trunk/; revision=13372
2005-02-10 06:36:21 +00:00
Lars Roland ec9ca01616 Move the following files from /trunk to /trunk/epan:
asn1.[ch]
follow.[ch]
ptvcursor.[ch]
reassemble.[ch]
xmlstub.[ch]

fix #include statements accordingly.

svn path=/trunk/; revision=13366
2005-02-09 23:38:00 +00:00
Anders Broman 30a00ead93 From Alejandro Vaquero :
Find attached a patch for "Voip analysis" to get the LRQ/LCF/LRJ messages included in the H323 calls for Gatekeeper to Gatekeeper configurations

svn path=/trunk/; revision=13344
2005-02-07 20:30:27 +00:00
Anders Broman bc04baef42 From LEGO:
- 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-07 08:54:24 +00:00
Anders Broman c3440553eb From: LEGO
- 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-06 20:37:02 +00:00
Gerald Combs d7ad33dc51 Fix a couple of distcheck problems:
Update conversation_new and find_conversation in plugin_api_list.c and
associated files.

Add packet-dcerpc-butc.h to the distribution.

svn path=/trunk/; revision=13288
2005-02-04 15:22:25 +00:00
Guy Harris 428475c8a8 HFILL can't be used to initialize at run time.
svn path=/trunk/; revision=13286
2005-02-04 10:32:28 +00:00
Jörg Mayer d01c1ddaef albert chin:
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-02-04 00:22:00 +00:00
Anders Broman d86f7e48c4 From Jon Ringle:
1) Added a setup_frame parameter to conversation_t
2) Used the conversation_t next to maintain a list of conversations with the 
same src/dest tuple but different setup_frame number.
3) Changed the signature of find_conversation() and conversation_new() to pass 
in the frame number.
4) Adjusted packet-sdp to select RTP conversation if both m=audio and m=image 
are present, and T.38 conversation if only m=image is present. I expect that 
RTP/T.38 dissecting to be better, but I don't have a way to generate T.38 
packets.

svn path=/trunk/; revision=13245
2005-02-02 20:09:00 +00:00
Anders Broman 8f749c91cc From Jon Ringle:
1) Added a setup_frame parameter to conversation_t
2) Used the conversation_t next to maintain a list of conversations with the 
same src/dest tuple but different setup_frame number.
3) Changed the signature of find_conversation() and conversation_new() to pass 
in the frame number.
4) Adjusted packet-sdp to select RTP conversation if both m=audio and m=image 
are present, and T.38 conversation if only m=image is present. I expect that 
RTP/T.38 dissecting to be better, but I don't have a way to generate T.38 
packets.

svn path=/trunk/; revision=13244
2005-02-02 20:08:36 +00:00
Ulf Lamping b3b3f5cbcc use MATE (not mate) for protocol name and protocol tree
svn path=/trunk/; revision=13191
2005-01-28 23:24:04 +00:00
Lars Roland 4bf362f863 A new patch for mate from Luis Ontanon:
- move mate_packet into packet-mate.c and remove it frome mate.h
  - supressed some warnings

svn path=/trunk/; revision=13190
2005-01-28 13:53:14 +00:00
Guy Harris d90ba1a144 From Yoshihiro Oyama: get rid of _U_s in prototype declarations that
lack variable names.

svn path=/trunk/; revision=13188
2005-01-28 10:15:03 +00:00
Lars Roland f7a9907702 From Luis Ontanon for Mate:
- supress some solaris compiler warnings
- adds GopExpiration, GopIdleTimeout and GopLifetime parameters

svn path=/trunk/; revision=13154
2005-01-21 19:11:59 +00:00
Lars Roland 76f3c8df66 Add mate to the clean and distclean target
svn path=/trunk/; revision=13094
2005-01-17 22:17:09 +00:00
Guy Harris 1dd7bd0b38 Add MATE to the list of plugins.
svn path=/trunk/; revision=13093
2005-01-17 22:01:38 +00:00
Jörg Mayer 491ceb3905 Some trivial warning fixes in mate
svn path=/trunk/; revision=13073
2005-01-16 15:45:21 +00:00
Guy Harris dc0932f4a8 Set fp to NULL before "load_loal_error()" is called, so we don't pass an
uninitalized variable to it.

svn path=/trunk/; revision=13054
2005-01-15 23:34:29 +00:00
Jörg Mayer ec6c844387 Add mate to the build process (plus a few whitespace changes)
svn path=/trunk/; revision=13051
2005-01-15 18:39:44 +00:00
Guy Harris 6775bd5557 Use -1 as a length value for "to the end of the tvbuff".
svn path=/trunk/; revision=13046
2005-01-15 10:39:49 +00:00
Guy Harris 673665ae6c Welcome to the wonderful world of "make", wherein a command in a set of
make rules must be indented with one or more tabs - no spaces, just
tabs.  I seem to remember a Stu Feldman quote somewhere in which he
apologized for that requirement....

svn path=/trunk/; revision=13011
2005-01-13 01:16:53 +00:00
Ulf Lamping 80d0151d6c add some of the DCE/RPC functions to the plugin API
svn path=/trunk/; revision=13010
2005-01-12 21:44:53 +00:00
Ulf Lamping 617c848092 cleanup old files before generating xyzzy target (it drove me almost crazy to find out the right way to build this target correctly, so be a bit more "automatically" the next time)
svn path=/trunk/; revision=13008
2005-01-12 21:38:09 +00:00
Ulf Lamping 24c519ca86 clarify text and describe libethereal.def
Could someone have a look at this, as I'm not 100% sure if it's correct.

svn path=/trunk/; revision=13005
2005-01-12 21:16:53 +00:00
Anders Broman e44fae7226 From Tomer Shani :register_dissector call
svn path=/trunk/; revision=13004
2005-01-12 06:00:31 +00:00
Lars Roland 2b88200a3a One more patch for mate:
- 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-10 02:37:19 +00:00
Guy Harris 6acf9106dc Fix the signature of proto_register_subtree_array().
svn path=/trunk/; revision=12989
2005-01-07 22:20:28 +00:00
Guy Harris 857aceb2d8 Fix the signature of proto_register_subtree_array().
svn path=/trunk/; revision=12988
2005-01-07 22:19:44 +00:00
Lars Roland 603c9edd83 From Luis Ontanon:
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-07 18:07:18 +00:00
Lars Roland ccf44f7fb1 From Luis Ontanon:
Fix some MSVC warnings in MATE

svn path=/trunk/; revision=12969
2005-01-06 23:21:10 +00:00
Lars Roland b7642931ad From Luis Ontanon:
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
2005-01-06 12:39:54 +00:00
Guy Harris 8926d08a04 From Chris Maynard: free a string obtained with "tvb_get_string()".
svn path=/trunk/; revision=12958
2005-01-05 10:23:26 +00:00
Guy Harris 7e58bd88ca Cast the values passed to the <ctype.h> macros so as to avoid
sign-extending 8-bit characters.

svn path=/trunk/; revision=12922
2005-01-02 00:23:50 +00:00
Guy Harris 3a8f2634bb When computing a hash value based on, among other things, a
conversation, use the "index" member of the conversation_t - that lets
you get a value that fits in a guint, but without provoking the warning
you might get from a compiler if you cast a pointer to the conversation
to a guint.

svn path=/trunk/; revision=12916
2005-01-01 23:21:05 +00:00
Lars Roland 9e0391990e Update some function declarations in the plugin api
svn path=/trunk/; revision=12903
2004-12-31 14:53:17 +00:00
Lars Roland 2ce1e037f6 From Luis Ontanon for Mate:
- 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-31 14:27:38 +00:00
Guy Harris 28bdc16f36 We now require gint64/guint64 support to build Ethereal, so get rid of
the #ifdefs.

Don't use "%ll[doux]" - not all platforms use "ll" as the length
specifier for 64-bit integers in formats.  Use PRI[doux]64 instead, to
handle platforms where some other length specifier is used.

svn path=/trunk/; revision=12874
2004-12-30 23:19:17 +00:00
Guy Harris 27db7b5c30 Regenerate.
svn path=/trunk/; revision=12870
2004-12-30 18:34:11 +00:00
Guy Harris cd4a738b63 Fix the declaration of "tap_queue_packet()" to match its new signature.
svn path=/trunk/; revision=12869
2004-12-30 18:33:14 +00:00
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