aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-btmesh-proxy.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2023-11-20 08:16:40 +0100
committerStig Bjørlykke <stig@bjorlykke.org>2023-11-20 08:20:54 +0100
commit2a9bc63325c99653c5da873c273430add3b5e9dd (patch)
tree120dee357b44bb38baf6ca9cf592e0cef6e4bea3 /epan/dissectors/packet-btmesh-proxy.c
parente8e16400d8e3f933bd0eb1f06c661557a28e4ed4 (diff)
Remove init of proto variables
Remove init of proto, header field, expert info and subtree variables. This will reduces the binary size by approximate 1266320 bytes due to using .bss to zero-initialize the fields. The conversion is done using the tools/convert-proto-init.py script.
Diffstat (limited to 'epan/dissectors/packet-btmesh-proxy.c')
-rw-r--r--epan/dissectors/packet-btmesh-proxy.c86
1 files changed, 43 insertions, 43 deletions
diff --git a/epan/dissectors/packet-btmesh-proxy.c b/epan/dissectors/packet-btmesh-proxy.c
index 615a6a1b37..2c167737fb 100644
--- a/epan/dissectors/packet-btmesh-proxy.c
+++ b/epan/dissectors/packet-btmesh-proxy.c
@@ -44,49 +44,49 @@
void proto_register_btmesh_proxy(void);
void proto_reg_handoff_btmesh_proxy(void);
-static int proto_btmesh_proxy = -1;
-
-static int hf_btmesh_proxy_type = -1;
-static int hf_btmesh_proxy_sar = -1;
-static int hf_btmesh_proxy_data = -1;
-static int hf_btmesh_proxy_data_fragment = -1;
-static int hf_btmesh_proxy_fragments = -1;
-static int hf_btmesh_proxy_fragment = -1;
-static int hf_btmesh_proxy_fragment_overlap = -1;
-static int hf_btmesh_proxy_fragment_overlap_conflict = -1;
-static int hf_btmesh_proxy_fragment_multiple_tails = -1;
-static int hf_btmesh_proxy_fragment_too_long_fragment = -1;
-static int hf_btmesh_proxy_fragment_error = -1;
-static int hf_btmesh_proxy_fragment_count = -1;
-static int hf_btmesh_proxy_reassembled_length = -1;
-static int hf_btmesh_proxy_ivi = -1;
-static int hf_btmesh_proxy_nid = -1;
-static int hf_btmesh_proxy_ctl = -1;
-static int hf_btmesh_proxy_ttl = -1;
-static int hf_btmesh_proxy_seq = -1;
-static int hf_btmesh_proxy_src = -1;
-static int hf_btmesh_proxy_dst = -1;
-static int hf_btmesh_proxy_transport_pdu = -1;
-static int hf_btmesh_proxy_netmic = -1;
-static int hf_btmesh_proxy_control_opcode = -1;
-static int hf_btmesh_proxy_control_parameters = -1;
-static int hf_btmesh_proxy_control_filter_type = -1;
-static int hf_btmesh_proxy_control_list_size = -1;
-static int hf_btmesh_proxy_control_list_item = -1;
-
-static int ett_btmesh_proxy = -1;
-static int ett_btmesh_proxy_network_pdu = -1;
-static int ett_btmesh_proxy_transport_pdu = -1;
-static int ett_btmesh_proxy_fragments = -1;
-static int ett_btmesh_proxy_fragment = -1;
-
-static expert_field ei_btmesh_proxy_unknown_opcode = EI_INIT;
-static expert_field ei_btmesh_proxy_unknown_payload = EI_INIT;
-static expert_field ei_btmesh_proxy_wrong_ctl = EI_INIT;
-static expert_field ei_btmesh_proxy_wrong_ttl = EI_INIT;
-static expert_field ei_btmesh_proxy_wrong_dst = EI_INIT;
-static expert_field ei_btmesh_proxy_unknown_filter_type = EI_INIT;
-static expert_field ei_btmesh_proxy_wrong_address_type = EI_INIT;
+static int proto_btmesh_proxy;
+
+static int hf_btmesh_proxy_type;
+static int hf_btmesh_proxy_sar;
+static int hf_btmesh_proxy_data;
+static int hf_btmesh_proxy_data_fragment;
+static int hf_btmesh_proxy_fragments;
+static int hf_btmesh_proxy_fragment;
+static int hf_btmesh_proxy_fragment_overlap;
+static int hf_btmesh_proxy_fragment_overlap_conflict;
+static int hf_btmesh_proxy_fragment_multiple_tails;
+static int hf_btmesh_proxy_fragment_too_long_fragment;
+static int hf_btmesh_proxy_fragment_error;
+static int hf_btmesh_proxy_fragment_count;
+static int hf_btmesh_proxy_reassembled_length;
+static int hf_btmesh_proxy_ivi;
+static int hf_btmesh_proxy_nid;
+static int hf_btmesh_proxy_ctl;
+static int hf_btmesh_proxy_ttl;
+static int hf_btmesh_proxy_seq;
+static int hf_btmesh_proxy_src;
+static int hf_btmesh_proxy_dst;
+static int hf_btmesh_proxy_transport_pdu;
+static int hf_btmesh_proxy_netmic;
+static int hf_btmesh_proxy_control_opcode;
+static int hf_btmesh_proxy_control_parameters;
+static int hf_btmesh_proxy_control_filter_type;
+static int hf_btmesh_proxy_control_list_size;
+static int hf_btmesh_proxy_control_list_item;
+
+static int ett_btmesh_proxy;
+static int ett_btmesh_proxy_network_pdu;
+static int ett_btmesh_proxy_transport_pdu;
+static int ett_btmesh_proxy_fragments;
+static int ett_btmesh_proxy_fragment;
+
+static expert_field ei_btmesh_proxy_unknown_opcode;
+static expert_field ei_btmesh_proxy_unknown_payload;
+static expert_field ei_btmesh_proxy_wrong_ctl;
+static expert_field ei_btmesh_proxy_wrong_ttl;
+static expert_field ei_btmesh_proxy_wrong_dst;
+static expert_field ei_btmesh_proxy_unknown_filter_type;
+static expert_field ei_btmesh_proxy_wrong_address_type;
static dissector_handle_t btmesh_handle;
static dissector_handle_t btmesh_provisioning_handle;