aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc-drsuapi.c
AgeCommit message (Collapse)AuthorFilesLines
2018-02-12dissectors: use SPDX identifiers.Dario Lombardo1-13/+1
Change-Id: I92c94448e6641716d03158a5f332c8b53709423a Reviewed-on: https://code.wireshark.org/review/25756 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2015-03-03Eliminate e_uuid_t in favor of e_guid_t.Guy Harris1-1/+1
That eliminates a redundant and confusing data type, and avoids issues with one piece of code using e_uuid_t but wanting to use routines expecting an e_guid_t. Change-Id: I95e172d46d342ab40f6254300ecbd2a0530cde60 Reviewed-on: https://code.wireshark.org/review/7506 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-10-08DCERPC (DRSUAPI) Fix typo found on idl fileAlexis La Goutte1-8/+0
Change-Id: I79ad05122ae48de671c9c919bab6b3e8d94a50de Reviewed-on: https://code.wireshark.org/review/4554 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-10-07idl2wrs (DCERPC DRSUAPI): Fix Dead Store (Dead assignement/Dead increment) ↵Alexis La Goutte1-2/+0
warning found by Clang Add a check if the struct is not empty budb and butc are also regenerate but no change Change-Id: I0d8cfc827f5451f1cdbd924628a263af9d483a7b Reviewed-on: https://code.wireshark.org/review/4473 Reviewed-by: Evan Huus <eapache@gmail.com>
2014-10-01idl2wrs (DCERPC): fix some warningAlexis La Goutte1-59/+62
* Fix -Wmissing-prototypes in * Fix unused variable for drusapi (using _U_) Need to fix indent and some unused function/variable to remove from DIRTY list Change-Id: Ib6f325f0b54e2eb254ec38a41199b4b60a4d90a1 Reviewed-on: https://code.wireshark.org/review/4398 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-09-20proto_tree_add_text -> proto_tree_add_subtree[_format] for DCE/RPC dissectors.Michael Mann1-28/+14
Change-Id: I84755d059ef70ca98b0e7626b6425360daf0529d Reviewed-on: https://code.wireshark.org/review/4199 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-11-06Remove pinfo->private_data from DCERPC dissectors and instead have ↵Michael Mann1-1515/+1513
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-05-07Fix a c++ compat warning in the template and copy the resultingJörg Mayer1-4/+2
file to packet-dcerpc-drsuapi.c This seems to undo some (warning fix) changes made to the dissector directly instead of fixing the template (or generator). svn path=/trunk/; revision=49192
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-2/+0
svn path=/trunk/; revision=45017
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2012-05-14Get rid of remaining Booleans-as-encoding-arguments inGuy Harris1-3675/+3664
proto_tree_add_item() calls. Change the "idl-light"-to-dissector generator to use ENC_NA for structures and ENC_LITTLE_ENDIAN for bitmasks (are they always little-endian, or should they check the data representation?). Also change it to properly set the display format for FT_ABSOLUTE_TIME fields (it now specifies whether to show local time, UTC, or UTC with a 1-origin day-of-year). Change one routine in the template for the DRSUAPI dissector to use ENC_UTF_16|ENC_LITTLE_ENDIAN with proto_tree_add_item() (the field it dissects is known to be a string, so there's no need to check its data type). Regenerate the BUDB, BUTC, and DRSUAPI dissectors. (The generated BUTC dissector handles pointers differently - either the old dissector was wrong, or the generator is wrong, or the IDL for the protocol is wrong, or the difference doesn't actually affect dissection.) The generator doesn't currently handle hex values in enums correctly; manually fix packet-dcerpc-drsuapi.h. svn path=/trunk/; revision=42625
2011-08-16More misspellings of "unknown", for bug 6244.Guy Harris1-1/+1
svn path=/trunk/; revision=38565
2011-07-19Add a DREP_LITTLE_ENDIAN for the DCE RPC endianness bit in the dataGuy Harris1-1/+1
representation. Use it rather than a raw 0x10. Add a DREP_ENC_INTEGER() macro that takes a pointer to the data representation and returns either ENC_LITTLE_ENDIAN or ENC_BIG_ENDIAN; use it for the encoding argument to proto_tree_add_item(), rather than just the AND of drep[0] and DREP_LITTLE_ENDIAN, as it's not a boolean any more, and for string values we'll be supporting character encodings as well and thus won't be able to trust that the 0x10 bit will mean "little endian". Use ENC_NA for some other encoding values, i.e. for FT_BYTES and the like. Fix a couple of places in the DCOM dissector where we were passing the byte-order bit rather than the field value to proto_tree_add_uint_format(). Clean up white space. svn path=/trunk/; revision=38128
2011-05-18Fix a couple (value) mistakes in a value_string, taking the values from the IDLJeff Morriss1-8/+9
file. Found by Martin's patch on the -dev list. Add a comment to answer the question of whether this file is autogenerated by pointing to the IDL file. svn path=/trunk/; revision=37261
2011-01-28Fix r35690: tvb_get_unicode_string() takes length in 8-bit bytes, notStephen Fisher1-1/+1
16-bit UTF-16 characters as tvb_fake_unicode() did. svn path=/trunk/; revision=35691
2011-01-28Change tvb_fake_unicode() to tvb_get_unicode_string() in the DCERPCStephen Fisher1-1/+1
DRSUAPI dissector. Updated the packet-dcerpc-drsuapi.c file manually because it used to be auto-generated, but appears to have had changes since then. svn path=/trunk/; revision=35690
2010-06-27Make sure some variables are initialized.Gerald Combs1-14/+15
svn path=/trunk/; revision=33340
2009-12-19For fields of type FT_ABSOLUTE_TIME, have the "display" value be one ofGuy Harris1-17/+17
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-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-457/+457
(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
2008-02-19Fix some unused warningsJörg Mayer1-1/+3
svn path=/trunk/; revision=24397
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2005-07-13make idl2eth generate FT_GUID hf fields for uuid_t and GUID types.Ronnie Sahlberg1-33/+33
make dissect_dcerpc_uuid_t() accept eitehr FT_STRING (old style) and FT_GUID (new style) hf fields. once all dissectors are modified to use FT_GUID we can remove the FT_STRING support here. regenerate the DRSUAPI interface with the new FT_GUID support. svn path=/trunk/; revision=14912
2005-03-16decode some more of drsuapiRonnie Sahlberg1-4/+200
svn path=/trunk/; revision=13763
2005-03-15more idl2eth and drsuapi updatesRonnie Sahlberg1-2/+481
svn path=/trunk/; revision=13759
2005-03-15update to idl2eth adding WERROR as a built in typeRonnie Sahlberg1-6/+16
svn path=/trunk/; revision=13758
2005-03-14a lot of people dont specify top level pointers in teh idl and justRonnie Sahlberg1-89/+112
cerlare it as a parameter that is a struct/union and not a ref pointer to one. this is ok since toplevel ref pointers are invisible in the wire encoding anyway. unfortunatelky ethereal dce runtime needed to see that pointer to keep track of whisch one was a toplevel and which one wasnt. implement a new api to call pointers which explicitely specifies whether the pointer is toplevel or embedded. eventually all dce dissectors will use this new interface and the generic dissect_ndr_pointer() can be retired. svn path=/trunk/; revision=13755
2005-03-14updates for drsuapiRonnie Sahlberg1-163/+1455
svn path=/trunk/; revision=13748
2005-03-12the previous drsuapi patch showed how idl2eth can handle embedded arrays ↵Ronnie Sahlberg1-24/+44
just fine. beautifully fine. this patch overrides the array, tells idl2eth to not generate code to unmarshall the conformance blob or the data for the array. a handwritted replacement function is implemented in the template instead which prettifies the output a lot. svn path=/trunk/; revision=13735
2005-03-12refine IDLRonnie Sahlberg1-16/+383
svn path=/trunk/; revision=13733
2005-03-12initial DRSUAPI dissector Ronnie Sahlberg1-63/+7901
now that we can decrypt DCERPC the dissection is not complete since idl2eth can not yet handle all the weird extensions in the idl file yet. svn path=/trunk/; revision=13729
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+122
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410