aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc-ndr.c
AgeCommit message (Collapse)AuthorFilesLines
2015-05-31Eliminate proto_tree_add_text from packet-dcerpc-ndr.c and ↵Michael Mann1-2/+1
packet-dcerpc-netlogon.c Change-Id: I65eff9c8087424087a307f18b96a202f0364e371 Reviewed-on: https://code.wireshark.org/review/8714 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2015-03-17packet-dcerpc-*: fix alignment of dissect_ndr_ctx_hnd()Stefan Metzmacher1-1/+1
Change-Id: I9685f37580d1def6c0956d786398e3e70e819cee Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-on: https://code.wireshark.org/review/7714 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-12-21Cleanup use of #includes in non-generated epan/dissector/*.cBill Meier1-3/+0
Specifically: - Set packet.h to be the first wireshark #include after config.h and "system" #includes. packet.h added as an #include in some cases when missing. - Remove some #includes included (directly/indirectly) in packet.h. E.g., glib.h. (Done only for those files including packet.h). - As needed, move "system" #includes to be after config.h and before wireshark #includes. - Rework various #include file specifications for consistency. - Misc. Change-Id: Ifaa1a14b50b69fbad38ea4838a49dfe595c54c95 Reviewed-on: https://code.wireshark.org/review/5923 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-09-29Add editor modelines; fix indentation as needed.Bill Meier1-0/+13
Change-Id: I1ad94654343e5a018a0b3159481d45ffb3a91263 Reviewed-on: https://code.wireshark.org/review/4363 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-09-19Don't assert that values fit in 32 bits if the NDR64 flag is set.Michael Mann1-3/+3
For now, this just pacifies fuzz-testing. If real world examples have this, there needs to be a drastic overhaul to support fields that could be either 32 or 64-bit values. Bug:9329 Change-Id: I3e28808ca0291868a5f84258b0ee1e2a922703c2 Reviewed-on: https://code.wireshark.org/review/4189 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-06Add _U_ to a function parameter to fix a compiler warning.Bill Meier1-1/+1
svn path=/trunk/; revision=53103
2013-11-06Remove pinfo->private_data from DCERPC dissectors and instead have ↵Michael Mann1-75/+30
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-10-21Add APIs for PIDL generated code to return the value of the integer that was ↵Michael Mann1-12/+55
dissected. Bug 9305 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9305). From Matthieu Patou svn path=/trunk/; revision=52741
2013-10-21Fix padding bytes overlapping due to NDR alignment. Bug 9300 ↵Michael Mann1-1/+1
(https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9300) From Matthieu Patou svn path=/trunk/; revision=52733
2013-10-01Remove check_col for all non-generated DCE/RPC dissectors.Michael Mann1-12/+4
svn path=/trunk/; revision=52310
2013-09-13Dario Lombardo <lomato@gmail.com> viaJörg Mayer1-5/+5
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=9147 Migration from emem to wmem for trivial cases (ep_alloc only). svn path=/trunk/; revision=52002
2013-06-28Callers to dissect_ndr_* functions expect pdata to be initialized on return fromEvan Huus1-0/+44
the function, so make sure it is even in error conditions and other anomaly cases. Fixes the valgrind errors with the capture from https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8828 svn path=/trunk/; revision=50226
2013-03-02From Ed Beroset via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416 :Pascal Quantin1-28/+28
Remove C++ incompatibilities from most of the dcerpc code svn path=/trunk/; revision=48023
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-09-01From Litao Gao:Anders Broman1-1/+4
Implementation of IRemoteSCMActivator::RemoteCreateInstance and some minor bug fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7673 svn path=/trunk/; revision=44721
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-15Remove unneeded includes (ctype.h, stdio.h);Bill Meier1-151/+150
In one case, define our own size for a string buffer (instead of using a magic constant 'BUFSIZ'); In a few cases: do some whitespace, indentation & reformatting cleanup. svn path=/trunk/; revision=42634
2012-04-28Initialize val to 0 in case pdata != NULL but "di->conformant_run" is TRUE ↵Chris Maynard1-2/+2
so the *pdata won't contain garbage as reported by clang. svn path=/trunk/; revision=42324
2011-11-09Fix a number of proto_tree_add_item() encoding args.Bill Meier1-1/+1
svn path=/trunk/; revision=39774
2010-04-06#include <string.h> not needed.Bill Meier1-1/+0
svn path=/trunk/; revision=32410
2010-01-20From Julien Kerihuel, add support forRonnie Sahlberg1-12/+12
unaligned unmarshalling of dissectors generated by PIDL. This will allow us to use PIDL and additional IDLs from the samba project since they use "noalign" for certain protocols. This may also allow us to use PIDL to describe, and machinegenerate dissectors for normal, non-DCERPC, protocols. This patch for PIDL is still under review, but the PIDL patch is l;ikely to be committed soonish. svn path=/trunk/; revision=31583
2009-10-03Guard against NULL pointersKovarththanan Rajaratnam1-8/+12
svn path=/trunk/; revision=30266
2009-10-03rename 2or4 to a new type guint1632 and call the dissector for this Ronnie Sahlberg1-2/+2
function dissect_ndr_uint1632() svn path=/trunk/; revision=30265
2009-10-03rename dissect_ndr_4or8 to dissect_ndr_uint3264 to match hte name of Ronnie Sahlberg1-2/+2
the new datatype uint3264. create a fake guint3264 type as well svn path=/trunk/; revision=30264
2009-10-03add a helper that supports decoding either a 16 or 32 bit integer based Ronnie Sahlberg1-0/+22
on whether nrd or ndr64 is used. svn path=/trunk/; revision=30263
2009-10-03teach the dce/rpc pointer dissector about ndr64 and make it dissect Ronnie Sahlberg1-0/+22
pointers as 8 byte entities when ndr64 is negotiated svn path=/trunk/; revision=30253
2007-05-29Use G_GINT64_MODIFIER, rather than the PRI[douxX]64 macros, for GLibGuy Harris1-4/+4
routines and routines using those routines. GLib might use different modifiers for 64-bit quantities than the platform's C library does. svn path=/trunk/; revision=21990
2007-03-23fix some more warningsUlf Lamping1-2/+2
svn path=/trunk/; revision=21143
2007-02-25add new flag for PIDL conformance files : PIDL_SET_COL_INFORonnie Sahlberg1-9/+154
which applies (for now only) to integer types. when this flag is specified as PARAM_VALUE the fields name and its value will be pushed onto the info column of the summary line svn path=/trunk/; revision=20922
2007-02-25add new PIDL friendly helpers for dissection of integer types.Ronnie Sahlberg1-0/+81
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
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2005-01-29Use the 64-bit integer fetch routines to support 64-bit NDR integers.Guy Harris1-1/+1
svn path=/trunk/; revision=13198
2005-01-28we need a dissect_ndr_uint64() that dissects an NDR hyperRonnie Sahlberg1-0/+22
svn path=/trunk/; revision=13185
2005-01-28older MS DCE/RPC interfaces often use a construct that is to be treated as a ↵Ronnie Sahlberg1-1/+6
64 bit integer but in reality is a struct containing 2 32bit integers. this construct is aligned on 4 byte boundaries in ndr and NOT 8 bytes as a real uint64 (== hyper) would be. rename the existing dissect_ndr_uint64 ro dissect_ndr_duint32 (double uint32) to make it reflect better the alignment of the type. svn path=/trunk/; revision=13184
2005-01-12add new function dissect_dcerpc_uuid_t and let dissect_ndr_uuid_t call itUlf Lamping1-28/+2
svn path=/trunk/; revision=13006
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+273
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