diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:53 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-09-19 04:14:53 +0000 |
commit | a86c5f7cae7ec9a3398300555a0b644689d946a1 (patch) | |
tree | 39fe4b107c71174fd1e8a8ceb9a4d2aa14116248 /epan/dissectors/packet-nbifom.c | |
parent | Releasing progress-linux version 4.2.6-1~progress7.99u1. (diff) | |
download | wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.tar.xz wireshark-a86c5f7cae7ec9a3398300555a0b644689d946a1.zip |
Merging upstream version 4.4.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/packet-nbifom.c')
-rw-r--r-- | epan/dissectors/packet-nbifom.c | 128 |
1 files changed, 64 insertions, 64 deletions
diff --git a/epan/dissectors/packet-nbifom.c b/epan/dissectors/packet-nbifom.c index c5ebae77..32474f16 100644 --- a/epan/dissectors/packet-nbifom.c +++ b/epan/dissectors/packet-nbifom.c @@ -16,61 +16,61 @@ void proto_register_nbifom(void); -static int proto_nbifom = -1; -static int hf_nbifom_param_id_ul = -1; -static int hf_nbifom_param_id_dl = -1; -static int hf_nbifom_param_contents_len = -1; -static int hf_nbifom_param_contents_dflt_access = -1; -static int hf_nbifom_param_contents_status = -1; -static int hf_nbifom_param_contents_ran_rules_handling = -1; -static int hf_nbifom_param_contents_ran_rules_status = -1; -static int hf_nbifom_param_contents_access_use_ind_spare = -1; -static int hf_nbifom_param_contents_access_use_ind_wlan_access_usable_val = -1; -static int hf_nbifom_param_contents_access_use_ind_3gpp_access_usable_val = -1; -static int hf_nbifom_param_contents_mode = -1; -static int hf_nbifom_param_contents_rem_bytes = -1; -static int hf_nbifom_routing_rule_len = -1; -static int hf_nbifom_routing_rule_id = -1; -static int hf_nbifom_routing_rule_routing_access = -1; -static int hf_nbifom_routing_rule_spare = -1; -static int hf_nbifom_routing_rule_op_code = -1; -static int hf_nbifom_routing_rule_prio = -1; -static int hf_nbifom_routing_rule_flags = -1; -static int hf_nbifom_routing_rule_flags_prot_type_nxt_hdr = -1; -static int hf_nbifom_routing_rule_flags_ipsec_spi = -1; -static int hf_nbifom_routing_rule_flags_dst_addr_prefix_len = -1; -static int hf_nbifom_routing_rule_flags_src_addr_prefix_len = -1; -static int hf_nbifom_routing_rule_flags_dst_ipv6_addr = -1; -static int hf_nbifom_routing_rule_flags_src_ipv6_addr = -1; -static int hf_nbifom_routing_rule_flags_dst_ipv4_addr = -1; -static int hf_nbifom_routing_rule_flags_src_ipv4_addr = -1; -static int hf_nbifom_routing_rule_flags_spare_bits0xc0 = -1; -static int hf_nbifom_routing_rule_flags_flow_label = -1; -static int hf_nbifom_routing_rule_flags_tos = -1; -static int hf_nbifom_routing_rule_flags_end_dst_port_range = -1; -static int hf_nbifom_routing_rule_flags_start_dst_port_range = -1; -static int hf_nbifom_routing_rule_flags_end_src_port_range = -1; -static int hf_nbifom_routing_rule_flags_start_src_port_range = -1; -static int hf_nbifom_routing_rule_flags_spare_bits0xffff = -1; -static int hf_nbifom_routing_rule_src_ipv4_addr = -1; -static int hf_nbifom_routing_rule_dst_ipv4_addr = -1; -static int hf_nbifom_routing_rule_src_ipv6_addr = -1; -static int hf_nbifom_routing_rule_dst_ipv6_addr = -1; -static int hf_nbifom_routing_rule_src_addr_prefix_len = -1; -static int hf_nbifom_routing_rule_dst_addr_prefix_len = -1; -static int hf_nbifom_routing_rule_ipsec_spi = -1; -static int hf_nbifom_routing_rule_prot_type_nxt_hdr = -1; -static int hf_nbifom_routing_rule_start_src_port_range = -1; -static int hf_nbifom_routing_rule_end_src_port_range = -1; -static int hf_nbifom_routing_rule_start_dst_port_range = -1; -static int hf_nbifom_routing_rule_end_dst_port_range = -1; -static int hf_nbifom_routing_rule_tos = -1; -static int hf_nbifom_routing_rule_flow_label = -1; +static int proto_nbifom; +static int hf_nbifom_param_id_ul; +static int hf_nbifom_param_id_dl; +static int hf_nbifom_param_contents_len; +static int hf_nbifom_param_contents_dflt_access; +static int hf_nbifom_param_contents_status; +static int hf_nbifom_param_contents_ran_rules_handling; +static int hf_nbifom_param_contents_ran_rules_status; +static int hf_nbifom_param_contents_access_use_ind_spare; +static int hf_nbifom_param_contents_access_use_ind_wlan_access_usable_val; +static int hf_nbifom_param_contents_access_use_ind_3gpp_access_usable_val; +static int hf_nbifom_param_contents_mode; +static int hf_nbifom_param_contents_rem_bytes; +static int hf_nbifom_routing_rule_len; +static int hf_nbifom_routing_rule_id; +static int hf_nbifom_routing_rule_routing_access; +static int hf_nbifom_routing_rule_spare; +static int hf_nbifom_routing_rule_op_code; +static int hf_nbifom_routing_rule_prio; +static int hf_nbifom_routing_rule_flags; +static int hf_nbifom_routing_rule_flags_prot_type_nxt_hdr; +static int hf_nbifom_routing_rule_flags_ipsec_spi; +static int hf_nbifom_routing_rule_flags_dst_addr_prefix_len; +static int hf_nbifom_routing_rule_flags_src_addr_prefix_len; +static int hf_nbifom_routing_rule_flags_dst_ipv6_addr; +static int hf_nbifom_routing_rule_flags_src_ipv6_addr; +static int hf_nbifom_routing_rule_flags_dst_ipv4_addr; +static int hf_nbifom_routing_rule_flags_src_ipv4_addr; +static int hf_nbifom_routing_rule_flags_spare_bits0xc0; +static int hf_nbifom_routing_rule_flags_flow_label; +static int hf_nbifom_routing_rule_flags_tos; +static int hf_nbifom_routing_rule_flags_end_dst_port_range; +static int hf_nbifom_routing_rule_flags_start_dst_port_range; +static int hf_nbifom_routing_rule_flags_end_src_port_range; +static int hf_nbifom_routing_rule_flags_start_src_port_range; +static int hf_nbifom_routing_rule_flags_spare_bits0xffff; +static int hf_nbifom_routing_rule_src_ipv4_addr; +static int hf_nbifom_routing_rule_dst_ipv4_addr; +static int hf_nbifom_routing_rule_src_ipv6_addr; +static int hf_nbifom_routing_rule_dst_ipv6_addr; +static int hf_nbifom_routing_rule_src_addr_prefix_len; +static int hf_nbifom_routing_rule_dst_addr_prefix_len; +static int hf_nbifom_routing_rule_ipsec_spi; +static int hf_nbifom_routing_rule_prot_type_nxt_hdr; +static int hf_nbifom_routing_rule_start_src_port_range; +static int hf_nbifom_routing_rule_end_src_port_range; +static int hf_nbifom_routing_rule_start_dst_port_range; +static int hf_nbifom_routing_rule_end_dst_port_range; +static int hf_nbifom_routing_rule_tos; +static int hf_nbifom_routing_rule_flow_label; -static gint ett_nbifom = -1; -static gint ett_nbifom_param_contents = -1; -static gint ett_nbifom_routing_rule = -1; -static gint ett_nbifom_routing_rule_flags = -1; +static int ett_nbifom; +static int ett_nbifom_param_contents; +static int ett_nbifom_routing_rule; +static int ett_nbifom_routing_rule_flags; static const value_string nbifom_param_id_ue_to_nw_vals[] = { { 0x00, "Not assigned" }, @@ -168,15 +168,15 @@ static const value_string nbifom_op_code_vals[] = { }; static void -dissect_nbifom_routing_rules(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, gint offset, guint32 params_content_len) +dissect_nbifom_routing_rules(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, int offset, uint32_t params_content_len) { - gint curr_offset = offset; - guint32 i = 0, routing_rule_len; + int curr_offset = offset; + uint32_t i = 0, routing_rule_len; proto_item *item; proto_tree *subtree; - guint64 flags; + uint64_t flags; - while ((curr_offset - offset) < (gint)params_content_len) { + while ((curr_offset - offset) < (int)params_content_len) { static int * const flags1[] = { &hf_nbifom_routing_rule_routing_access, &hf_nbifom_routing_rule_spare, @@ -280,9 +280,9 @@ dissect_nbifom(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _ { proto_item *item; proto_tree *nbifom_tree, *subtree; - gint reported_len = tvb_reported_length(tvb); - gint offset = 0, saved_offset; - guint32 param_id, param_contents_len; + int reported_len = tvb_reported_length(tvb); + int offset = 0, saved_offset; + uint32_t param_id, param_contents_len; int hf_nbifom_param_id = pinfo->link_dir == P2P_DIR_UL ? hf_nbifom_param_id_ul : hf_nbifom_param_id_dl; col_append_sep_str(pinfo->cinfo, COL_PROTOCOL, "/", "NBIFOM"); @@ -347,7 +347,7 @@ dissect_nbifom(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _ default: break; } - if ((offset - saved_offset) < (gint)param_contents_len) { + if ((offset - saved_offset) < (int)param_contents_len) { proto_tree_add_item(subtree, hf_nbifom_param_contents_rem_bytes, tvb, offset, param_contents_len - (offset - saved_offset), ENC_NA); } offset = saved_offset + param_contents_len; @@ -509,7 +509,7 @@ proto_register_nbifom(void) NULL, 0x0fffff, NULL, HFILL }} }; - static gint *nbifom_subtrees[] = { + static int *nbifom_subtrees[] = { &ett_nbifom, &ett_nbifom_param_contents, &ett_nbifom_routing_rule, |