Fix a couple (value) mistakes in a value_string, taking the values from the IDL
authorJeff Morriss <jeff.morriss@ulticom.com>
Wed, 18 May 2011 20:56:03 +0000 (20:56 -0000)
committerJeff Morriss <jeff.morriss@ulticom.com>
Wed, 18 May 2011 20:56:03 +0000 (20:56 -0000)
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

epan/dissectors/packet-dcerpc-drsuapi.c

index 3eb7c5b0c3f6f0862b7466d721a198dc1b569282..f14c6a67036f5d92a7aa636d71933db6d888b7b7 100644 (file)
@@ -1,6 +1,7 @@
 /* DO NOT EDIT
  * This dissector is autogenerated
  * (XXX - Is this true?)
+ * Well, the IDL is in epan/dissectors/dcerpc/drsuapi/ ...
  */
 
 /* packet-dcerpc-drsuapi.c
@@ -559,7 +560,7 @@ ucarray_drsuapi_dissect_DsReplicaSyncRequest1Info_nc_dn(tvbuff_t *tvb, int offse
 
        di=pinfo->private_data;
        if(di->conformant_run){
-               /*just a run to handle conformant arrays, nothing to dissect 
+               /*just a run to handle conformant arrays, nothing to dissect
                  but we need to remember how long this array was.
                  see packet-dcerpc.c for examples of conformant_run
                  and what it is.
@@ -1925,7 +1926,7 @@ drsuapi_dissect_DsReplicaSync_response(tvbuff_t *tvb _U_, int offset _U_, packet
 static int
 drsuapi_dissect_uint64(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, int hf_index, guint32 param _U_)
 {
-    
+
     ALIGN_TO_8_BYTES;
     offset=dissect_ndr_uint64(tvb, offset, pinfo, tree, drep, hf_index, NULL);
 
@@ -3587,10 +3588,10 @@ drsuapi_dissect_DsNameStatus(tvbuff_t *tvb, int offset, packet_info *pinfo, prot
 
 const value_string drsuapi_DsNameFlags_vals[] = {
     { 0        , "DRSUAPI_DS_NAME_FLAG_NO_FLAGS" },
-    { 0        , "DRSUAPI_DS_NAME_FLAG_SYNTACTICAL_ONLY" },
-    { 0        , "DRSUAPI_DS_NAME_FLAG_EVAL_AT_DC" },
-    { 0        , "DRSUAPI_DS_NAME_FLAG_GCVERIFY" },
-    { 0        , "DRSUAPI_DS_NAME_FLAG_TRUST_REFERRAL" },
+    { 1        , "DRSUAPI_DS_NAME_FLAG_SYNTACTICAL_ONLY" },
+    { 2        , "DRSUAPI_DS_NAME_FLAG_EVAL_AT_DC" },
+    { 4        , "DRSUAPI_DS_NAME_FLAG_GCVERIFY" },
+    { 8        , "DRSUAPI_DS_NAME_FLAG_TRUST_REFERRAL" },
     { 0        , NULL }
 };
 
@@ -4198,7 +4199,7 @@ drsuapi_dissect_union_DsWriteAccountSpnRequest(tvbuff_t *tvb, int offset, packet
 static int
 drsuapi_dissect_WERROR(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, guint8 *drep, int hf_index, guint32 param _U_)
 {
-    
+
     offset=dissect_ndr_uint32(tvb, offset, pinfo, tree, drep, hf_index, NULL);
 
     return offset;
@@ -10243,7 +10244,7 @@ proto_register_drsuapi(void)
         };
 
         proto_drsuapi = proto_register_protocol(
-                "DRSUAPI", 
+                "DRSUAPI",
                "DRSUAPI", "drsuapi");
        proto_register_field_array(proto_drsuapi, hf, array_length(hf));
         proto_register_subtree_array(ett, array_length(ett));