Update to dtsprovider, declare the status code and vals
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>
Wed, 18 Sep 2002 12:12:50 +0000 (12:12 -0000)
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>
Wed, 18 Sep 2002 12:12:50 +0000 (12:12 -0000)
svn path=/trunk/; revision=6304

packet-dcerpc-dce122.c
packet-dcerpc-dtsprovider.c

index 544f028632ebb1fa250901d4918d44ac14f66db9..eadf894df23daf03c0acb6ea77b68c634ece13a9 100644 (file)
@@ -3,7 +3,7 @@
  * Copyright 2002, Jaime Fournier <jafour1@yahoo.com>
  * This information is based off the released idl files from opengroup.
  *
- * $Id: packet-dcerpc-dce122.c,v 1.1 2002/09/17 09:38:03 sahlberg Exp $
+ * $Id: packet-dcerpc-dce122.c,v 1.2 2002/09/18 12:12:50 sahlberg Exp $
  *
  * Ethereal - Network traffic analyzer
  * By Gerald Combs <gerald@ethereal.com>
@@ -27,7 +27,7 @@
 #include "epan/value_string.h"
 #include "packet-dcerpc-dce122.h"
 
-static const value_string dce_error_vals[] = {
+const value_string dce_error_vals[] = {
 { 0, "SUCCESS", },
 { 539918337, "event already in set" },
 { 539918338, "event still part of some set" },
index 2dfccb3180838f7d4deadbe4cdd42fcecd263007..ab811850a4d9d27c80b729f3cf2f4fa5defea52f 100644 (file)
@@ -4,7 +4,7 @@
  * This information is based off the released idl files from opengroup.\r
  * ftp://ftp.opengroup.org/pub/dce122/dce/src/time.tar.gz time/service/dtsprovider.idl\r
  *\r
- * $Id: packet-dcerpc-dtsprovider.c,v 1.2 2002/09/17 09:38:04 sahlberg Exp $\r
+ * $Id: packet-dcerpc-dtsprovider.c,v 1.3 2002/09/18 12:12:50 sahlberg Exp $\r
  *\r
  * Ethereal - Network traffic analyzer\r
  * By Gerald Combs <gerald@ethereal.com>\r
@@ -43,6 +43,7 @@
 \r
 static int proto_dtsprovider = -1;\r
 static int hf_dtsprovider_opnum = -1;\r
+static int hf_dtsprovider_status = -1;\r
 \r
 \r
 static gint ett_dtsprovider = -1;\r
@@ -70,7 +71,10 @@ proto_register_dtsprovider (void)
        static hf_register_info hf[] = {\r
          { &hf_dtsprovider_opnum,\r
            { "Operation", "dtsprovider.opnum", FT_UINT16, BASE_DEC,\r
-             VALS(dtsprovider_opnum_vals), 0x0, "Operation", HFILL }}\r
+             VALS(dtsprovider_opnum_vals), 0x0, "Operation", HFILL }},\r
+         { &hf_dtsprovider_status,\r
+           { "Status", "dtsprovider.status", FT_UINT32, BASE_DEC,\r
+             VALS(dce_error_vals), 0x0, "Return code, status of executed command", HFILL }}\r
        };\r
 \r
        static gint *ett[] = {\r