diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:33 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:33 +0000 |
commit | 9f153fbfec0fb9c9ce38e749a7c6f4a5e115d4e9 (patch) | |
tree | 2784370cda9bbf2da9114d70f05399c0b229d28c /epan/dissectors/packet-srp.c | |
parent | Adding debian version 4.2.6-1. (diff) | |
download | wireshark-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-srp.c')
-rw-r--r-- | epan/dissectors/packet-srp.c | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/epan/dissectors/packet-srp.c b/epan/dissectors/packet-srp.c index 557c9dfb..593be9e7 100644 --- a/epan/dissectors/packet-srp.c +++ b/epan/dissectors/packet-srp.c @@ -19,22 +19,22 @@ void proto_register_ccsrl(void); void proto_reg_handoff_srp(void); /* Wireshark ID of the protocols */ -static int proto_srp = -1; -static int proto_ccsrl = -1; +static int proto_srp; +static int proto_ccsrl; /* The following hf_* variables are used to hold the Wireshark IDs of * our header fields; they are filled out when we call * proto_register_field_array() in proto_register_srp() */ -static int hf_srp_header = -1; -static int hf_srp_seqno = -1; -static int hf_srp_crc = -1; -static int hf_srp_crc_bad = -1; -static int hf_ccsrl_ls = -1; +static int hf_srp_header; +static int hf_srp_seqno; +static int hf_srp_crc; +static int hf_srp_crc_bad; +static int hf_ccsrl_ls; /* These are the ids of the subtrees that we may be creating */ -static gint ett_srp = -1; -static gint ett_ccsrl = -1; +static int ett_srp; +static int ett_ccsrl; static dissector_handle_t ccsrl_handle; static dissector_handle_t h245dg_handle; @@ -69,7 +69,7 @@ static int dissect_ccsrl(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, { proto_item *ccsrl_item; proto_tree *ccsrl_tree=NULL; - guint8 lastseg = tvb_get_guint8(tvb,0); + uint8_t lastseg = tvb_get_uint8(tvb,0); tvbuff_t *next_tvb; /* add the 'ccsrl' tree to the main tree */ @@ -92,7 +92,7 @@ static int dissect_ccsrl(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, static void dissect_srp_command(tvbuff_t * tvb, packet_info * pinfo, proto_tree * srp_tree) { tvbuff_t *next_tvb; - guint payload_len; + unsigned payload_len; if( srp_tree ) proto_tree_add_item(srp_tree,hf_srp_seqno,tvb,1,1,ENC_BIG_ENDIAN); @@ -112,7 +112,7 @@ static int dissect_srp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, proto_tree *srp_tree = NULL; proto_item *hidden_item; - guint8 header = tvb_get_guint8(tvb,0); + uint8_t header = tvb_get_uint8(tvb,0); /* add the 'srp' tree to the main tree */ if (tree) { @@ -141,8 +141,8 @@ static int dissect_srp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, } if( srp_tree ) { - guint16 crc, calc_crc; - guint crc_offset = tvb_reported_length(tvb)-2; + uint16_t crc, calc_crc; + unsigned crc_offset = tvb_reported_length(tvb)-2; crc = tvb_get_letohs(tvb,-2); /* crc includes the header */ @@ -154,7 +154,7 @@ static int dissect_srp (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree, "0x%04x (correct)", crc); } else { hidden_item = proto_tree_add_boolean(srp_tree, hf_srp_crc_bad, tvb, - crc_offset, 2, TRUE); + crc_offset, 2, true); proto_item_set_hidden(hidden_item); proto_tree_add_uint_format_value(srp_tree, hf_srp_crc, tvb, crc_offset, 2, crc, @@ -175,7 +175,7 @@ void proto_register_ccsrl (void) "Last segment indicator", HFILL}}, }; - static gint *ett[] = { + static int *ett[] = { &ett_ccsrl, }; @@ -202,7 +202,7 @@ void proto_register_srp (void) NULL, HFILL }}, }; - static gint *ett[] = { + static int *ett[] = { &ett_srp, }; |