Commit Graph

38 Commits

Author SHA1 Message Date
Michael Mann a58c986f62 Update generated DCE/RPC dissectors.
Now all generated dissectors can successfully compile.

Change-Id: I74728926915d5a9f1694cc49c753b80f213df767
Reviewed-on: https://code.wireshark.org/review/2598
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-09-19 13:07:11 +00:00
Alexis La Goutte f2dfc39d94 Continue to remove $Id$ from top of file
(Using sed : sed -i '/^ \t$Id\$/,+0 d') (tab before $Id$)

Also modify generator (NDR.pm)

Change-Id: I348a1d129d1d1320bd80b428038ea5ed291d6ca8
Reviewed-on: https://code.wireshark.org/review/878
Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-03-31 18:29:18 +00:00
Michael Mann e2df7c83cb Move dceprc_procedure_name from packet_info to dcerpc_info. Doesn't appear to be "used" by dissectors, just stored (for help in debugging?).
svn path=/trunk/; revision=53552
2013-11-24 20:55:55 +00:00
Jörg Mayer 29fef43b40 With the updated pidl it is now possible to generate several
of the dcerpc dissectors again. Commit those of the generated
onces that actually compile.

svn path=/trunk/; revision=53122
2013-11-06 22:55:17 +00:00
Michael Mann 22760b2d2a Remove pinfo->private_data from DCERPC dissectors and instead have dcerpc_info* infomation be passed in as a function parameter. Bug 9387 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9387)
All "generated" source was manually modified (with the power of search/replace), but I believe the "source input" files have been adjusted (checked into revs 53098 and 53099) to reflect the necessary changes (with possible whitespace formatting differences).

The Microsoft compiler doesn't flag "unused function parameters", so I apologize in advance if I may have missed a few.  The "dcerpc_info* di" parameter is used in almost every function.

svn path=/trunk/; revision=53100
2013-11-06 14:31:29 +00:00
Michael Mann 87e55cb9e0 Sync with latest SAMBA PIDL source per http://www.wireshark.org/lists/wireshark-dev/201310/msg00217.html
Didn't integrate
0010-frsrpc-Regenerate-frsrpc-due-to-changes-in-the-pidl-.patch
0016-Regenerate-the-dnserver.patch

due to compilation errors on Windows.

svn path=/trunk/; revision=52744
2013-10-21 19:41:54 +00:00
Michael Mann 0334c5b425 Remove check_col from generated DCE/RPC dissectors. Bug 8804 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8804).
I still couldn't figure out how to generate the source, so I made the modifications to the generated dissectors "manually" (search/replace tool in VS) that would match the "PIDL source" included here.

I will be sending the "PIDL source" (non dissector files) to the samba team.

svn path=/trunk/; revision=52313
2013-10-01 14:45:03 +00:00
Jeff Morriss 2552c750e5 We always HAVE_CONFIG_H so don't bother checking whether we have it or not.
svn path=/trunk/; revision=45017
2012-09-20 02:03:38 +00:00
Jeff Morriss 554ed113a9 Add an SVN Id to these PIDL-generated dissectors. A patch to PIDL will be sent upstream to the Samba developers.
svn path=/trunk/; revision=34713
2010-10-30 14:35:05 +00:00
Guy Harris 8e236e55de For fields of type FT_ABSOLUTE_TIME, have the "display" value be one of
ABSOLUTE_TIME_LOCAL or ABSOLUTE_TIME_UTC, indicating whether to display
the date/time in local time or UTC. (int)ABSOLUTE_TIME_LOCAL ==
(int)BASE_NONE, so there's no source or binary compatiblity issue,
although we might want to eliminate BASE_NONE at some point and have the
BASE_ values used with integral types start at 0, so that you can't
specify BASE_NONE for an integral field.

