summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcerpc-mgmt.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:33 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:33 +0000
commit9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 (patch)
tree2784370cda9bbf2da9114d70f05399c0b229d28c /epan/dissectors/packet-dcerpc-mgmt.c
parentAdding debian version 4.2.6-1. (diff)
downloadwireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.tar.xz
wireshark-9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9.zip
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-dcerpc-mgmt.c')
-rw-r--r--epan/dissectors/packet-dcerpc-mgmt.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/epan/dissectors/packet-dcerpc-mgmt.c b/epan/dissectors/packet-dcerpc-mgmt.c
index 4da786ec..da9bd211 100644
--- a/epan/dissectors/packet-dcerpc-mgmt.c
+++ b/epan/dissectors/packet-dcerpc-mgmt.c
@@ -18,24 +18,24 @@
void proto_register_mgmt (void);
void proto_reg_handoff_mgmt (void);
-static int proto_mgmt = -1;
-static int hf_mgmt_opnum = -1;
-static int hf_mgmt_proto = -1;
-static int hf_mgmt_rc = -1;
-static int hf_mgmt_princ_size = -1;
-static int hf_mgmt_princ_name = -1;
-static gint ett_mgmt = -1;
+static int proto_mgmt;
+static int hf_mgmt_opnum;
+static int hf_mgmt_proto;
+static int hf_mgmt_rc;
+static int hf_mgmt_princ_size;
+static int hf_mgmt_princ_name;
+static int ett_mgmt;
static e_guid_t uuid_mgmt = { 0xafa8bd80, 0x7d8a, 0x11c9, { 0xbe, 0xf4, 0x08, 0x00, 0x2b, 0x10, 0x29, 0x89 } };
-static guint16 ver_mgmt = 1;
+static uint16_t ver_mgmt = 1;
static int
-mgmtrpc_dissect_inq_princ_name_response(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep)
+mgmtrpc_dissect_inq_princ_name_response(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
{
offset = dissect_ndr_cvstring(tvb, offset, pinfo, tree, di, drep,
- sizeof(guint8), hf_mgmt_princ_name, TRUE, NULL);
+ sizeof(uint8_t), hf_mgmt_princ_name, true, NULL);
offset = dissect_ntstatus(tvb, offset, pinfo, tree, di, drep, hf_mgmt_rc, NULL);
@@ -43,7 +43,7 @@ mgmtrpc_dissect_inq_princ_name_response(tvbuff_t *tvb, int offset, packet_info *
return offset;
}
static int
-mgmtrpc_dissect_inq_princ_name_request(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, guint8 *drep)
+mgmtrpc_dissect_inq_princ_name_request(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tree, dcerpc_info *di, uint8_t *drep)
{
offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep, hf_mgmt_proto, NULL);
offset = dissect_ndr_uint32(tvb, offset, pinfo, tree, di, drep, hf_mgmt_princ_size, NULL);
@@ -52,7 +52,7 @@ mgmtrpc_dissect_inq_princ_name_request(tvbuff_t *tvb, int offset, packet_info *p
-static dcerpc_sub_dissector mgmt_dissectors[] = {
+static const dcerpc_sub_dissector mgmt_dissectors[] = {
{ 0, "rpc__mgmt_inq_if_ids", NULL, NULL },
{ 1, "rpc__mgmt_inq_stats", NULL, NULL },
{ 2, "rpc__mgmt_is_server_listening", NULL, NULL },
@@ -82,7 +82,7 @@ proto_register_mgmt (void)
NULL, 0x0, NULL, HFILL }},
};
- static gint *ett[] = {
+ static int *ett[] = {
&ett_mgmt
};
proto_mgmt = proto_register_protocol ("DCE/RPC Remote Management", "MGMT", "mgmt");