summaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-igap.c
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-09-19 04:14:26 +0000
commitc4e8a3222648fcf22ca207f1815ebbf7cd144eeb (patch)
tree93d5c6aa93d9987680dd1adad5685e2ad698f223 /epan/dissectors/packet-igap.c
parentAdding upstream version 4.2.6. (diff)
downloadwireshark-upstream.tar.xz
wireshark-upstream.zip
Adding upstream version 4.4.0.upstream/4.4.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--epan/dissectors/packet-igap.c60
1 files changed, 30 insertions, 30 deletions
diff --git a/epan/dissectors/packet-igap.c b/epan/dissectors/packet-igap.c
index e043b03e..ff4a60a9 100644
--- a/epan/dissectors/packet-igap.c
+++ b/epan/dissectors/packet-igap.c
@@ -39,30 +39,30 @@ void proto_reg_handoff_igap(void);
static dissector_handle_t igap_handle;
-static int proto_igap = -1;
-static int hf_type = -1;
-static int hf_max_resp = -1;
-static int hf_checksum = -1;
-static int hf_checksum_status = -1;
-static int hf_maddr = -1;
-static int hf_version = -1;
-static int hf_subtype = -1;
-static int hf_challengeid = -1;
-static int hf_asize = -1;
-static int hf_msize = -1;
-static int hf_account = -1;
+static int proto_igap;
+static int hf_type;
+static int hf_max_resp;
+static int hf_checksum;
+static int hf_checksum_status;
+static int hf_maddr;
+static int hf_version;
+static int hf_subtype;
+static int hf_challengeid;
+static int hf_asize;
+static int hf_msize;
+static int hf_account;
/* Generated from convert_proto_tree_add_text.pl */
-static int hf_igap_challenge = -1;
-static int hf_igap_user_password = -1;
-static int hf_igap_authentication_result = -1;
-static int hf_igap_result_of_md5_calculation = -1;
-static int hf_igap_accounting_status = -1;
-static int hf_igap_unknown_message = -1;
+static int hf_igap_challenge;
+static int hf_igap_user_password;
+static int hf_igap_authentication_result;
+static int hf_igap_result_of_md5_calculation;
+static int hf_igap_accounting_status;
+static int hf_igap_unknown_message;
-static int ett_igap = -1;
+static int ett_igap;
-static expert_field ei_checksum = EI_INIT;
+static expert_field ei_checksum;
static const value_string igap_types[] = {
{IGMP_IGAP_JOIN, "Membership Report (Join)"},
@@ -128,8 +128,8 @@ dissect_igap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* d
{
proto_tree *tree;
proto_item *item;
- guint8 type, tsecs, subtype, asize, msize;
- guint8 authentication_result, accounting_status;
+ uint8_t type, tsecs, subtype, asize, msize;
+ uint8_t authentication_result, accounting_status;
int offset = 0;
item = proto_tree_add_item(parent_tree, proto_igap, tvb, offset, -1, ENC_NA);
@@ -138,13 +138,13 @@ dissect_igap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* d
col_set_str(pinfo->cinfo, COL_PROTOCOL, "IGAP");
col_clear(pinfo->cinfo, COL_INFO);
- type = tvb_get_guint8(tvb, offset);
+ type = tvb_get_uint8(tvb, offset);
col_add_str(pinfo->cinfo, COL_INFO,
val_to_str(type, igap_types, "Unknown Type: 0x%02x"));
proto_tree_add_uint(tree, hf_type, tvb, offset, 1, type);
offset += 1;
- tsecs = tvb_get_guint8(tvb, offset);
+ tsecs = tvb_get_uint8(tvb, offset);
proto_tree_add_uint_format_value(tree, hf_max_resp, tvb, offset, 1, tsecs,
"%.1f sec (0x%02x)", tsecs * 0.1, tsecs);
offset += 1;
@@ -158,18 +158,18 @@ dissect_igap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* d
proto_tree_add_item(tree, hf_version, tvb, offset, 1, ENC_NA);
offset += 1;
- subtype = tvb_get_guint8(tvb, offset);
+ subtype = tvb_get_uint8(tvb, offset);
proto_tree_add_uint(tree, hf_subtype, tvb, offset, 1, subtype);
offset += 2;
proto_tree_add_item(tree, hf_challengeid, tvb, offset, 1, ENC_NA);
offset += 1;
- asize = tvb_get_guint8(tvb, offset);
+ asize = tvb_get_uint8(tvb, offset);
proto_tree_add_uint(tree, hf_asize, tvb, offset, 1, asize);
offset += 1;
- msize = tvb_get_guint8(tvb, offset);
+ msize = tvb_get_uint8(tvb, offset);
proto_tree_add_uint(tree, hf_msize, tvb, offset, 1, msize);
offset += 3;
@@ -209,13 +209,13 @@ dissect_igap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void* d
case IGAP_SUBTYPE_AUTH_MESSAGE:
/* Challenge field indicates the result of the authentication */
/* XXX - what if the length isn't 1? */
- authentication_result = tvb_get_guint8(tvb, offset);
+ authentication_result = tvb_get_uint8(tvb, offset);
proto_tree_add_uint(tree, hf_igap_authentication_result, tvb, offset, msize, authentication_result);
break;
case IGAP_SUBTYPE_ACCOUNTING_MESSAGE:
/* Challenge field indicates the accounting status */
/* XXX - what if the length isn't 1? */
- accounting_status = tvb_get_guint8(tvb, offset);
+ accounting_status = tvb_get_uint8(tvb, offset);
proto_tree_add_uint(tree, hf_igap_accounting_status, tvb, offset, msize, accounting_status);
break;
default:
@@ -328,7 +328,7 @@ proto_register_igap(void)
expert_module_t* expert_igap;
- static gint *ett[] = {
+ static int *ett[] = {
&ett_igap
};