diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-05-14 23:05:28 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-05-14 23:05:28 +0000 |
commit | 953a5c3fff1183651f071733ddf097f76a5eee6d (patch) | |
tree | 785ea839af47ff852f61cad42cf5e74d06085c16 /epan/dissectors/packet-dcerpc-drsuapi.h | |
parent | 05cfd1c3914cd44336a527708e36dce94d9f134e (diff) |
Get rid of remaining Booleans-as-encoding-arguments in
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
Diffstat (limited to 'epan/dissectors/packet-dcerpc-drsuapi.h')
-rw-r--r-- | epan/dissectors/packet-dcerpc-drsuapi.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-dcerpc-drsuapi.h b/epan/dissectors/packet-dcerpc-drsuapi.h index 31cffbb2a3..c3cea83e6f 100644 --- a/epan/dissectors/packet-dcerpc-drsuapi.h +++ b/epan/dissectors/packet-dcerpc-drsuapi.h @@ -70,10 +70,10 @@ extern const value_string drsuapi_DsNameStatus_vals[]; int drsuapi_dissect_DsNameStatus(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, int hf_index, guint32 param); #define DRSUAPI_DS_NAME_FLAG_NO_FLAGS 0 -#define DRSUAPI_DS_NAME_FLAG_SYNTACTICAL_ONLY 0 -#define DRSUAPI_DS_NAME_FLAG_EVAL_AT_DC 0 -#define DRSUAPI_DS_NAME_FLAG_GCVERIFY 0 -#define DRSUAPI_DS_NAME_FLAG_TRUST_REFERRAL 0 +#define DRSUAPI_DS_NAME_FLAG_SYNTACTICAL_ONLY 1 +#define DRSUAPI_DS_NAME_FLAG_EVAL_AT_DC 2 +#define DRSUAPI_DS_NAME_FLAG_GCVERIFY 4 +#define DRSUAPI_DS_NAME_FLAG_TRUST_REFERRAL 8 extern const value_string drsuapi_DsNameFlags_vals[]; int drsuapi_dissect_DsNameFlags(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, int hf_index, guint32 param); |