aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal_gen.py
AgeCommit message (Collapse)AuthorFilesLines
2006-05-28Move to toolsAnders Broman1-2628/+0
svn path=/trunk/; revision=18233
2006-05-22ethereal->wireshark updatesRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18206
2006-05-21name changeRonnie Sahlberg1-1/+1
svn path=/trunk/; revision=18197
2006-05-10Properly use PRIu64, and (properly) use PRId64 rather than PRIo64 toGuy Harris1-2/+2
print longlong's. svn path=/trunk/; revision=18121
2006-04-19And the .py script Anders Broman1-235/+29
svn path=/trunk/; revision=17912
2006-04-19From W.Borgert:Anders Broman1-8/+4
this patch leads to a more condensed representation of strings in the GIOP module, e.g. in Parlay instead of having: length = 42 TpAddress_AddrString = sip:anyone@somebody.thehost.whose.es:5432 you have now: TpAddress_AddrString (42) = sip:anyone@somebody.thehost.whose.es:5432 The former was not as concise, if you have a lot of strings (as in CosNaming) and it was not clear whether the protocol had a explicit field named "length" in the IDL. svn path=/trunk/; revision=17902
2006-04-17From W. Borgert:Anders Broman1-4/+6
- Regenerated files. - Use .sort() on one or two of the lists in ethereal_gen.py to make generated files more diff-friendly in the future. svn path=/trunk/; revision=17885
2006-04-16From W. Borgert:Anders Broman1-5/+5
the attached patch enables the explicit GIOP dissection. This fixes erronous decoding, if methods of two different CORBA interfaces have the same name, which happens frequently. The generated GIOP plugins (CosEvent, CosNaming, Parlay, Tango) need to be re-generated to make use of the fix. svn path=/trunk/; revision=17880
2005-10-281. replace "and" with "&&" in ethereal_gen.py:2103Anders Broman1-1/+1
2. add make_printable_string in libethereal.def svn path=/trunk/; revision=16351
2005-08-11From W. Borgert:Anders Broman1-1/+26
three trivial corrections for the GIOP dissector: - allow filtering GIOP exceptions, e.g. "giop.replystatus = 2" or "giop.exceptionid matches MyError", older patch at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=314835 - show IDLs sequence<octet> more compact, not one line per octet, older patch at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=314836 - decode _is_a requests and replies, older patch at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=314871 With a change to not create a malformed packet in the "stub data". svn path=/trunk/; revision=15295
2005-06-25In generated GIOP dissectors, don't set the Protocol or Info columns, orGuy Harris1-401/+423
create the top-level protocol tree item, until the dissector accepts the packet as being for it. "strcmp()" isn't a Boolean; don't treat it as such. Get rid of trailing white space. svn path=/trunk/; revision=14750
2005-06-24There's no guarantee that a reply with a reply status of USER_EXCEPTIONGuy Harris1-2/+4
includes an exception ID - the sequence length could be zero. When generating a dissector for a USER_EXCEPTION reply, return FALSE if there's no exception ID. (And since we're now always using the header pointer argument, un-_U_ize it.) svn path=/trunk/; revision=14743
2005-06-19Get rid of the include of "snprintf.h", as g_snprintf()" should be used.Guy Harris1-10/+6
Add _U_s to reduce the number of warnings. svn path=/trunk/; revision=14706
2005-06-01From Paolo Frigo :Anders Broman1-1/+1
A new plugin based on GIOP to recognize Tango packets. TANGO is an object oriented distributed control system based on CORBA. Tango is being actively developed as a collaborative effort among the ESRF, Soleil, Elettra and ALBA synchrotron facilities. TANGO is an open source project hosted by SourceForge. svn path=/trunk/; revision=14514
2005-03-09From Jaap Keuter: update ethereal_gen.py to generate new-style pluginGuy Harris1-18/+9
dissectors. svn path=/trunk/; revision=13681
2005-03-07Call the "new-style init" routine for plugins a "register" routine, asGuy Harris1-6/+6
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-01-15Use -1 as a length value for "to the end of the tvbuff".Guy Harris1-1/+1
svn path=/trunk/; revision=13046
2004-07-18Set the svn:eol-style property on all text files to "native", so thatGuy Harris1-1/+1
they have LF at the end of the line on UN*X and CR/LF on Windows; hopefully this means that if a CR/LF version is checked in on Windows, the CRs will be stripped so that they show up only when checked out on Windows, not on UN*X. svn path=/trunk/; revision=11400
2004-02-20Frederic Peters: handle ulong and ushortJörg Mayer1-1/+17
svn path=/trunk/; revision=10132
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hJörg Mayer1-9/+1
equivalents for the toplevel directory. The removal of winsock2.h will hopefully not cause any problems under MSVC++, as those files using struct timeval still include wtap.h, which still includes winsock2.h. svn path=/trunk/; revision=5932
2002-07-17From Joerg Mayer:Guy Harris1-6/+1
dftest.c: Remove #if-0-ed includes packet-ieee80211.c, packet-wtls.c, packet-afp.c, packet-wsp.c, packet-wtp.c, ethereal_gen.py: Remove redundant include varargs (already in snprintf.h, and required only for snprintf.h) Remove unused include of snprintf.h from files not using "snprintf()". svn path=/trunk/; revision=5889
2002-05-06Get rid of "template_main_dissector_switch_msgtype_end", and get rid ofGuy Harris1-27/+1
the unused "offset_saved" variable, as per comments by Frank Singleton. svn path=/trunk/; revision=5408
2002-05-06From Frank Singleton: fix for the handling of enum types.Guy Harris1-2/+2
svn path=/trunk/; revision=5407
2002-05-04In the generated code, mark possibly-unused arguments as such.Guy Harris1-6/+10
svn path=/trunk/; revision=5389
2002-04-19Bug fix from Frank Singleton.Guy Harris1-2/+2
svn path=/trunk/; revision=5205
2002-01-23From Frank Singleton:Guy Harris1-185/+7
- Cleanup of unused code after implementing recursion - Fix some spelling errors. svn path=/trunk/; revision=4603
2002-01-21From Frank Singleton:Guy Harris1-14/+429
- Code generation handles recursive Structs - Code generation handle recursive Unions - Improve readability of code generation. Structs and Unions now have their own helper functions generated. svn path=/trunk/; revision=4589
2002-01-21Include files from the "epan" directory and subdirectories thereof withGuy Harris1-3/+3
"epan/..." pathnames, so as to avoid collisions with header files in any of the directories in which we look (e.g., "proto.h", as some other package has its own "proto.h" file which it installs in the top-level include directory). Don't add "-I" flags to search "epan", as that's no longer necessary (and we want includes of "epan" headers to fail if the "epan/" is left out, so that we don't re-introduce includes lacking "epan/"). svn path=/trunk/; revision=4587
2001-12-19From Bernd Becker: don't clear COL_INFO until the GIOP subdissecrors areGuy Harris1-3/+8
fixed to put something interesting there, fix the GIOP dissector to restore the Protocol column if no heuristic dissector succeeded, and fix up the plugin GIOP subdissectors to use "col_set_str()" to set the Protocol column. svn path=/trunk/; revision=4424
2001-12-17Now that the GIOP dissector sets "pinfo->current_proto" before callingGuy Harris1-3/+1
subdissectors, the subdissectors don't have to set it themselves. svn path=/trunk/; revision=4417
2001-12-17From Frank Singleton: change ethereal_gen.py to match the currentGuy Harris1-3/+6
calling sequence for "check_col()" and "col_add_str()". While we're at it, change it to use "col_set_str()" rather than "col_add_str()", and to clear the Info column as well. svn path=/trunk/; revision=4415
2001-11-19From Frank Singleton:Guy Harris1-3/+4
- accept struct and union lists passed in via ethereal_be.py - these lists are unused until I add the templates for struct and union helper functions. So code generation is unchanged for the moment. svn path=/trunk/; revision=4227
2001-10-31Sigh. Well, if you make the function declarations external, that meansGuy Harris1-1/+3
that they're external when the plugin is compiled, and there's no definition to satisfy the extern, so plugins fail to compile. Add a "plugins/plugin_api_defs.h" header file that defines them, and include that in one (and only one) source file for a particular plugin. svn path=/trunk/; revision=4117
2001-10-25Update from Frank Singleton:Guy Harris1-8/+23
- Handle "short" as a union discriminant type - Handle case where union discriminant may be a typedef - Change integer template to long template - Initial code for \n and \t as union case labels. svn path=/trunk/; revision=4076
2001-10-18From Frank Singleton: catch attempts to use recursive unions orGuy Harris1-2/+10
structures. svn path=/trunk/; revision=4040
2001-10-12From Frank Singleton:Guy Harris1-14/+103
Added some functionality to idl2eth to allow C code generation and display of CORBA IDL Enum's as symbolic values, along side the numerical value currently being displayed. svn path=/trunk/; revision=4020
2001-08-11Update from Frank Singleton toGuy Harris1-9/+222
- Add support for CORBA IDL "unions" - Update TODO - Improve "Operation Return Value" in genOperationReply() svn path=/trunk/; revision=3833
2001-08-03Update from Frank Singleton:Guy Harris1-3/+6
Improve Template and Description for Attribute delegation code _get_xxx_at() should only be called for Reply with NO_EXCEPTION _set_xxx_at() should only be called for Request svn path=/trunk/; revision=3813
2001-07-27Updates from Frank Singleton:Guy Harris1-14/+303
- Add support for CORBA attributes - Add support for included files, not just main file - Fix sequence variable name generation. - Add support functions for code warnings etc. i.e.: TODO and WARNING functions, to highlight if we don't [yet] support a particular CORBA type. svn path=/trunk/; revision=3795
2001-07-20Update from Frank Singleton to put the right file name in theGuy Harris1-3/+2
introductory comment. svn path=/trunk/; revision=3755
2001-07-20Do not put zero-length arrays into the generated dissector; GCC may letGuy Harris1-1/+5
you get away with them, but other compilers, e.g. Microsoft Visual C++, don't. svn path=/trunk/; revision=3752
2001-07-16Changes to generate plugins instead of standard dissectors.Olivier Abad1-2/+40
svn path=/trunk/; revision=3732
2001-07-12Patch to allow the creation of "User Exception decoding" code fromOlivier Abad1-29/+301
Frank Singleton. svn path=/trunk/; revision=3700
2001-06-29From Frank Singleton: when GIOP sub-dissectors register themselves, haveGuy Harris1-7/+9
them supply a protocol ID, and have the code that calls the subdissectors check if the protocol is enabled and, if it isn't, not call the sub-dissector. svn path=/trunk/; revision=3623
2001-06-27Improved support for CORBA IDL "fixed" types, and other updates, fromGuy Harris1-37/+66
Frank Singleton. svn path=/trunk/; revision=3616
2001-06-18From Frank Singleton: add code generation support for IDL array types.Guy Harris1-104/+195
svn path=/trunk/; revision=3570
2001-06-18Support for protocols running atop GIOP, from Frank Singleton.Guy Harris1-0/+1521
svn path=/trunk/; revision=3563