aboutsummaryrefslogtreecommitdiffstats
path: root/ethereal_gen.py
AgeCommit message (Collapse)AuthorFilesLines
2005-10-281. replace "and" with "&&" in ethereal_gen.py:2103etxrab1-1/+1
2. add make_printable_string in libethereal.def git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16351 f5534014-38df-0310-8fa8-9805f1628bb7
2005-08-11From W. Borgert:etxrab1-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". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15295 f5534014-38df-0310-8fa8-9805f1628bb7
2005-06-25In generated GIOP dissectors, don't set the Protocol or Info columns, orguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14750 f5534014-38df-0310-8fa8-9805f1628bb7
2005-06-24There's no guarantee that a reply with a reply status of USER_EXCEPTIONguy1-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.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14743 f5534014-38df-0310-8fa8-9805f1628bb7
2005-06-19Get rid of the include of "snprintf.h", as g_snprintf()" should be used.guy1-10/+6
Add _U_s to reduce the number of warnings. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14706 f5534014-38df-0310-8fa8-9805f1628bb7
2005-06-01From Paolo Frigo :etxrab1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14514 f5534014-38df-0310-8fa8-9805f1628bb7
2005-03-09From Jaap Keuter: update ethereal_gen.py to generate new-style pluginguy1-18/+9
dissectors. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13681 f5534014-38df-0310-8fa8-9805f1628bb7
2005-03-07Call the "new-style init" routine for plugins a "register" routine, asguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13644 f5534014-38df-0310-8fa8-9805f1628bb7
2005-01-15Use -1 as a length value for "to the end of the tvbuff".guy1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13046 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18Set the svn:eol-style property on all text files to "native", so thatguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11400 f5534014-38df-0310-8fa8-9805f1628bb7
2004-02-20Frederic Peters: handle ulong and ushortjmayer1-1/+17
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10132 f5534014-38df-0310-8fa8-9805f1628bb7
2002-08-02Replace the types from sys/types.h and netinet/in.h by their glib.hjmayer1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5932 f5534014-38df-0310-8fa8-9805f1628bb7
2002-07-17From Joerg Mayer:guy1-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()". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5889 f5534014-38df-0310-8fa8-9805f1628bb7
2002-05-06Get rid of "template_main_dissector_switch_msgtype_end", and get rid ofguy1-27/+1
the unused "offset_saved" variable, as per comments by Frank Singleton. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5408 f5534014-38df-0310-8fa8-9805f1628bb7
2002-05-06From Frank Singleton: fix for the handling of enum types.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5407 f5534014-38df-0310-8fa8-9805f1628bb7
2002-05-04In the generated code, mark possibly-unused arguments as such.guy1-6/+10
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5389 f5534014-38df-0310-8fa8-9805f1628bb7
2002-04-19Bug fix from Frank Singleton.guy1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5205 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-23From Frank Singleton:guy1-185/+7
- Cleanup of unused code after implementing recursion - Fix some spelling errors. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4603 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-21From Frank Singleton:guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4589 f5534014-38df-0310-8fa8-9805f1628bb7
2002-01-21Include files from the "epan" directory and subdirectories thereof withguy1-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/"). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4587 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-19From Bernd Becker: don't clear COL_INFO until the GIOP subdissecrors areguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4424 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-17Now that the GIOP dissector sets "pinfo->current_proto" before callingguy1-3/+1
subdissectors, the subdissectors don't have to set it themselves. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4417 f5534014-38df-0310-8fa8-9805f1628bb7
2001-12-17From Frank Singleton: change ethereal_gen.py to match the currentguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4415 f5534014-38df-0310-8fa8-9805f1628bb7
2001-11-19From Frank Singleton:guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4227 f5534014-38df-0310-8fa8-9805f1628bb7
2001-10-31Sigh. Well, if you make the function declarations external, that meansguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4117 f5534014-38df-0310-8fa8-9805f1628bb7
2001-10-25Update from Frank Singleton:guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4076 f5534014-38df-0310-8fa8-9805f1628bb7
2001-10-18From Frank Singleton: catch attempts to use recursive unions orguy1-2/+10
structures. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4040 f5534014-38df-0310-8fa8-9805f1628bb7
2001-10-12From Frank Singleton:guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@4020 f5534014-38df-0310-8fa8-9805f1628bb7
2001-08-11Update from Frank Singleton toguy1-9/+222
- Add support for CORBA IDL "unions" - Update TODO - Improve "Operation Return Value" in genOperationReply() git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3833 f5534014-38df-0310-8fa8-9805f1628bb7
2001-08-03Update from Frank Singleton:guy1-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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3813 f5534014-38df-0310-8fa8-9805f1628bb7
2001-07-27Updates from Frank Singleton:guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3795 f5534014-38df-0310-8fa8-9805f1628bb7
2001-07-20Update from Frank Singleton to put the right file name in theguy1-3/+2
introductory comment. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3755 f5534014-38df-0310-8fa8-9805f1628bb7
2001-07-20Do not put zero-length arrays into the generated dissector; GCC may letguy1-1/+5
you get away with them, but other compilers, e.g. Microsoft Visual C++, don't. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3752 f5534014-38df-0310-8fa8-9805f1628bb7
2001-07-16Changes to generate plugins instead of standard dissectors.oabad1-2/+40
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3732 f5534014-38df-0310-8fa8-9805f1628bb7
2001-07-12Patch to allow the creation of "User Exception decoding" code fromoabad1-29/+301
Frank Singleton. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3700 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-29From Frank Singleton: when GIOP sub-dissectors register themselves, haveguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3623 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-27Improved support for CORBA IDL "fixed" types, and other updates, fromguy1-37/+66
Frank Singleton. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3616 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-18From Frank Singleton: add code generation support for IDL array types.guy1-104/+195
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3570 f5534014-38df-0310-8fa8-9805f1628bb7
2001-06-18Support for protocols running atop GIOP, from Frank Singleton.guy1-0/+1521
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@3563 f5534014-38df-0310-8fa8-9805f1628bb7