aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc-spoolss.c
AgeCommit message (Collapse)AuthorFilesLines
2011-07-19Add a DREP_LITTLE_ENDIAN for the DCE RPC endianness bit in the dataguy1-2/+2
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38128 f5534014-38df-0310-8fa8-9805f1628bb7
2011-07-13Fix gcc 4.6 "set but not used [-Wunused-but-set-variable]" warningswmeier1-4/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37999 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-23Delete unused header field entries found by running checkhf.pl.cmaynard1-27/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37353 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-23From Micheal Mann via bug 2794: Fix some display filter field names.cmaynard1-8/+8
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37351 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-28Remove the remaining tvb_fake_unicode() calls in the dissector source. sfisher1-10/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35692 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-17User value_string_ext fcns to access several value_string arrays;wmeier1-346/+450
Minor reformatting and whitespace cleanup. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34927 f5534014-38df-0310-8fa8-9805f1628bb7
2010-10-07Define a few global variables as static.wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34411 f5534014-38df-0310-8fa8-9805f1628bb7
2010-09-23Replace blurbs that match the name (case insensitive) with NULL.morriss1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34227 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-10Indentation & whitespace cleanup (including: "4 space tabs" ==> spaces)wmeier1-387/+387
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32735 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-19For fields of type FT_ABSOLUTE_TIME, have the "display" value be one ofguy1-1/+1
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31319 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-24* Prefer col_append_str instead of col_append_fstr for constant stringskrj1-2/+1
* Remove check_col guards git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30127 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-04Init ett_... variables to -1wmeier1-6/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29294 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-07Changed flags_set_truth -> tfs_set_notsetstig1-40/+40
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28989 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-278/+278
(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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28770 f5534014-38df-0310-8fa8-9805f1628bb7
2009-05-13Apply some of the patches from:etxrab1-2/+1
http://wiki.wireshark.org/Development/Optimization git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28356 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-29More size_t casts.etxrab1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27888 f5534014-38df-0310-8fa8-9805f1628bb7
2008-10-31Fix some "format not a string literal and no format arguments" warnings.stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26646 f5534014-38df-0310-8fa8-9805f1628bb7
2008-05-15Fix some of the Errors/warnings detected by checkapi.wmeier1-32/+96
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@25305 f5534014-38df-0310-8fa8-9805f1628bb7
2008-03-02Added missing array for hf_printer_priority, hf_printer_default_priority,stig1-0/+16
hf_printer_averageppm and hf_printer_jobs. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@24527 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-26Use the offset and length for the interesting data.stig1-3/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23607 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-26Use correct offset for subtree in dissect_spoolss_relstr.stig1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23602 f5534014-38df-0310-8fa8-9805f1628bb7
2007-11-26From Kai Blin:stig1-1/+60
Dissect the PRINTER_INFO structure in the SpoolssEnumPrinters call. From me: Add the level info to COL_INFO. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23600 f5534014-38df-0310-8fa8-9805f1628bb7
2007-10-23Apply the small performance enhancment patches for:etxrab1-1/+1
- if offset is 0, tvb_length is the same as tvb_length_remaining, just faster. Replace - col_append_fstr() with faster col_append_str() - col_add_str() with col_set_str() when it's safe git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@23252 f5534014-38df-0310-8fa8-9805f1628bb7
2007-08-28rename dcerpc_smb_store_pol_name to dcerpc_store_polhnd_namesahlberg1-10/+10
rename dcerpc_smb_fetch_pol to dcerpc_fetch_polhnd_data and also make it take an additional parameter to return the "type" of the policy handle, if such a type was stored. extend the pol_value structure used to track policy handles to also store a type to represent what created the policy handle types could be USER/ALIAS/CONNECT/... etc handles returned from the SAMR interface add a new helper function dcerpc_store_polhnd_type() track policy handles between request/responses for dcerpc update the samr.cnf file to make the samr dissectors for SetSecurity/QuerySecurity dissect the specific bits for the security descriptor correctly based on whether the policy handle refers to a CONNECT/DOMAIN/USER/ALIAS or GROUP git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@22703 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-26Fix for bug 1505. Adding getprinterdriver levels 2, 6, and (partially) 101.jake1-2/+252
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21593 f5534014-38df-0310-8fa8-9805f1628bb7
2007-04-23Add some GCC warnings to the standard set, and add some others to theguy1-3/+3
--enable-extra-gcc-checks set. If we turn on -pedantic, try turning on -Wno-long-long as well, so that it's not *so* pedantic that it rejects the 64-bit integral data types that we explicitly require. Constify a bunch of stuff, and make some other changes, to get rid of warnings. Clean up some indentation. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21526 f5534014-38df-0310-8fa8-9805f1628bb7
2006-09-16remove any dependencies that dcv->private_data is persistentsahlberg1-226/+140
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19241 f5534014-38df-0310-8fa8-9805f1628bb7
2006-05-21change a whole bunch of ethereal into wiresharksahlberg1-3/+3
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@18196 f5534014-38df-0310-8fa8-9805f1628bb7
2005-10-04Don't ensure all the bytes of a security descriptor exist before callingguy1-8/+4
"dissect_nt_sec_desc()". Add a Boolean argument to "dissect_nt_sec_desc()" to indicate whether a length was passed to it (so we don't treat -1 as a special value; we want to stop treating -1 as a special length value, and, in fact, want to stop treating *any* negative length values specially, so that we don't have to worry about passing arbitrary 32-bit values from packets as lengths), and have "dissect_nt_sec_desc()" initially create the protocol tree item for the security descriptor with a length of "go to the end of the tvbuff", and set the length once we're done dissecting it - and, if the length was specified, check at *that* point, *after* we've dissected the security descriptor, whether we have the entire security descriptor in the tvbuff. That means that we don't have to worry about overflows after "dissect_nt_sec_desc()" returns - if the length was so large that we would have gotten an overflow, we'd have thrown an exception in the "tvb_ensure_bytes_exist()" call at the end of "dissect_nt_sec_desc()". Do sanity checks on offsets within the security descriptor, so we know the item referred to by the offset is after the fixed-length portion of the descriptor. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16113 f5534014-38df-0310-8fa8-9805f1628bb7
2005-09-15A first go at importing some pidl generated code into ethereal. This tpot1-1/+31
commit replaces the hand written dcerpc initshutdown and winreg interfaces with autogenerated ones. The pidl generated code is still a bit rought around the edges but will hopefully improve with time. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15812 f5534014-38df-0310-8fa8-9805f1628bb7
2005-07-26char -> const char warning fixesjmayer1-6/+6
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15079 f5534014-38df-0310-8fa8-9805f1628bb7
2005-06-26Get rid of the private "my_match_strval()" routine in many dissectors;guy1-2/+2
add a "match_strval_idx()" routine that does the same thing, and have "match_strval()" call it. Make those routines, and "val_to_str()", return a "const" pointer. Update dissectors as necessary to squelch compiler warnings produced by that. Use "val_to_str()" rather than using "match_strval()" and then, if the result is null, substituting a specific string. Clean up some other "match_strval()"/"val_to_str()" usages. Add a null pointer check in the NDPS dissector's "attribute_value()" routine, as it's not clear that "global_attribute_name" won't be null at that point. Make some global variables in the AFS4INT dissector local. Make some routines not used outside the module they're in static. Make some tables "static const". Clean up white space. Fix Gerald's address in some files. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14786 f5534014-38df-0310-8fa8-9805f1628bb7
2005-06-20Fix a format string vulneratility in the AFP dissector identifiedgerald1-2/+2
by iDEFENSE. Add constant format strings to proto_item_append_text() in a bunch of other dissectors. Copy a comment from proto.c to proto.h. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@14713 f5534014-38df-0310-8fa8-9805f1628bb7
2004-12-25a lot of warnings removed, most of them about pointer to int casts without ↵ulfl1-15/+15
using the appropriate GLib macros git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12832 f5534014-38df-0310-8fa8-9805f1628bb7
2004-08-03Move a bunch of stuff that's more Windows-related than SMB-related toguy1-2/+1
"packet-windows-common.[ch]". git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11592 f5534014-38df-0310-8fa8-9805f1628bb7
2004-07-18Move dissectors to epan/dissectors directory.gram1-0/+8226
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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11410 f5534014-38df-0310-8fa8-9805f1628bb7