svn path=/trunk/; revision=31319
2009-12-19 03:17:44 +00:00
Stig Bjørlykke b228488bc0 From Kovarththanan Rajaratnam via bug 3548:
(1) Trailing/leading spaces are removed from 'name's/'blurb's
(2) Duplicate 'blurb's are replaced with NULL
(3) Empty ("") 'blurb's are replaced with NULL
(4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields
    for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME,
    FT_PROTOCOL, FT_STRING and FT_STRINGZ field types
(5) Only allow non-zero value for 'display' if 'bitmask' is non-zero

svn path=/trunk/; revision=28770
2009-06-18 21:30:42 +00:00
Ronnie Sahlberg b183abad3e update the conformance file for winreg to specify that the string for
OpenKey keynames should be saved/stored in the dcv structure.

this now makes all policy handles generated by the OpenKey function show
OpenKey(/path/keyname)
for all such policyhandles


svn path=/trunk/; revision=21720
2007-05-07 19:23:59 +00:00
Ronnie Sahlberg e19938fb0b using latest version of pidl, which includes the required pragmas and
which also handles TYPE and PARAM_VALUE for strings,   regenerate winreg 
after using hte conformance file to prettify how and where strings are 
to be used to decorate the summary line and the dissection tree


svn path=/trunk/; revision=21717
2007-05-07 18:35:28 +00:00
Ulf Lamping 0bea95c152 disable warning 4005 *again*
svn path=/trunk/; revision=21688
2007-05-05 10:11:06 +00:00
Ronnie Sahlberg d21de3799a use the latest version of PIDL to regenerate winreg using the new TYPE
conformance file directive to replace winreg_String with our own code.

PARAM_VALUE does not yet work for this however which needs to looked 
into


svn path=/trunk/; revision=21669
2007-05-03 19:58:04 +00:00
Ronnie Sahlberg 74e19c696e regenerate the dissectors with an even newer patched version of pidl to add two more pragmas
you need this patch ontop of svn pidl to regenerate the files :

Index: lib/Parse/Pidl/Wireshark/NDR.pm
===================================================================
--- lib/Parse/Pidl/Wireshark/NDR.pm     (revision 22005)
+++ lib/Parse/Pidl/Wireshark/NDR.pm     (working copy)
@@ -916,6 +916,14 @@
        $res{headers} .= "#ifdef HAVE_CONFIG_H\n";
        $res{headers} .= "#include \"config.h\"\n";
        $res{headers} .= "#endif\n\n";
+
+       $res{headers} .= "#ifdef _MSC_VER\n";
+       $res{headers} .= "#pragma warning(disable:4005)\n";
+       $res{headers} .= "#pragma warning(disable:4013)\n";
+       $res{headers} .= "#pragma warning(disable:4018)\n";
+       $res{headers} .= "#pragma warning(disable:4101)\n";
+       $res{headers} .= "#endif\n\n";
+
        $res{headers} .= "#include <glib.h>\n";
        $res{headers} .= "#include <string.h>\n";
        $res{headers} .= "#include <epan/packet.h>\n\n";



svn path=/trunk/; revision=21262
2007-03-29 02:22:23 +00:00
Ronnie Sahlberg 96f0c77591 regenerate these dissectors using a patched pidl to add some extra pragmas to keep ms compilers happy
the pidl patch required :
Index: lib/Parse/Pidl/Wireshark/NDR.pm
===================================================================
--- lib/Parse/Pidl/Wireshark/NDR.pm     (revision 22005)
+++ lib/Parse/Pidl/Wireshark/NDR.pm     (working copy)
@@ -916,6 +916,14 @@
        $res{headers} .= "#ifdef HAVE_CONFIG_H\n";
        $res{headers} .= "#include \"config.h\"\n";
        $res{headers} .= "#endif\n\n";
+
+       $res{headers} .= "#ifdef _MSC_VER\n";
+       $res{headers} .= "#pragma warning(disable:4005)\n";
+       $res{headers} .= "#pragma warning(disable:4013)\n";
+       $res{headers} .= "#endif\n\n";
+
+
+
        $res{headers} .= "#include <glib.h>\n";
        $res{headers} .= "#include <string.h>\n";
        $res{headers} .= "#include <epan/packet.h>\n\n";



svn path=/trunk/; revision=21260
2007-03-29 01:38:59 +00:00
Ronnie Sahlberg f0756aee6e update winreg to the latest idl
svn path=/trunk/; revision=21256
2007-03-29 00:26:35 +00:00
Ronnie Sahlberg 0ee2141ab0 regenerate winreg using the latest pidl. almost all warnings are now gone
svn path=/trunk/; revision=21255
2007-03-29 00:15:41 +00:00
Ulf Lamping a66bf7f559 as Gisle Vanem noted that MingW doesn't "like" the #pragmas:
change #ifdef _WIN32 -> #ifdef _MSC_VER around pragma warnings

svn path=/trunk/; revision=21228
2007-03-27 21:09:34 +00:00
Ulf Lamping c2408435bc fix the remaining MSVC warnings by setting individual #pragma(warning:disable) settings - this is very certainly not the way to go, but the way to prevent additional warnings rushing in ...
svn path=/trunk/; revision=21221
2007-03-27 02:14:56 +00:00
Ronnie Sahlberg 22ba8c3ad5 add dissection of the WINREG specific bits in the accessmask for WINREG objects
svn path=/trunk/; revision=20968
2007-03-04 01:15:44 +00:00
Ronnie Sahlberg aa3d3793b7 add new PIDL friendly helpers for dissection of integer types.
these new helpers take a parameter that can be used to decorate the tree and summary line (when this parameter is acted upon/implemented in the code inside the helpers)

WINREG was regenerated using a patched version of PIDL. Mainline version of PIDL does not yet have this patch applied.



svn path=/trunk/; revision=20918
2007-02-25 01:34:41 +00:00
Ronnie Sahlberg 4fb922c2c8 regenerate WINREG as a test with the some new PIDL enhancements to show ithe name of the iprocedure a policy handle was created in.
also
fix some mistakes in the conformance file for when handles are opened/created


svn path=/trunk/; revision=20896
2007-02-21 20:23:44 +00:00
Ronnie Sahlberg 83c66c05e9 add a PIDL specific helper for managing dissection of policy handles.
let this helper take a parameter to describe how the policy handle should be
managed (is this an open, close ?) to improve policy handle tracking.
(centralizing to a single function of code makes other changes easier)

create defines to indicate OPEN/CLOSE and use them as a start/test in the winreg conformance file.



svn path=/trunk/; revision=20872
2007-02-20 09:01:50 +00:00
Ronnie Sahlberg 0dfc6a0bf7 changes to comments generated for winreg using the latest svn of pidl
pidl will probably be in flux for a short while and this checkin is to reduce the some noice generated to winreg while other changes are implemented.

this change only affects c-code comments in the pidl generated code


svn path=/trunk/; revision=20871
2007-02-20 08:05:26 +00:00
Ronnie Sahlberg 1401a27b06 the policy handles created/opened in CreateKey and OpenKey are now called "handle" and not "new_handle"
update the conformance file so the correct functions are loaded with the correct PARAM value to signal "in this frame, this policy handle was created"



svn path=/trunk/; revision=20857
2007-02-19 08:26:27 +00:00
Ronnie Sahlberg 02a8ed7abc using the latest SVN of PIDL it is now possible to compile the corrected WINREG.IDL where QueryInfoKey responses are parsed correctly.
(since we do not yet use all of the various idl files from s4 i commented out the import directove from the idl file since othervise it would generate #include directives for files we do not yet provide)



svn path=/trunk/; revision=20816
2007-02-15 09:33:12 +00:00
Ronnie Sahlberg 2c3e8fb51b testing out latest pidl where PARAM values can be used to track policy handles properly
winreg now tracks also where policy handles were closed    which previously didnt work properly



svn path=/trunk/; revision=19800
2006-11-05 04:49:20 +00:00
Ronnie Sahlberg aa7834c8ef pidl has been updated to use WERR instead of DOS error tables.
regenerate some dissectors


svn path=/trunk/; revision=19311
2006-09-24 20:23:17 +00:00
Ronnie Sahlberg d1ce720b3c winreg updates resync idl from s4
svn path=/trunk/; revision=19276
2006-09-21 21:14:33 +00:00
Ronnie Sahlberg 457c3f13c0 pidl now handles empty bitmaps properly so no need for the dummy (dont trigger empty bitmapbug entry)
svn path=/trunk/; revision=19170
2006-09-07 10:53:32 +00:00
Ronnie Sahlberg de2e6dc731 some updates from new pidl
svn path=/trunk/; revision=18408
2006-06-09 21:17:58 +00:00
Ronnie Sahlberg feab79e328 change a whole bunch of ethereal into wireshark
svn path=/trunk/; revision=18196
2006-05-21 04:49:01 +00:00
Guy Harris 46cbfd576a The Bitmap routine in lib/Parse/Pidl/Ethereal/NDR.pm in Pidl generates
fields as BASE_DEC; bitmaps are typically displayed in hex in Ethereal,
so it should generate BASE_HEX instead.  (Submitted to
bugzilla.samba.org as bug 3313.)

A couple of the IDL files use "unistr"; define it as "[string] uint16",
so that the resulting dissectors work correctly.

Regenerate dissectors.

svn path=/trunk/; revision=16754
2005-12-10 22:42:19 +00:00
Ronnie Sahlberg 063d484334 regenerate the pidl dissectors with the latest version of pidl so it will put the text representation of DOS errors in the decode as well.
(the hf field for doserrors did not come with the value_string)



svn path=/trunk/; revision=16650
2005-12-02 10:54:05 +00:00
Ronnie Sahlberg 886e7e603b prettification and updates to winreg
svn path=/trunk/; revision=16622
2005-11-29 03:19:52 +00:00
Jörg Mayer f6264ee8d2 Move the packet-dcerpc-*.[hc] from pidl/ back to dissectors.
This makes Ethereal build again - there's no real reason that
ethereal fails to build for such a long time on so many platforms.


svn path=/trunk/; revision=15835
2005-09-16 08:55:51 +00:00