aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors
diff options
context:
space:
mode:
Diffstat (limited to 'epan/dissectors')
-rw-r--r--epan/dissectors/packet-ncp-nmas.c12
-rw-r--r--epan/dissectors/packet-ncp.c4
-rw-r--r--epan/dissectors/packet-ndmp.c8
-rw-r--r--epan/dissectors/packet-ndps.c40
-rw-r--r--epan/dissectors/packet-netbios.c8
-rw-r--r--epan/dissectors/packet-netflow.c4
-rw-r--r--epan/dissectors/packet-nfs.c92
-rw-r--r--epan/dissectors/packet-nhrp.c33
-rw-r--r--epan/dissectors/packet-nisplus.c4
-rw-r--r--epan/dissectors/packet-nsip.c16
-rw-r--r--epan/dissectors/packet-nsrp.c4
-rw-r--r--epan/dissectors/packet-ntlmssp.c28
-rw-r--r--epan/dissectors/packet-olsr.c4
-rw-r--r--epan/dissectors/packet-opensafety.c20
-rw-r--r--epan/dissectors/packet-per.c4
-rw-r--r--epan/dissectors/packet-pgm.c8
-rw-r--r--epan/dissectors/packet-ppcap.c8
-rw-r--r--epan/dissectors/packet-ppi-gps.c4
-rw-r--r--epan/dissectors/packet-ppi.c4
-rw-r--r--epan/dissectors/packet-pppoe.c8
-rw-r--r--epan/dissectors/packet-ptp.c44
-rw-r--r--epan/dissectors/packet-pvfs2.c20
-rw-r--r--epan/dissectors/packet-pw-hdlc.c4
-rw-r--r--epan/dissectors/packet-q933.c8
-rw-r--r--epan/dissectors/packet-rdp.c16
-rw-r--r--epan/dissectors/packet-rdt.c16
-rw-r--r--epan/dissectors/packet-rohc.c4
-rw-r--r--epan/dissectors/packet-roofnet.c4
-rw-r--r--epan/dissectors/packet-rtcp.c4
-rw-r--r--epan/dissectors/packet-rtmpt.c10
-rw-r--r--epan/dissectors/packet-rtps2.c15
-rw-r--r--epan/dissectors/packet-sasp.c20
-rw-r--r--epan/dissectors/packet-sbus.c20
-rw-r--r--epan/dissectors/packet-scsi-sbc.c8
-rw-r--r--epan/dissectors/packet-scsi-smc.c4
-rw-r--r--epan/dissectors/packet-sctp.c8
-rw-r--r--epan/dissectors/packet-sercosiii.c21
-rw-r--r--epan/dissectors/packet-ses.c8
-rw-r--r--epan/dissectors/packet-sflow.c24
-rw-r--r--epan/dissectors/packet-sigcomp.c4
-rw-r--r--epan/dissectors/packet-slsk.c12
-rw-r--r--epan/dissectors/packet-smb-browse.c4
-rw-r--r--epan/dissectors/packet-sna.c12
-rw-r--r--epan/dissectors/packet-spp.c4
-rw-r--r--epan/dissectors/packet-teamspeak2.c6
-rw-r--r--epan/dissectors/packet-tipc.c4
-rw-r--r--epan/dissectors/packet-tns.c4
-rw-r--r--epan/dissectors/packet-tte-pcf.c12
-rw-r--r--epan/dissectors/packet-tzsp.c8
-rw-r--r--epan/dissectors/packet-umts_fp.c4
-rw-r--r--epan/dissectors/packet-umts_mac.c30
-rw-r--r--epan/dissectors/packet-usb-hid.c4
-rw-r--r--epan/dissectors/packet-usb.c4
-rw-r--r--epan/dissectors/packet-v52.c672
-rw-r--r--epan/dissectors/packet-v5dl.c4
-rw-r--r--epan/dissectors/packet-v5ua.c8
-rw-r--r--epan/dissectors/packet-vcdu.c911
-rw-r--r--epan/dissectors/packet-wassp.c4
-rw-r--r--epan/dissectors/packet-waveagent.c12
-rw-r--r--epan/dissectors/packet-wcp.c8
-rw-r--r--epan/dissectors/packet-wifi-p2p.c71
-rw-r--r--epan/dissectors/packet-wlccp.c15
-rw-r--r--epan/dissectors/packet-ypbind.c8
-rw-r--r--epan/dissectors/packet-zbee-zcl.c5
-rw-r--r--epan/dissectors/packet-zep.c5
-rw-r--r--epan/dissectors/packet-zrtp.c534
66 files changed, 1644 insertions, 1296 deletions
diff --git a/epan/dissectors/packet-ncp-nmas.c b/epan/dissectors/packet-ncp-nmas.c
index 15abdf8aa6..a48887608a 100644
--- a/epan/dissectors/packet-ncp-nmas.c
+++ b/epan/dissectors/packet-ncp-nmas.c
@@ -35,8 +35,8 @@
static gint ett_nmas = -1;
static int proto_nmas = -1;
-static int hf_func = -1;
-static int hf_subfunc = -1;
+/* static int hf_func = -1; */
+/* static int hf_subfunc = -1; */
static int hf_ping_version = -1;
static int hf_ping_flags = -1;
static int hf_frag_handle = -1;
@@ -48,7 +48,7 @@ static int hf_nmas_version = -1;
static int hf_msg_version = -1;
static int hf_session_ident = -1;
static int hf_msg_verb = -1;
-static int hf_attribute = -1;
+/* static int hf_attribute = -1; */
static int hf_clearance = -1;
static int hf_login_sequence = -1;
static int hf_opaque = -1;
@@ -652,13 +652,17 @@ void
proto_register_nmas(void)
{
static hf_register_info hf_nmas[] = {
+/**
{ &hf_func,
{ "Function", "nmas.func", FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL }},
+**/
+/**
{ &hf_subfunc,
{ "Subfunction", "nmas.subfunc", FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL }},
+**/
{ &hf_ping_version,
{ "Ping Version", "nmas.ping_version", FT_UINT32, BASE_HEX, NULL, 0x0,
@@ -707,9 +711,11 @@ proto_register_nmas(void)
{ "Message Verb", "nmas.msg_verb", FT_UINT8, BASE_HEX, VALS(nmas_msgverb_enum), 0x0,
NULL, HFILL }},
+/**
{ &hf_attribute,
{ "Attribute Type", "nmas.attribute", FT_UINT32, BASE_DEC, VALS(nmas_attribute_enum), 0x0,
NULL, HFILL }},
+**/
{ &hf_clearance,
{ "Requested Clearance", "nmas.clearance",
diff --git a/epan/dissectors/packet-ncp.c b/epan/dissectors/packet-ncp.c
index 0cf0202470..d71bd272da 100644
--- a/epan/dissectors/packet-ncp.c
+++ b/epan/dissectors/packet-ncp.c
@@ -94,7 +94,7 @@ static int hf_ncp_completion_code = -1;
static int hf_ncp_connection_status = -1;
static int hf_ncp_slot = -1;
static int hf_ncp_control_code = -1;
-static int hf_ncp_fragment_handle = -1;
+/* static int hf_ncp_fragment_handle = -1; */
static int hf_lip_echo = -1;
static int hf_ncp_burst_command = -1;
static int hf_ncp_burst_file_handle = -1;
@@ -1022,10 +1022,12 @@ proto_register_ncp(void)
{ "Control Code", "ncp.control_code",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }},
+/**
{ &hf_ncp_fragment_handle,
{ "Fragment Handle", "ncp.fragger_hndl",
FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }},
+**/
{ &hf_lip_echo,
{ "Large Internet Packet Echo", "ncp.lip_echo",
FT_STRING, BASE_NONE, NULL, 0x0,
diff --git a/epan/dissectors/packet-ndmp.c b/epan/dissectors/packet-ndmp.c
index 7c1061d803..5aca6ea863 100644
--- a/epan/dissectors/packet-ndmp.c
+++ b/epan/dissectors/packet-ndmp.c
@@ -137,10 +137,10 @@ static int hf_ndmp_execute_cdb_flags_data_out = -1;
static int hf_ndmp_execute_cdb_timeout = -1;
static int hf_ndmp_execute_cdb_datain_len = -1;
static int hf_ndmp_execute_cdb_cdb_len = -1;
-static int hf_ndmp_execute_cdb_dataout = -1;
+/* static int hf_ndmp_execute_cdb_dataout = -1; */
static int hf_ndmp_execute_cdb_status = -1;
static int hf_ndmp_execute_cdb_dataout_len = -1;
-static int hf_ndmp_execute_cdb_datain = -1;
+/* static int hf_ndmp_execute_cdb_datain = -1; */
static int hf_ndmp_execute_cdb_sns_len = -1;
static int hf_ndmp_tape_invalid_file_num = -1;
static int hf_ndmp_tape_invalid_soft_errors = -1;
@@ -3869,9 +3869,11 @@ proto_register_ndmp(void)
"CDB length", "ndmp.execute_cdb.cdb_len", FT_UINT32, BASE_DEC,
NULL, 0, "Length of CDB", HFILL }},
+/**
{ &hf_ndmp_execute_cdb_dataout, {
"Data out", "ndmp.execute_cdb.dataout", FT_BYTES, BASE_NONE,
NULL, 0, "Data to be transferred to the SCSI device", HFILL }},
+**/
{ &hf_ndmp_execute_cdb_status, {
"Status", "ndmp.execute_cdb.status", FT_UINT8, BASE_DEC,
@@ -3881,9 +3883,11 @@ proto_register_ndmp(void)
"Data out length", "ndmp.execute_cdb.dataout_len", FT_UINT32, BASE_DEC,
NULL, 0, "Number of bytes transferred to the device", HFILL }},
+/**
{ &hf_ndmp_execute_cdb_datain, {
"Data in", "ndmp.execute_cdb.datain", FT_BYTES, BASE_NONE,
NULL, 0, "Data transferred from the SCSI device", HFILL }},
+**/
{ &hf_ndmp_execute_cdb_sns_len, {
"Sense data length", "ndmp.execute_cdb.sns_len", FT_UINT32, BASE_DEC,
diff --git a/epan/dissectors/packet-ndps.c b/epan/dissectors/packet-ndps.c
index 8a10c1f4af..581995e700 100644
--- a/epan/dissectors/packet-ndps.c
+++ b/epan/dissectors/packet-ndps.c
@@ -80,11 +80,11 @@ static int hf_ndps_length = -1;
static int hf_ndps_xid = -1;
static int hf_ndps_packet_type = -1;
static int hf_ndps_rpc_version = -1;
-static int hf_ndps_error = -1;
+/* static int hf_ndps_error = -1; */
static int hf_ndps_num_objects = -1;
static int hf_ndps_num_attributes = -1;
-static int hf_ndps_sbuffer = -1;
-static int hf_ndps_rbuffer = -1;
+/* static int hf_ndps_sbuffer = -1; */
+/* static int hf_ndps_rbuffer = -1; */
static int hf_ndps_user_name = -1;
static int hf_ndps_broker_name = -1;
static int hf_ndps_num_results = -1;
@@ -200,7 +200,7 @@ static int hf_ndps_item_ptr = -1;
static int hf_ndps_len = -1;
static int hf_ndps_limit_enc = -1;
static int hf_ndps_delivery_add_count = -1;
-static int hf_ndps_qualified_name2 = -1;
+/* static int hf_ndps_qualified_name2 = -1; */
static int hf_ndps_delivery_add_type = -1;
static int hf_ndps_criterion_type = -1;
static int hf_ndps_num_ignored_attributes = -1;
@@ -230,8 +230,8 @@ static int hf_ndps_attrs_arg = -1;
static int hf_ndps_context_len = -1;
static int hf_ndps_context = -1;
static int hf_ndps_filter = -1;
-static int hf_ndps_item_filter = -1;
-static int hf_ndps_substring_match = -1;
+/* static int hf_ndps_item_filter = -1; */
+/* static int hf_ndps_substring_match = -1; */
static int hf_ndps_time_limit = -1;
static int hf_ndps_count_limit = -1;
static int hf_ndps_operator = -1;
@@ -254,7 +254,7 @@ static int hf_font_type = -1;
static int hf_printer_id = -1;
static int hf_ndps_font_name = -1;
static int hf_ndps_return_code = -1;
-static int hf_ndps_banner_count = -1;
+/* static int hf_ndps_banner_count = -1; */
static int hf_ndps_banner_name = -1;
static int hf_ndps_font_type_count = -1;
static int hf_font_type_name = -1;
@@ -276,7 +276,7 @@ static int hf_res_type = -1;
static int hf_file_timestamp = -1;
static int hf_sub_complete = -1;
static int hf_doc_content = -1;
-static int hf_ndps_doc_name = -1;
+/* static int hf_ndps_doc_name = -1; */
static int hf_print_arg = -1;
static int hf_local_id = -1;
static int hf_ndps_included_doc_len = -1;
@@ -309,7 +309,7 @@ static int hf_info_int16 = -1;
static int hf_info_int32 = -1;
static int hf_info_boolean = -1;
static int hf_info_string = -1;
-static int hf_info_bytes = -1;
+/* static int hf_info_bytes = -1; */
static int hf_ndps_list_local_servers_type = -1;
static int hf_ndps_registry_name = -1;
static int hf_ndps_client_server_type = -1;
@@ -335,7 +335,7 @@ static int hf_ndps_object_ids_13 = -1;
static int hf_ndps_object_ids_14 = -1;
static int hf_ndps_object_ids_15 = -1;
static int hf_ndps_object_ids_16 = -1;
-static int hf_ndps_attribute_time = -1;
+/* static int hf_ndps_attribute_time = -1; */
static int hf_print_security = -1;
static int hf_notify_time_interval = -1;
static int hf_notify_sequence_number = -1;
@@ -8353,10 +8353,12 @@ proto_register_ndps(void)
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }},
+/**
{ &hf_ndps_error,
{ "NDPS Error", "spx.ndps_error",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }},
+**/
{ &hf_ndps_other_error_string,
{ "Extended Error String", "ndps.ext_err_string",
@@ -8403,15 +8405,19 @@ proto_register_ndps(void)
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }},
+/**
{ &hf_ndps_sbuffer,
{ "Server", "ndps.sbuffer",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }},
+**/
+/**
{ &hf_ndps_rbuffer,
{ "Connection", "ndps.rbuffer",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }},
+**/
{ &hf_ndps_user_name,
{ "Trustee Name", "ndps.user_name",
@@ -8598,10 +8604,12 @@ proto_register_ndps(void)
FT_UINT32, BASE_HEX, VALS(qualified_name_enum), 0x0,
NULL, HFILL }},
+/**
{ &hf_ndps_qualified_name2,
{ "Qualified Name Type", "ndps.qual_name_type2",
FT_UINT32, BASE_HEX, VALS(qualified_name_enum2), 0x0,
NULL, HFILL }},
+**/
{ &hf_ndps_item_count,
{ "Number of Items", "ndps.item_count",
@@ -9138,15 +9146,19 @@ proto_register_ndps(void)
FT_UINT32, BASE_HEX, VALS(ndps_filter_enum), 0x0,
NULL, HFILL }},
+/**
{ &hf_ndps_item_filter,
{ "Filter Item Operation", "ndps.filter_item",
FT_UINT32, BASE_HEX, VALS(ndps_filter_item_enum), 0x0,
NULL, HFILL }},
+**/
+/**
{ &hf_ndps_substring_match,
{ "Substring Match", "ndps.substring_match",
FT_UINT32, BASE_HEX, VALS(ndps_match_criteria_enum), 0x0,
NULL, HFILL }},
+**/
{ &hf_ndps_time_limit,
{ "Time Limit", "ndps.time_limit",
@@ -9258,10 +9270,12 @@ proto_register_ndps(void)
FT_UINT32, BASE_HEX, VALS(ndps_error_types), 0x0,
NULL, HFILL }},
+/**
{ &hf_ndps_banner_count,
{ "Number of Banners", "ndps.banner_count",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }},
+**/
{ &hf_ndps_banner_name,
{ "Banner Name", "ndps.banner_name",
@@ -9409,10 +9423,12 @@ proto_register_ndps(void)
FT_UINT32, BASE_DEC, VALS(ndps_doc_content_enum), 0x0,
NULL, HFILL }},
+/**
{ &hf_ndps_doc_name,
{ "Document Name", "ndps.doc_name",
FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
+**/
{ &hf_local_id,
{ "Local ID", "ndps.local_id",
@@ -9569,10 +9585,12 @@ proto_register_ndps(void)
FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
+/**
{ &hf_info_bytes,
{ "Byte Value", "ndps.info_bytes",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
+**/
{ &hf_ndps_list_local_servers_type,
{ "Server Type", "ndps.list_local_server_type",
@@ -9699,10 +9717,12 @@ proto_register_ndps(void)
FT_NONE, BASE_NONE, NULL,
0x0, NULL, HFILL }},
+/**
{ &hf_ndps_attribute_time,
{ "Time", "ndps.attribute_time",
FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL, NULL, 0x0,
NULL, HFILL }},
+**/
{ &hf_print_security,
{ "Printer Security", "ndps.print_security",
diff --git a/epan/dissectors/packet-netbios.c b/epan/dissectors/packet-netbios.c
index 0a86c324fa..754028e804 100644
--- a/epan/dissectors/packet-netbios.c
+++ b/epan/dissectors/packet-netbios.c
@@ -102,7 +102,7 @@ static int hf_netb_termination_indicator = -1;
static int hf_netb_num_data_bytes_accepted = -1;
static int hf_netb_local_ses_no = -1;
static int hf_netb_remote_ses_no = -1;
-static int hf_netb_data1 = -1;
+/* static int hf_netb_data1 = -1; */
static int hf_netb_data2 = -1;
static int hf_netb_data2_frame = -1;
static int hf_netb_data2_user = -1;
@@ -1355,20 +1355,22 @@ void proto_register_netbios(void)
{ "Remote Session No.", "netbios.remote_session", FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL }},
+/**
{ &hf_netb_data1,
{ "DATA1 value", "netbios.data1", FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL }},
+**/
{ &hf_netb_data2,
{ "DATA2 value", "netbios.data2", FT_UINT16, BASE_HEX, NULL, 0x0,
NULL, HFILL }},
{ &hf_netb_data2_frame,
- { "Data length exceeds maximum frame size", "netbios.data2.frame", FT_BOOLEAN, 16,
+ { "Data length exceeds maximum frame size", "netbios.data2.frame", FT_BOOLEAN, 16,
TFS(&tfs_yes_no), 0x8000, NULL, HFILL }},
{ &hf_netb_data2_user,
- { "Data length exceeds user's buffer", "netbios.data2.user", FT_BOOLEAN, 16,
+ { "Data length exceeds user's buffer", "netbios.data2.user", FT_BOOLEAN, 16,
TFS(&tfs_yes_no), 0x4000, NULL, HFILL }},
{ &hf_netb_data2_status,
diff --git a/epan/dissectors/packet-netflow.c b/epan/dissectors/packet-netflow.c
index 0a852d33f9..d5a58a257b 100644
--- a/epan/dissectors/packet-netflow.c
+++ b/epan/dissectors/packet-netflow.c
@@ -1339,7 +1339,7 @@ static int hf_cflow_transport_rtp_jitter_max_string = -1; /* ID: 3
static int hf_cflow_transport_rtp_payload_type = -1; /* ID: 37041 */
static int hf_cflow_transport_rtp_payload_type_string = -1; /* ID: 37041 */
static int hf_cflow_transport_bytes_out_of_order = -1; /* ID: 37071 */
-static int hf_cflow_transport_packets_out_of_order = -1; /* ID: 37074 */
+/* static int hf_cflow_transport_packets_out_of_order = -1; */ /* ID: 37074 */
static int hf_cflow_transport_packets_out_of_order_string = -1; /* ID: 37074 */
static int hf_cflow_transport_tcp_window_size_min = -1; /* ID: 37083 */
static int hf_cflow_transport_tcp_window_size_min_string = -1; /* ID: 37083 */
@@ -7449,12 +7449,14 @@ proto_register_netflow(void)
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL}
},
+/**
{&hf_cflow_transport_packets_out_of_order,
{"Transport Packets Out of Order",
"cflow.transport_packets_out_of_order",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL}
},
+**/
{&hf_cflow_transport_packets_out_of_order_string,
{"Transport Packets Out of Order",
"cflow.transport_packets_out_of_order",
diff --git a/epan/dissectors/packet-nfs.c b/epan/dissectors/packet-nfs.c
index e785811335..a8419e063a 100644
--- a/epan/dissectors/packet-nfs.c
+++ b/epan/dissectors/packet-nfs.c
@@ -64,7 +64,7 @@ static int hf_nfs_procedure_v2 = -1;
static int hf_nfs_procedure_v3 = -1;
static int hf_nfs_procedure_v4 = -1;
static int hf_nfs_fh_length = -1;
-static int hf_nfs_impl_id4_len = -1;
+/* static int hf_nfs_impl_id4_len = -1; */
static int hf_nfs_fh_hash = -1;
static int hf_nfs_fh_fhandle_data = -1;
static int hf_nfs_fh_mount_fileid = -1;
@@ -110,8 +110,8 @@ static int hf_nfs_fh_xfn_len = -1;
static int hf_nfs_fh_xfn_inode = -1;
static int hf_nfs_fh_xfn_generation = -1;
static int hf_nfs_fh_dentry = -1;
-static int hf_nfs_fh_dev = -1;
-static int hf_nfs_fh_xdev = -1;
+/* static int hf_nfs_fh_dev = -1; */
+/* static int hf_nfs_fh_xdev = -1; */
static int hf_nfs_fh_dirinode = -1;
static int hf_nfs_fh_pinode = -1;
static int hf_nfs_fh_hp_len = -1;
@@ -236,7 +236,7 @@ static int hf_nfs_dtime = -1;
static int hf_nfs_dtime_sec = -1;
static int hf_nfs_dtime_nsec = -1;
-static int hf_nfs_fattr_type = -1;
+/* static int hf_nfs_fattr_type = -1; */
static int hf_nfs_fattr_nlink = -1;
static int hf_nfs_fattr_uid = -1;
static int hf_nfs_fattr_gid = -1;
@@ -252,7 +252,7 @@ static int hf_nfs_fattr3_uid = -1;
static int hf_nfs_fattr3_gid = -1;
static int hf_nfs_fattr3_size = -1;
static int hf_nfs_fattr3_used = -1;
-static int hf_nfs_fattr3_rdev = -1;
+/* static int hf_nfs_fattr3_rdev = -1; */
static int hf_nfs_fattr3_fsid = -1;
static int hf_nfs_fattr3_fileid = -1;
static int hf_nfs_wcc_attr_size = -1;
@@ -306,7 +306,7 @@ static int hf_nfs_tag4 = -1;
static int hf_nfs_ops_count4 = -1;
static int hf_nfs_component4 = -1;
static int hf_nfs_clientid4 = -1;
-static int hf_nfs_ace4 = -1;
+/* static int hf_nfs_ace4 = -1; */
static int hf_nfs_recall = -1;
static int hf_nfs_open_claim_type4 = -1;
static int hf_nfs_opentype4 = -1;
@@ -370,7 +370,7 @@ static int hf_nfs_server = -1;
static int hf_nfs_fslocation4 = -1;
static int hf_nfs_stable_how4 = -1;
static int hf_nfs_dirlist4_eof = -1;
-static int hf_nfs_stateid4 = -1;
+/* static int hf_nfs_stateid4 = -1; */
static int hf_nfs_offset4 = -1;
static int hf_nfs_specdata1 = -1;
static int hf_nfs_specdata2 = -1;
@@ -388,8 +388,8 @@ static int hf_nfs_nfstime4_nseconds = -1;
static int hf_nfs_fsid4_major = -1;
static int hf_nfs_fsid4_minor = -1;
static int hf_nfs_acetype4 = -1;
-static int hf_nfs_aceflag4 = -1;
-static int hf_nfs_acemask4 = -1;
+/* static int hf_nfs_aceflag4 = -1; */
+/* static int hf_nfs_acemask4 = -1; */
static int hf_nfs_delegate_type = -1;
static int hf_nfs_secinfo_flavor = -1;
static int hf_nfs_secinfo_arr4 = -1;
@@ -400,7 +400,7 @@ static int hf_nfs_verifier4 = -1;
static int hf_nfs_cookie4 = -1;
static int hf_nfs_cookieverf4 = -1;
static int hf_nfs_cb_program = -1;
-static int hf_nfs_cb_location = -1;
+/* static int hf_nfs_cb_location = -1; */
static int hf_nfs_recall4 = -1;
static int hf_nfs_filesize = -1;
static int hf_nfs_count4 = -1;
@@ -408,7 +408,7 @@ static int hf_nfs_count4_dircount = -1;
static int hf_nfs_count4_maxcount = -1;
static int hf_nfs_minorversion = -1;
static int hf_nfs_open_owner4 = -1;
-static int hf_nfs_lock_owner4 = -1;
+/* static int hf_nfs_lock_owner4 = -1; */
static int hf_nfs_new_lock_owner = -1;
static int hf_nfs_sec_oid4 = -1;
static int hf_nfs_qop4 = -1;
@@ -431,9 +431,9 @@ static int hf_nfs_length4_minlength = -1;
static int hf_nfs_layouttype4 = -1;
static int hf_nfs_layoutreturn_type4 = -1;
static int hf_nfs_iomode4 = -1;
-static int hf_nfs_stripetype4 = -1;
-static int hf_nfs_mdscommit4 = -1;
-static int hf_nfs_stripeunit4 = -1;
+/* static int hf_nfs_stripetype4 = -1; */
+/* static int hf_nfs_mdscommit4 = -1; */
+/* static int hf_nfs_stripeunit4 = -1; */
static int hf_nfs_newtime4 = -1;
static int hf_nfs_newoffset4 = -1;
static int hf_nfs_layout_avail4 = -1;
@@ -443,8 +443,8 @@ static int hf_nfs_deviceid4 = -1;
static int hf_nfs_devicenum4 = -1;
static int hf_nfs_deviceidx4 = -1;
static int hf_nfs_layout4 = -1;
-static int hf_nfs_stripedevs4 = -1;
-static int hf_nfs_devaddr4 = -1;
+/* static int hf_nfs_stripedevs4 = -1; */
+/* static int hf_nfs_devaddr4 = -1; */
static int hf_nfs_return_on_close4 = -1;
static int hf_nfs_slotid4 = -1;
static int hf_nfs_high_slotid4 = -1;
@@ -453,9 +453,9 @@ static int hf_nfs_serverscope4 = -1;
static int hf_nfs_minorid4 = -1;
static int hf_nfs_majorid4 = -1;
static int hf_nfs_padsize4 = -1;
-static int hf_nfs_cbrenforce4 = -1;
-static int hf_nfs_hashalg4 = -1;
-static int hf_nfs_ssvlen4 = -1;
+/* static int hf_nfs_cbrenforce4 = -1; */
+/* static int hf_nfs_hashalg4 = -1; */
+/* static int hf_nfs_ssvlen4 = -1; */
static int hf_nfs_maxreqsize4 = -1;
static int hf_nfs_maxrespsize4 = -1;
static int hf_nfs_maxrespsizecached4 = -1;
@@ -493,10 +493,10 @@ static int hf_nfs_create_session_flags_persist = -1;
static int hf_nfs_create_session_flags_conn_back_chan = -1;
static int hf_nfs_create_session_flags_conn_rdma = -1;
static int hf_nfs_cachethis4 = -1;
-static int hf_nfs_util4 = -1;
-static int hf_nfs_first_stripe_idx4 = -1;
-static int hf_nfs_layout_count = -1;
-static int hf_nfs_pattern_offset = -1;
+/* static int hf_nfs_util4 = -1; */
+/* static int hf_nfs_first_stripe_idx4 = -1; */
+/* static int hf_nfs_layout_count = -1; */
+/* static int hf_nfs_pattern_offset = -1; */
static int hf_nfs_notification_bitmap4 = -1;
static int hf_nfs_lrs_present = -1;
static int hf_nfs_nfl_util = -1;
@@ -10644,9 +10644,11 @@ proto_register_nfs(void)
{ &hf_nfs_procedure_v4, {
"V4 Procedure", "nfs.procedure_v4", FT_UINT32, BASE_DEC,
VALS(nfsv4_proc_vals), 0, NULL, HFILL }},
+/**
{ &hf_nfs_impl_id4_len, {
"Implementation ID length", "nfs.impl_id4.length", FT_UINT32, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_nfs_fh_length, {
"length", "nfs.fh.length", FT_UINT32, BASE_DEC,
NULL, 0, "file handle length", HFILL }},
@@ -10782,12 +10784,16 @@ proto_register_nfs(void)
{ &hf_nfs_fh_dentry, {
"dentry", "nfs.fh.dentry", FT_UINT32, BASE_HEX,
NULL, 0, "dentry (cookie)", HFILL }},
+/**
{ &hf_nfs_fh_dev, {
"device", "nfs.fh.dev", FT_UINT32, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
+/**
{ &hf_nfs_fh_xdev, {
"exported device", "nfs.fh.xdev", FT_UINT32, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_nfs_fh_dirinode, {
"directory inode", "nfs.fh.dirinode", FT_UINT32, BASE_DEC,
NULL, 0, NULL, HFILL }},
@@ -11044,9 +11050,11 @@ proto_register_nfs(void)
"case_preserving", "nfs.pathconf.case_preserving", FT_BOOLEAN, BASE_NONE,
TFS(&tfs_yes_no), 0x0, "file name cases are preserved", HFILL }},
+/**
{ &hf_nfs_fattr_type, {
"type", "nfs.fattr.type", FT_UINT32, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_nfs_fattr_nlink, {
"nlink", "nfs.fattr.nlink", FT_UINT32, BASE_DEC,
@@ -11108,9 +11116,11 @@ proto_register_nfs(void)
"used", "nfs.fattr3.used", FT_UINT64, BASE_DEC,
NULL, 0, NULL, HFILL }},
+/**
{ &hf_nfs_fattr3_rdev, {
"rdev", "nfs.fattr3.rdev", FT_UINT32, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_nfs_fattr3_fsid, {
"fsid", "nfs.fattr3.fsid", FT_UINT64, BASE_HEX_DEC,
@@ -11214,9 +11224,11 @@ proto_register_nfs(void)
"clientid", "nfs.clientid", FT_UINT64, BASE_HEX,
NULL, 0, "Client ID", HFILL }},
+/**
{ &hf_nfs_ace4, {
"ace", "nfs.ace", FT_STRING, BASE_NONE,
NULL, 0, "Access Control Entry", HFILL }},
+**/
{ &hf_nfs_recall, {
"Recall", "nfs.recall", FT_BOOLEAN, BASE_NONE,
@@ -11374,9 +11386,11 @@ proto_register_nfs(void)
"eof", "nfs.dirlist4.eof", FT_BOOLEAN, BASE_NONE,
TFS(&tfs_yes_no), 0x0, NULL, HFILL }},
+/**
{ &hf_nfs_stateid4, {
"stateid", "nfs.stateid4", FT_UINT64, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_nfs_offset4, {
"offset", "nfs.offset4", FT_UINT64, BASE_DEC,
@@ -11446,13 +11460,17 @@ proto_register_nfs(void)
"acetype", "nfs.acetype4", FT_UINT32, BASE_DEC,
VALS(names_acetype4), 0, NULL, HFILL }},
+/**
{ &hf_nfs_aceflag4, {
"aceflag", "nfs.aceflag4", FT_UINT32, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
+/**
{ &hf_nfs_acemask4, {
"acemask", "nfs.acemask4", FT_UINT32, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_nfs_fattr4_size, {
"size", "nfs.fattr4.size", FT_UINT64, BASE_DEC,
@@ -11586,9 +11604,11 @@ proto_register_nfs(void)
"cookieverf", "nfs.cookieverf4", FT_UINT64, BASE_DEC,
NULL, 0, NULL, HFILL }},
+/**
{ &hf_nfs_cb_location, {
"cb_location", "nfs.cb_location", FT_UINT32, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_nfs_cb_program, {
"cb_program", "nfs.cb_program", FT_UINT32, BASE_HEX,
@@ -11682,9 +11702,11 @@ proto_register_nfs(void)
"owner", "nfs.open_owner4", FT_BYTES, BASE_NONE,
NULL, 0, NULL, HFILL }},
+/**
{ &hf_nfs_lock_owner4, {
"owner", "nfs.lock_owner4", FT_BYTES, BASE_NONE,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_nfs_createmode4, {
"Create Mode", "nfs.createmode4", FT_UINT32, BASE_DEC,
@@ -11874,25 +11896,35 @@ proto_register_nfs(void)
"IO mode", "nfs.iomode", FT_UINT32, BASE_DEC,
VALS(iomode_names), 0, NULL, HFILL }},
+/**
{ &hf_nfs_stripetype4, {
"stripe type", "nfs.stripetype", FT_UINT32, BASE_DEC,
VALS(stripetype_names), 0, NULL, HFILL }},
+**/
+/**
{ &hf_nfs_stripeunit4, {
"stripe unit", "nfs.stripeunit", FT_UINT64, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
+/**
{ &hf_nfs_util4, {
"util", "nfs.util", FT_UINT32, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
+/**
{ &hf_nfs_first_stripe_idx4, {
"first stripe index", "nfs.stripeindex", FT_UINT32, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
+/**
{ &hf_nfs_pattern_offset, {
"layout pattern offset", "nfs.patternoffset", FT_UINT64, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_nfs_notification_bitmap4, {
"notification bitmap", "nfs.notificationbitmap", FT_UINT32, BASE_DEC,
@@ -11914,9 +11946,11 @@ proto_register_nfs(void)
"layout available?", "nfs.layoutavail", FT_BOOLEAN, BASE_NONE,
TFS(&tfs_yes_no), 0x0, NULL, HFILL }},
+/**
{ &hf_nfs_mdscommit4, {
"MDS commit?", "nfs.mdscommit", FT_BOOLEAN, BASE_NONE,
TFS(&tfs_yes_no), 0x0, NULL, HFILL }},
+**/
{ &hf_nfs_layoutupdate4, {
"layout update", "nfs.layoutupdate", FT_BYTES, BASE_NONE,
@@ -11938,18 +11972,24 @@ proto_register_nfs(void)
"layout", "nfs.layout", FT_BYTES, BASE_NONE,
NULL, 0, NULL, HFILL }},
+/**
{ &hf_nfs_layout_count, {
"layout", "nfs.layoutcount", FT_UINT32, BASE_DEC,
NULL, 0, "layout count", HFILL }},
+**/
+/**
{ &hf_nfs_stripedevs4, {
"stripe devs", "nfs.stripedevs", FT_UINT32, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
+/**
{ &hf_nfs_devaddr4, {
"device addr", "nfs.devaddr", FT_BYTES, BASE_NONE,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_nfs_return_on_close4, {
"return on close?", "nfs.retclose4", FT_BOOLEAN, BASE_NONE,
@@ -11990,17 +12030,23 @@ proto_register_nfs(void)
"hdr pad size", "nfs.padsize4", FT_UINT32, BASE_DEC,
NULL, 0, NULL, HFILL }},
+/**
{ &hf_nfs_cbrenforce4, {
"binding enforce?", "nfs.cbrenforce4", FT_BOOLEAN, BASE_NONE,
TFS(&tfs_yes_no), 0x0, NULL, HFILL }},
+**/
+/**
{ &hf_nfs_hashalg4, {
"hash alg", "nfs.hashalg4", FT_UINT32, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
+/**
{ &hf_nfs_ssvlen4, {
"ssv len", "nfs.ssvlen4", FT_UINT32, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_nfs_maxreqsize4, {
"max req size", "nfs.maxreqsize4", FT_UINT32, BASE_DEC,
diff --git a/epan/dissectors/packet-nhrp.c b/epan/dissectors/packet-nhrp.c
index 7d84d8cd0e..b688d61a2b 100644
--- a/epan/dissectors/packet-nhrp.c
+++ b/epan/dissectors/packet-nhrp.c
@@ -82,9 +82,8 @@ static int hf_nhrp_flag_U2 = -1;
static int hf_nhrp_flag_S = -1;
static int hf_nhrp_flag_NAT = -1;
static int hf_nhrp_src_nbma_addr = -1;
-#if 0
-static int hf_nhrp_src_nbma_saddr = -1; /* TBD: Not used */
-#endif
+
+/* static int hf_nhrp_src_nbma_saddr = -1; */ /* TBD: Not used */
static int hf_nhrp_src_prot_addr = -1;
static int hf_nhrp_dst_prot_addr = -1;
static int hf_nhrp_request_id = -1;
@@ -103,21 +102,15 @@ static int hf_nhrp_cli_saddr_tl_len = -1;
static int hf_nhrp_cli_prot_len = -1;
static int hf_nhrp_pref = -1;
static int hf_nhrp_client_nbma_addr = -1;
-#if 0
-static int hf_nhrp_client_nbma_saddr = -1; /* TBD: Not used */
-#endif
+/* static int hf_nhrp_client_nbma_saddr = -1; */ /* TBD: Not used */
static int hf_nhrp_client_prot_addr = -1;
static int hf_nhrp_ext_C = -1;
static int hf_nhrp_ext_type = -1;
static int hf_nhrp_ext_len = -1;
-#if 0
-static int hf_nhrp_ext_value = -1; /* TBD: Not used */
-#endif
+/* static int hf_nhrp_ext_value = -1; */ /* TBD: Not used */
static int hf_nhrp_error_code = -1;
static int hf_nhrp_error_offset = -1;
-#if 0
-static int hf_nhrp_error_packet = -1; /* TBD: Not used */
-#endif
+/* static int hf_nhrp_error_packet = -1; */ /* TBD: Not used */
static int hf_nhrp_auth_ext_reserved = -1;
static int hf_nhrp_auth_ext_spi = -1;
@@ -1184,13 +1177,13 @@ proto_register_nhrp(void)
FT_IPv4, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
-#if 0
+/**
{ &hf_nhrp_src_nbma_saddr,
{ "Source NBMA Sub Address", "nhrp.src.nbma.saddr",
FT_UINT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
-#endif
+**/
{ &hf_nhrp_src_prot_addr,
{ "Source Protocol Address", "nhrp.src.prot.addr",
FT_IPv4, BASE_NONE, NULL, 0x0,
@@ -1272,13 +1265,13 @@ proto_register_nhrp(void)
FT_IPv4, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
-#if 0
+/**
{ &hf_nhrp_client_nbma_saddr,
{ "Client NBMA Sub Address", "nhrp.client.nbma.saddr",
FT_UINT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
-#endif
+**/
{ &hf_nhrp_client_prot_addr,
{ "Client Protocol Address", "nhrp.client.prot.addr",
FT_IPv4, BASE_NONE, NULL, 0x0,
@@ -1300,13 +1293,13 @@ proto_register_nhrp(void)
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
-#if 0
+/**
{ &hf_nhrp_ext_value,
{ "Extension Value", "nhrp.ext.val",
FT_UINT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
-#endif
+**/
{ &hf_nhrp_error_code,
{ "Error Code", "nhrp.err.code",
@@ -1318,13 +1311,13 @@ proto_register_nhrp(void)
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
-#if 0
+/**
{ &hf_nhrp_error_packet,
{ "Errored Packet", "nhrp.err.pkt",
FT_UINT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
-#endif
+**/
{ &hf_nhrp_auth_ext_reserved,
{ "Reserved", "nhrp.auth_ext.reserved",
FT_UINT16, BASE_DEC, NULL, 0x0,
diff --git a/epan/dissectors/packet-nisplus.c b/epan/dissectors/packet-nisplus.c
index ec762ede7c..e5fb1739b8 100644
--- a/epan/dissectors/packet-nisplus.c
+++ b/epan/dissectors/packet-nisplus.c
@@ -85,7 +85,7 @@ static int hf_nisplus_entry = -1;
static int hf_nisplus_entry_type = -1;
static int hf_nisplus_entry_cols = -1;
static int hf_nisplus_entry_col = -1;
-static int hf_nisplus_entry_flags = -1;
+/* static int hf_nisplus_entry_flags = -1; */
static int hf_nisplus_entry_val = -1;
static int hf_nisplus_entry_mask = -1;
static int hf_nisplus_entry_mask_binary = -1;
@@ -1561,9 +1561,11 @@ proto_register_nis(void)
"column", "nisplus.entry.col", FT_NONE, BASE_NONE,
NULL, 0, "Entry Column", HFILL }},
+/**
{ &hf_nisplus_entry_flags, {
"flags", "nisplus.entry.flags", FT_UINT32, BASE_HEX,
NULL, 0, "Entry Col Flags", HFILL }},
+**/
{ &hf_nisplus_entry_val, {
"val", "nisplus.entry.val", FT_STRING, BASE_NONE,
diff --git a/epan/dissectors/packet-nsip.c b/epan/dissectors/packet-nsip.c
index 1d5d0266a8..b25996b048 100644
--- a/epan/dissectors/packet-nsip.c
+++ b/epan/dissectors/packet-nsip.c
@@ -47,8 +47,8 @@ static int hf_nsip_ns_vci = -1;
static int hf_nsip_pdu_type = -1;
static int hf_nsip_bvci = -1;
static int hf_nsip_nsei = -1;
-static int hf_nsip_ip4_elements = -1;
-static int hf_nsip_ip6_elements = -1;
+/* static int hf_nsip_ip4_elements = -1; */
+/* static int hf_nsip_ip6_elements = -1; */
static int hf_nsip_max_num_ns_vc = -1;
static int hf_nsip_num_ip4_endpoints = -1;
static int hf_nsip_num_ip6_endpoints = -1;
@@ -63,8 +63,8 @@ static int hf_nsip_control_bits_r = -1;
static int hf_nsip_control_bits_c = -1;
static int hf_nsip_control_bits_spare = -1;
static int hf_nsip_transaction_id = -1;
-static int hf_nsip_ip_element_ip_address_ipv4 = -1;
-static int hf_nsip_ip_element_ip_address_ipv6 = -1;
+/* static int hf_nsip_ip_element_ip_address_ipv4 = -1; */
+/* static int hf_nsip_ip_element_ip_address_ipv6 = -1; */
static int hf_nsip_ip_element_udp_port = -1;
static int hf_nsip_ip_element_signalling_weight = -1;
static int hf_nsip_ip_element_data_weight = -1;
@@ -1050,16 +1050,20 @@ proto_register_nsip(void)
FT_UINT16, BASE_DEC, NULL, 0x0,
"Network Service Entity Identifier", HFILL }
},
+/**
{ &hf_nsip_ip4_elements,
{ "IP4 elements", "nsip.ip4_elements",
FT_NONE, BASE_NONE, NULL, 0x0,
"List of IP4 elements", HFILL }
},
+**/
+/**
{ &hf_nsip_ip6_elements,
{ "IP6 elements", "nsip.ip6_elements",
FT_NONE, BASE_NONE, NULL, 0x0,
"List of IP6 elements", HFILL }
},
+**/
{ &hf_nsip_max_num_ns_vc,
{ "Maximum number of NS-VCs", "nsip.max_num_ns_vc",
FT_UINT16, BASE_DEC, NULL, 0x0,
@@ -1130,16 +1134,20 @@ proto_register_nsip(void)
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
+/**
{ &hf_nsip_ip_element_ip_address_ipv4,
{ "IP Address", "nsip.ip_element.ipv4_address",
FT_IPv4, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
+**/
+/**
{ &hf_nsip_ip_element_ip_address_ipv6,
{ "IP Address", "nsip.ip_element.ipv6_address",
FT_IPv6, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
+**/
{ &hf_nsip_ip_element_udp_port,
{ "UDP Port", "nsip.ip_element.udp_port",
FT_UINT16, BASE_DEC, NULL, 0x0,
diff --git a/epan/dissectors/packet-nsrp.c b/epan/dissectors/packet-nsrp.c
index 9bbc66a523..c120fd2ec9 100644
--- a/epan/dissectors/packet-nsrp.c
+++ b/epan/dissectors/packet-nsrp.c
@@ -79,7 +79,7 @@ static int hf_nsrp_ifnum = -1;
/* Dada defined for HA Message */
static int hf_nsrp_msglen = -1;
static int hf_nsrp_encflag = -1;
-static int hf_nsrp_notused = -1;
+/* static int hf_nsrp_notused = -1; */
static int hf_nsrp_total_size = -1;
@@ -430,11 +430,13 @@ proto_register_nsrp(void)
FT_UINT8, BASE_DEC, VALS(nsrp_encflag_vals), 0,
"NSRP ENCRYPT FLAG", HFILL }
},
+/**
{ &hf_nsrp_notused,
{ "Not Used", "nsrp.notused",
FT_UINT8, BASE_DEC, NULL, 0,
NULL, HFILL }
},
+**/
{ &hf_nsrp_total_size,
{ "Total Size", "nsrp.totalsize",
FT_UINT32, BASE_DEC, NULL, 0,
diff --git a/epan/dissectors/packet-ntlmssp.c b/epan/dissectors/packet-ntlmssp.c
index 2b37091fb4..4ee4b05447 100644
--- a/epan/dissectors/packet-ntlmssp.c
+++ b/epan/dissectors/packet-ntlmssp.c
@@ -170,13 +170,13 @@ static int hf_ntlmssp_negotiate_flags_10000000 = -1;
static int hf_ntlmssp_negotiate_flags_20000000 = -1;
static int hf_ntlmssp_negotiate_flags_40000000 = -1;
static int hf_ntlmssp_negotiate_flags_80000000 = -1;
-static int hf_ntlmssp_negotiate_workstation_strlen = -1;
-static int hf_ntlmssp_negotiate_workstation_maxlen = -1;
-static int hf_ntlmssp_negotiate_workstation_buffer = -1;
+/* static int hf_ntlmssp_negotiate_workstation_strlen = -1; */
+/* static int hf_ntlmssp_negotiate_workstation_maxlen = -1; */
+/* static int hf_ntlmssp_negotiate_workstation_buffer = -1; */
static int hf_ntlmssp_negotiate_workstation = -1;
-static int hf_ntlmssp_negotiate_domain_strlen = -1;
-static int hf_ntlmssp_negotiate_domain_maxlen = -1;
-static int hf_ntlmssp_negotiate_domain_buffer = -1;
+/* static int hf_ntlmssp_negotiate_domain_strlen = -1; */
+/* static int hf_ntlmssp_negotiate_domain_maxlen = -1; */
+/* static int hf_ntlmssp_negotiate_domain_buffer = -1; */
static int hf_ntlmssp_negotiate_domain = -1;
static int hf_ntlmssp_ntlm_server_challenge = -1;
static int hf_ntlmssp_ntlm_client_challenge = -1;
@@ -243,7 +243,7 @@ static int hf_ntlmssp_verf_randompad = -1;
static int hf_ntlmssp_verf_hmacmd5 = -1;
static int hf_ntlmssp_verf_crc32 = -1;
static int hf_ntlmssp_verf_sequence = -1;
-static int hf_ntlmssp_decrypted_payload = -1;
+/* static int hf_ntlmssp_decrypted_payload = -1; */
static int hf_ntlmssp_ntlmv2_response = -1;
static int hf_ntlmssp_ntlmv2_response_hmac = -1;
@@ -2901,41 +2901,53 @@ proto_register_ntlmssp(void)
FT_BOOLEAN, 32, TFS (&tfs_set_notset), NTLMSSP_NEGOTIATE_56,
"56-bit encryption is supported", HFILL }
},
+/**
{ &hf_ntlmssp_negotiate_workstation_strlen,
{ "Calling workstation name length", "ntlmssp.negotiate.callingworkstation.strlen",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
+**/
+/**
{ &hf_ntlmssp_negotiate_workstation_maxlen,
{ "Calling workstation name max length", "ntlmssp.negotiate.callingworkstation.maxlen",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
+**/
+/**
{ &hf_ntlmssp_negotiate_workstation_buffer,
{ "Calling workstation name buffer", "ntlmssp.negotiate.callingworkstation.buffer",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
+**/
{ &hf_ntlmssp_negotiate_workstation,
{ "Calling workstation name", "ntlmssp.negotiate.callingworkstation",
FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
+/**
{ &hf_ntlmssp_negotiate_domain_strlen,
{ "Calling workstation domain length", "ntlmssp.negotiate.domain.strlen",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
+**/
+/**
{ &hf_ntlmssp_negotiate_domain_maxlen,
{ "Calling workstation domain max length", "ntlmssp.negotiate.domain.maxlen",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
+**/
+/**
{ &hf_ntlmssp_negotiate_domain_buffer,
{ "Calling workstation domain buffer", "ntlmssp.negotiate.domain.buffer",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
+**/
{ &hf_ntlmssp_negotiate_domain,
{ "Calling workstation domain", "ntlmssp.negotiate.domain",
FT_STRING, BASE_NONE, NULL, 0x0,
@@ -3224,11 +3236,13 @@ proto_register_ntlmssp(void)
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
+/**
{ &hf_ntlmssp_decrypted_payload,
{ "NTLM Decrypted Payload", "ntlmssp.decrypted_payload",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
+**/
{ &hf_ntlmssp_verf_randompad,
{ "Random Pad", "ntlmssp.verf.randompad",
FT_UINT32, BASE_HEX, NULL, 0x0,
diff --git a/epan/dissectors/packet-olsr.c b/epan/dissectors/packet-olsr.c
index 0fa685535d..b37165345d 100644
--- a/epan/dissectors/packet-olsr.c
+++ b/epan/dissectors/packet-olsr.c
@@ -78,7 +78,7 @@ static int hf_olsr_interface_addr = -1;
static int hf_olsr_netmask = -1;
static int hf_olsr_network_addr = -1;
-static int hf_olsr_neighbor6 = -1;
+/* static int hf_olsr_neighbor6 = -1; */
static int hf_olsr_origin6_addr = -1;
static int hf_olsr_neighbor6_addr = -1;
static int hf_olsr_interface6_addr = -1;
@@ -825,12 +825,14 @@ void proto_register_olsr(void) {
}
},
+/**
{ &hf_olsr_neighbor6,
{ "Neighbor Address", "olsr.neighbor6",
FT_BYTES, BASE_NONE, NULL, 0,
NULL, HFILL
}
},
+**/
{ &hf_olsr_origin6_addr,
{ "Originator Address", "olsr.origin6_addr",
diff --git a/epan/dissectors/packet-opensafety.c b/epan/dissectors/packet-opensafety.c
index ef20b748ae..23e3bf17c6 100644
--- a/epan/dissectors/packet-opensafety.c
+++ b/epan/dissectors/packet-opensafety.c
@@ -356,7 +356,7 @@ static int hf_oss_msg_network = -1;
static int hf_oss_msg_sender = -1;
static int hf_oss_msg_receiver = -1;
static int hf_oss_length= -1;
-static int hf_oss_data = -1;
+/* static int hf_oss_data = -1; */
static int hf_oss_crc = -1;
static int hf_oss_crc_valid = -1;
@@ -374,18 +374,18 @@ static int hf_oss_snmt_error_code = -1;
static int hf_oss_ssdo_server = -1;
static int hf_oss_ssdo_client = -1;
-static int hf_oss_ssdo_sano = -1;
+/* static int hf_oss_ssdo_sano = -1; */
static int hf_oss_ssdo_sacmd = -1;
static int hf_oss_ssdo_sod_index = -1;
static int hf_oss_ssdo_sod_subindex = -1;
static int hf_oss_ssdo_payload = -1;
static int hf_oss_ssdo_payload_size = -1;
-static int hf_oss_ssdo_segment_size = -1;
-static int hf_oss_ssdo_inhibit_time = -1;
+/* static int hf_oss_ssdo_segment_size = -1; */
+/* static int hf_oss_ssdo_inhibit_time = -1; */
static int hf_oss_ssdo_abort_code = -1;
static int hf_oss_ssdo_sacmd_access_type = -1;
-static int hf_oss_ssdo_sacmd_reserved = -1;
+/* static int hf_oss_ssdo_sacmd_reserved = -1; */
static int hf_oss_ssdo_sacmd_abort_transfer = -1;
static int hf_oss_ssdo_sacmd_segmentation = -1;
static int hf_oss_ssdo_sacmd_toggle = -1;
@@ -1734,9 +1734,11 @@ proto_register_opensafety(void)
{ &hf_oss_length,
{ "Length", "opensafety.length",
FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL } },
+/**
{ &hf_oss_data,
{ "Data", "opensafety.data",
FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL } },
+**/
{ &hf_oss_crc,
{ "CRC", "opensafety.crc.data",
FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } },
@@ -1784,9 +1786,11 @@ proto_register_opensafety(void)
{ &hf_oss_ssdo_client,
{ "SSDO Client", "opensafety.ssdo.client",
FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } },
+/**
{ &hf_oss_ssdo_sano,
{ "SOD Access Request Number", "opensafety.ssdo.sano",
FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } },
+**/
{ &hf_oss_ssdo_sacmd,
{ "SOD Access Command", "opensafety.ssdo.sacmd",
FT_UINT8, BASE_HEX, VALS(ssdo_sacmd_values), 0x0, NULL, HFILL } },
@@ -1802,12 +1806,16 @@ proto_register_opensafety(void)
{ &hf_oss_ssdo_payload_size,
{ "SOD Payload Size", "opensafety.ssdo.payloadsize",
FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } },
+/**
{ &hf_oss_ssdo_segment_size,
{ "SOD Segment Size", "opensafety.ssdo.segmentsize",
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } },
+**/
+/**
{ &hf_oss_ssdo_inhibit_time,
{ "Inhibit Time", "opensafety.ssdo.inhibittime",
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } },
+**/
{ &hf_oss_ssdo_abort_code,
{ "Abort Code", "opensafety.ssdo.abortcode", FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL } },
@@ -1815,9 +1823,11 @@ proto_register_opensafety(void)
{ &hf_oss_ssdo_sacmd_access_type,
{ "Access Type", "opensafety.ssdo.sacmd.access",
FT_BOOLEAN, 8, TFS(&opensafety_sacmd_acc), OPENSAFETY_SSDO_SACMD_ACC, NULL, HFILL } },
+/**
{ &hf_oss_ssdo_sacmd_reserved,
{ "Reserved", "opensafety.ssdo.sacmd.reserved",
FT_BOOLEAN, 8, TFS(&opensafety_sacmd_res), OPENSAFETY_SSDO_SACMD_RES, NULL, HFILL } },
+**/
{ &hf_oss_ssdo_sacmd_abort_transfer,
{ "Abort Transfer", "opensafety.ssdo.sacmd.abort_transfer",
FT_BOOLEAN, 8, TFS(&opensafety_sacmd_abrt), OPENSAFETY_SSDO_SACMD_ABRT, NULL, HFILL } },
diff --git a/epan/dissectors/packet-per.c b/epan/dissectors/packet-per.c
index a0d2d2c685..62302b0e34 100644
--- a/epan/dissectors/packet-per.c
+++ b/epan/dissectors/packet-per.c
@@ -72,7 +72,7 @@ static int hf_per_single_ASN1_type = -1; /* T_single_ASN1_type */
static int hf_per_octet_aligned = -1; /* T_octet_aligned */
static int hf_per_arbitrary = -1; /* T_arbitrary */
static int hf_per_integer_length = -1; /* Show integer length if "show internal per fields" */
-static int hf_per_debug_pos = -1;
+/* static int hf_per_debug_pos = -1; */
static gint ett_per_open_type = -1;
static gint ett_per_containing = -1;
@@ -2543,10 +2543,12 @@ proto_register_per(void)
{ "integer length", "per.integer_length",
FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
+/**
{ &hf_per_debug_pos,
{ "Current bit offset", "per.debug_pos",
FT_UINT32, BASE_DEC, NULL, 0,
NULL, HFILL }},
+**/
};
static gint *ett[] =
{
diff --git a/epan/dissectors/packet-pgm.c b/epan/dissectors/packet-pgm.c
index 9e4b77e976..6f6b83f13f 100644
--- a/epan/dissectors/packet-pgm.c
+++ b/epan/dissectors/packet-pgm.c
@@ -161,8 +161,8 @@ static int hf_pgm_spm_pathafi = -1;
static int hf_pgm_spm_res = -1;
static int hf_pgm_spm_path = -1;
static int hf_pgm_spm_path6 = -1;
-static int hf_pgm_data_sqn = -1;
-static int hf_pgm_data_trail = -1;
+/* static int hf_pgm_data_sqn = -1; */
+/* static int hf_pgm_data_trail = -1; */
static int hf_pgm_nak_sqn = -1;
static int hf_pgm_nak_srcafi = -1;
static int hf_pgm_nak_srcres = -1;
@@ -1158,12 +1158,16 @@ proto_register_pgm(void)
{ &hf_pgm_spm_path6,
{ "Path NLA", "pgm.spm.path", FT_IPv6, BASE_NONE,
NULL, 0x0, NULL, HFILL }},
+/**
{ &hf_pgm_data_sqn,
{ "Data Packet Sequence Number", "pgm.data.sqn", FT_UINT32, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
+**/
+/**
{ &hf_pgm_data_trail,
{ "Trailing Edge Sequence Number", "pgm.data.trail", FT_UINT32, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
+**/
{ &hf_pgm_nak_sqn,
{ "Requested Sequence Number", "pgm.nak.sqn", FT_UINT32, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
diff --git a/epan/dissectors/packet-ppcap.c b/epan/dissectors/packet-ppcap.c
index 172a4ce078..a9afdad657 100644
--- a/epan/dissectors/packet-ppcap.c
+++ b/epan/dissectors/packet-ppcap.c
@@ -485,11 +485,11 @@ void proto_register_ppcap(void)
{ &hf_ppcap_address_type,
{ "Address Type", "ppcap.address_type", FT_UINT16,
BASE_DEC, VALS(address_type_values), 0x00 , NULL, HFILL}},
-#if 0
+/**
{ &hf_ppcap_source_address_type,
{ "Source Address Type", "ppcap.source_address_type", FT_UINT16,
BASE_DEC, VALS(address_type_values), 0x00 , NULL, HFILL}},
-#endif
+**/
{ &hf_ppcap_ssn,
{ "SSN", "ppcap.ssn", FT_UINT16,
BASE_DEC, NULL, 0x00, NULL, HFILL}},
@@ -508,11 +508,11 @@ void proto_register_ppcap(void)
{ &hf_ppcap_destreserved,
{ "Reserved", "ppcap.destreserved", FT_UINT16,
BASE_DEC, NULL, 0x00, NULL, HFILL}},
-#if 0
+/**
{ &hf_ppcap_destination_address_type,
{ "Destination Address Type", "ppcap.destination_address_type", FT_UINT16,
BASE_DEC, VALS(address_type_values), 0x00, NULL, HFILL}},
-#endif
+**/
{ &hf_ppcap_ssn1,
{ "SSN", "ppcap.ssn1", FT_UINT8,
BASE_DEC, NULL, 0x00, NULL, HFILL}},
diff --git a/epan/dissectors/packet-ppi-gps.c b/epan/dissectors/packet-ppi-gps.c
index b31fb13cdf..0ccc4706b8 100644
--- a/epan/dissectors/packet-ppi-gps.c
+++ b/epan/dissectors/packet-ppi-gps.c
@@ -80,7 +80,7 @@ static int hf_ppi_gps_lat = -1;
static int hf_ppi_gps_alt = -1;
static int hf_ppi_gps_alt_gnd = -1;
static int hf_ppi_gps_gpstime = -1;
-static int hf_ppi_gps_fractime = -1;
+/* static int hf_ppi_gps_fractime = -1; */
static int hf_ppi_gps_eph = -1;
static int hf_ppi_gps_epv = -1;
static int hf_ppi_gps_ept = -1;
@@ -533,10 +533,12 @@ proto_register_ppi_gps(void) {
{ "GPSTimestamp", "ppi_gps.gpstime",
FT_ABSOLUTE_TIME, ABSOLUTE_TIME_UTC, NULL, 0x0,
"GPSTimestamp packet was received at", HFILL } },
+/**
{ &hf_ppi_gps_fractime,
{ "fractional Timestamp", "ppi_gps.fractime",
FT_DOUBLE, BASE_NONE, NULL, 0x0,
"fractional GPSTimestamp packet was received at", HFILL } },
+**/
{ &hf_ppi_gps_eph,
{ "Horizontal Error (m)", "ppi_gps.eph",
FT_DOUBLE, BASE_NONE, NULL, 0x0,
diff --git a/epan/dissectors/packet-ppi.c b/epan/dissectors/packet-ppi.c
index 3324a55b08..315e325550 100644
--- a/epan/dissectors/packet-ppi.c
+++ b/epan/dissectors/packet-ppi.c
@@ -273,7 +273,7 @@ static int hf_80211n_mac_phy_evm3 = -1;
/* 802.11n-Extensions A-MPDU fragments */
static int hf_ampdu_reassembled_in = -1;
-static int hf_ampdu_segments = -1;
+/* static int hf_ampdu_segments = -1; */
static int hf_ampdu_segment = -1;
static int hf_ampdu_count = -1;
@@ -1259,9 +1259,11 @@ proto_register_ppi(void)
{ &hf_ampdu_segment,
{ "A-MPDU", "ppi.80211n-mac.ampdu",
FT_FRAMENUM, BASE_NONE, NULL, 0x0, "802.11n Aggregated MAC Protocol Data Unit (A-MPDU)", HFILL }},
+/**
{ &hf_ampdu_segments,
{ "Reassembled A-MPDU", "ppi.80211n-mac.ampdu.reassembled",
FT_NONE, BASE_NONE, NULL, 0x0, "Reassembled Aggregated MAC Protocol Data Unit (A-MPDU)", HFILL }},
+**/
{ &hf_ampdu_reassembled_in,
{ "Reassembled A-MPDU in frame", "ppi.80211n-mac.ampdu.reassembled_in",
FT_FRAMENUM, BASE_NONE, NULL, 0x0,
diff --git a/epan/dissectors/packet-pppoe.c b/epan/dissectors/packet-pppoe.c
index 65501c5c99..579a70c6fe 100644
--- a/epan/dissectors/packet-pppoe.c
+++ b/epan/dissectors/packet-pppoe.c
@@ -101,8 +101,8 @@ static gint hf_pppoed_tag_generic_error = -1;
/* Session protocol fields */
static gint hf_pppoes_tags = -1;
-static gint hf_pppoes_tag = -1;
-static gint hf_pppoes_tag_credits = -1;
+/* static gint hf_pppoes_tag = -1; */
+/* static gint hf_pppoes_tag_credits = -1; */
static gint hf_pppoes_tag_credits_fcn = -1;
static gint hf_pppoes_tag_credits_bcn = -1;
@@ -1214,16 +1214,20 @@ void proto_register_pppoes(void)
NULL, 0x0, NULL, HFILL
}
},
+/**
{ &hf_pppoes_tag,
{ "Tag", "pppoes.tag", FT_UINT16, BASE_HEX,
VALS(tag_vals), 0x0, NULL, HFILL
}
},
+**/
+/**
{ &hf_pppoes_tag_credits,
{ "Credits", "pppoes.tags.credits", FT_BYTES, BASE_NONE,
NULL, 0x0, NULL, HFILL
}
},
+**/
{ &hf_pppoes_tag_credits_fcn,
{ "FCN", "pppoes.tags.credits.fcn", FT_UINT16, BASE_DEC,
NULL, 0x0, NULL, HFILL
diff --git a/epan/dissectors/packet-ptp.c b/epan/dissectors/packet-ptp.c
index 237da1582a..f7712b151c 100644
--- a/epan/dissectors/packet-ptp.c
+++ b/epan/dissectors/packet-ptp.c
@@ -540,7 +540,7 @@ static int hf_ptp_mm_boundaryhops = -1;
static int hf_ptp_mm_managementmessagekey = -1;
static int hf_ptp_mm_parameterlength = -1;
/*parameterlength > 0*/
-static int hf_ptp_mm_messageparameters = -1;
+/* static int hf_ptp_mm_messageparameters = -1; */
/*ptp_mm_clock_identity (parameterlength = 64)*/
static int hf_ptp_mm_clock_identity_clockcommunicationtechnology = -1;
static int hf_ptp_mm_clock_identity_clockuuidfield = -1;
@@ -638,7 +638,7 @@ static int hf_ptp_mm_global_time_data_set_epochnumber = -1;
static int hf_ptp_mm_update_global_time_properties_currentutcoffset = -1;
static int hf_ptp_mm_update_global_time_properties_leap59 = -1;
static int hf_ptp_mm_update_global_time_properties_leap61 = -1;
-static int hf_ptp_mm_update_global_time_properties_epochnumber = -1;
+/* static int hf_ptp_mm_update_global_time_properties_epochnumber = -1; */
/*ptp_mm_get_foreign_data_set (parameterlength = 4)*/
static int hf_ptp_mm_get_foreign_data_set_recordkey = -1;
@@ -1252,7 +1252,7 @@ static int hf_ptp_v2_logmessageperiod = -1;
/*Fields for PTP_Announce (=an) messages*/
-static int hf_ptp_v2_an_origintimestamp = -1; /*Field for seconds & nanoseconds*/
+/* static int hf_ptp_v2_an_origintimestamp = -1; */ /*Field for seconds & nanoseconds*/
static int hf_ptp_v2_an_origintimestamp_seconds = -1;
static int hf_ptp_v2_an_origintimestamp_nanoseconds = -1;
static int hf_ptp_v2_an_origincurrentutcoffset = -1;
@@ -1291,13 +1291,13 @@ static int hf_ptp_v2_an_tlv_pathsequence = -1;
static int hf_ptp_v2_an_tlv_data = -1;
/*Fields for PTP_Sync AND PTP_DelayRequest (=sdr) messages*/
-static int hf_ptp_v2_sdr_origintimestamp = -1; /*Field for seconds & nanoseconds*/
+/* static int hf_ptp_v2_sdr_origintimestamp = -1; */ /*Field for seconds & nanoseconds*/
static int hf_ptp_v2_sdr_origintimestamp_seconds = -1;
static int hf_ptp_v2_sdr_origintimestamp_nanoseconds = -1;
/*Fields for PTP_Follow_Up (=fu) messages*/
-static int hf_ptp_v2_fu_preciseorigintimestamp = -1; /*Field for seconds & nanoseconds*/
+/* static int hf_ptp_v2_fu_preciseorigintimestamp = -1; */ /*Field for seconds & nanoseconds*/
static int hf_ptp_v2_fu_preciseorigintimestamp_seconds = -1;
static int hf_ptp_v2_fu_preciseorigintimestamp_nanoseconds = -1;
/* Fields for the Follow_Up Information TLV */
@@ -1311,7 +1311,7 @@ static int hf_ptp_as_fu_tlv_last_gm_phase_change = -1;
static int hf_ptp_as_fu_tlv_scaled_last_gm_phase_change = -1;
/*Fields for PTP_DelayResponse (=dr) messages*/
-static int hf_ptp_v2_dr_receivetimestamp = -1; /*Field for seconds & nanoseconds*/
+/* static int hf_ptp_v2_dr_receivetimestamp = -1; */ /*Field for seconds & nanoseconds*/
static int hf_ptp_v2_dr_receivetimestamp_seconds = -1;
static int hf_ptp_v2_dr_receivetimestamp_nanoseconds = -1;
static int hf_ptp_v2_dr_requestingportidentity = -1;
@@ -1319,13 +1319,13 @@ static int hf_ptp_v2_dr_requestingsourceportid = -1;
/*Fields for PTP_PDelayRequest (=pdrq) messages*/
-static int hf_ptp_v2_pdrq_origintimestamp = -1; /*Field for seconds & nanoseconds*/
+/* static int hf_ptp_v2_pdrq_origintimestamp = -1; */ /*Field for seconds & nanoseconds*/
static int hf_ptp_v2_pdrq_origintimestamp_seconds = -1;
static int hf_ptp_v2_pdrq_origintimestamp_nanoseconds = -1;
/*Fields for PTP_PDelayResponse (=pdrs) messages*/
-static int hf_ptp_v2_pdrs_requestreceipttimestamp = -1; /*Field for seconds & nanoseconds*/
+/* static int hf_ptp_v2_pdrs_requestreceipttimestamp = -1; */ /*Field for seconds & nanoseconds*/
static int hf_ptp_v2_pdrs_requestreceipttimestamp_seconds = -1;
static int hf_ptp_v2_pdrs_requestreceipttimestamp_nanoseconds = -1;
static int hf_ptp_v2_pdrs_requestingportidentity = -1;
@@ -1333,7 +1333,7 @@ static int hf_ptp_v2_pdrs_requestingsourceportid = -1;
/*Fields for PTP_PDelayResponseFollowUp (=pdfu) messages*/
-static int hf_ptp_v2_pdfu_responseorigintimestamp = -1; /*Field for seconds & nanoseconds*/
+/* static int hf_ptp_v2_pdfu_responseorigintimestamp = -1; */ /*Field for seconds & nanoseconds*/
static int hf_ptp_v2_pdfu_responseorigintimestamp_seconds = -1;
static int hf_ptp_v2_pdfu_responseorigintimestamp_nanoseconds = -1;
static int hf_ptp_v2_pdfu_requestingportidentity = -1;
@@ -1396,12 +1396,12 @@ static int hf_ptp_v2_mm_profileIdentity = -1;
static int hf_ptp_v2_mm_pad = -1;
static int hf_ptp_v2_mm_numberOfFaultRecords = -1;
-static int hf_ptp_v2_mm_faultRecord = -1;
+/* static int hf_ptp_v2_mm_faultRecord = -1; */
static int hf_ptp_v2_mm_initializationKey = -1;
static int hf_ptp_v2_mm_severityCode = -1;
static int hf_ptp_v2_mm_faultRecordLength = -1;
-static int hf_ptp_v2_mm_faultTime = -1;
+/* static int hf_ptp_v2_mm_faultTime = -1; */
static int hf_ptp_v2_mm_faultTime_s = -1;
static int hf_ptp_v2_mm_faultTime_ns = -1;
static int hf_ptp_v2_mm_faultValue = -1;
@@ -4103,11 +4103,13 @@ proto_register_ptp(void)
NULL, HFILL }
},
/*parameterlength > 0*/
+/**
{ &hf_ptp_mm_messageparameters,
{ "messageParameters", "ptp.mm.messageparameters",
FT_BYTES, BASE_NONE, NULL, 0x00,
NULL, HFILL }
},
+**/
/*ptp_mm_clock_identity (parameterlength = 64)*/
{ &hf_ptp_mm_clock_identity_clockcommunicationtechnology,
{ "clockCommunicationTechnology", "ptp.mm.clock.identity.clockcommunicationtechnology",
@@ -4509,11 +4511,13 @@ proto_register_ptp(void)
FT_BOOLEAN, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
+/**
{ &hf_ptp_mm_update_global_time_properties_epochnumber,
{ "epochNumber", "ptp.mm.update.global.time.properties.epochnumber",
FT_UINT16, BASE_DEC, NULL, 0x00,
NULL, HFILL }
},
+**/
/*ptp_mm_get_foreign_data_set (parameterlength = 4)*/
{ &hf_ptp_mm_get_foreign_data_set_recordkey,
{ "recordKey", "ptp.mm.get.foreign.data.set.recordkey",
@@ -4717,11 +4721,13 @@ proto_register_ptp(void)
},
/*Fields for PTP_Announce (=an) messages*/
+/**
{ &hf_ptp_v2_an_origintimestamp,
{ "originTimestamp", "ptp.v2.an.origintimestamp",
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
NULL, HFILL }
},
+**/
{ &hf_ptp_v2_an_origintimestamp_seconds,
{ "originTimestamp (seconds)", "ptp.v2.an.origintimestamp.seconds",
FT_UINT64, BASE_DEC, NULL, 0x00,
@@ -4872,11 +4878,13 @@ proto_register_ptp(void)
},
/*Fields for PTP_Sync AND PTP_DelayRequest (=sdr) messages*/
+/**
{ &hf_ptp_v2_sdr_origintimestamp,
{ "originTimestamp", "ptp.v2.sdr.origintimestamp",
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
NULL, HFILL }
},
+**/
{ &hf_ptp_v2_sdr_origintimestamp_seconds,
{ "originTimestamp (seconds)", "ptp.v2.sdr.origintimestamp.seconds",
FT_UINT64, BASE_DEC, NULL, 0x00,
@@ -4889,11 +4897,13 @@ proto_register_ptp(void)
},
/*Fields for PTP_Follow_Up (=fu) messages*/
+/**
{ &hf_ptp_v2_fu_preciseorigintimestamp,
{ "preciseOriginTimestamp", "ptp.v2.fu.preciseorigintimestamp",
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
NULL, HFILL }
},
+**/
{ &hf_ptp_v2_fu_preciseorigintimestamp_seconds,
{ "preciseOriginTimestamp (seconds)", "ptp.v2.fu.preciseorigintimestamp.seconds",
FT_UINT64, BASE_DEC, NULL, 0x00,
@@ -4947,11 +4957,13 @@ proto_register_ptp(void)
},
/*Fields for PTP_DelayResponse (=dr) messages*/
+/**
{ &hf_ptp_v2_dr_receivetimestamp,
{ "receiveTimestamp", "ptp.v2.dr.receivetimestamp",
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
NULL, HFILL }
},
+**/
{ &hf_ptp_v2_dr_receivetimestamp_seconds,
{ "receiveTimestamp (seconds)", "ptp.v2.dr.receivetimestamp.seconds",
FT_UINT64, BASE_DEC, NULL, 0x00,
@@ -4974,11 +4986,13 @@ proto_register_ptp(void)
},
/*Fields for PTP_PDelayRequest (=pdrq) messages*/
+/**
{ &hf_ptp_v2_pdrq_origintimestamp,
{ "originTimestamp", "ptp.v2.pdrq.origintimestamp",
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
NULL, HFILL }
},
+**/
{ &hf_ptp_v2_pdrq_origintimestamp_seconds,
{ "originTimestamp (seconds)", "ptp.v2.pdrq.origintimestamp.seconds",
FT_UINT64, BASE_DEC, NULL, 0x00,
@@ -4991,11 +5005,13 @@ proto_register_ptp(void)
},
/*Fields for PTP_PDelayResponse (=pdrs) messages*/
+/**
{ &hf_ptp_v2_pdrs_requestreceipttimestamp,
{ "requestreceiptTimestamp", "ptp.v2.pdrs.requestreceipttimestamp",
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
NULL, HFILL }
},
+**/
{ &hf_ptp_v2_pdrs_requestreceipttimestamp_seconds,
{ "requestreceiptTimestamp (seconds)", "ptp.v2.pdrs.requestreceipttimestamp.seconds",
FT_UINT64, BASE_DEC, NULL, 0x00,
@@ -5018,11 +5034,13 @@ proto_register_ptp(void)
},
/*Fields for PTP_PDelayResponseFollowUp (=pdfu) messages*/
+/**
{ &hf_ptp_v2_pdfu_responseorigintimestamp,
{ "responseOriginTimestamp", "ptp.v2.pdfu.responseorigintimestamp",
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
NULL, HFILL }
},
+**/
{ &hf_ptp_v2_pdfu_responseorigintimestamp_seconds,
{ "responseOriginTimestamp (seconds)", "ptp.v2.pdfu.responseorigintimestamp.seconds",
FT_UINT64, BASE_DEC, NULL, 0x00,
@@ -5286,11 +5304,13 @@ proto_register_ptp(void)
FT_UINT16, BASE_DEC, NULL, 0x00,
NULL, HFILL }
},
+/**
{ &hf_ptp_v2_mm_faultRecord,
{ "fault record", "ptp.v2.mm.faultRecord",
FT_BYTES, BASE_NONE, NULL, 0x00,
NULL, HFILL }
},
+**/
{ &hf_ptp_v2_mm_faultRecordLength,
{ "fault record length", "ptp.v2.mm.faultRecordLength",
FT_UINT16, BASE_DEC, NULL, 0x00,
@@ -5331,11 +5351,13 @@ proto_register_ptp(void)
FT_UINT8, BASE_DEC, NULL, 0x00,
NULL, HFILL }
},
+/**
{ &hf_ptp_v2_mm_faultTime,
{ "Fault time", "ptp.v2.mm.faultTime",
FT_RELATIVE_TIME, BASE_NONE, NULL, 0x00,
NULL, HFILL }
},
+**/
{ &hf_ptp_v2_mm_faultTime_s,
{ "Fault time (seconds)", "ptp.v2.mm.faultTime.seconds",
FT_UINT64, BASE_DEC, NULL, 0x00,
diff --git a/epan/dissectors/packet-pvfs2.c b/epan/dissectors/packet-pvfs2.c
index abafb80ff0..ce3152a650 100644
--- a/epan/dissectors/packet-pvfs2.c
+++ b/epan/dissectors/packet-pvfs2.c
@@ -63,12 +63,12 @@ static int hf_pvfs_magic_nr = -1;
static int hf_pvfs_mode = -1;
static int hf_pvfs_tag = -1;
static int hf_pvfs_size = -1;
-static int hf_pvfs_release_number = -1;
+/* static int hf_pvfs_release_number = -1; */
static int hf_pvfs_encoding = -1;
static int hf_pvfs_server_op = -1;
-static int hf_pvfs_handle = -1;
+/* static int hf_pvfs_handle = -1; */
static int hf_pvfs_fs_id = -1;
-static int hf_pvfs_attrmask = -1;
+/* static int hf_pvfs_attrmask = -1; */
static int hf_pvfs_attr = -1;
static int hf_pvfs_ds_type = -1;
static int hf_pvfs_error = -1;
@@ -90,7 +90,7 @@ static int hf_pvfs_parent_mtime_nsec = -1;
static int hf_pvfs_parent_ctime = -1;
static int hf_pvfs_parent_ctime_sec = -1;
static int hf_pvfs_parent_ctime_nsec = -1;
-static int hf_pvfs_dirent_count = -1;
+/* static int hf_pvfs_dirent_count = -1; */
static int hf_pvfs_directory_version = -1;
static int hf_pvfs_path = -1;
static int hf_pvfs_total_completed = -1;
@@ -100,7 +100,7 @@ static int hf_pvfs_io_type = -1;
static int hf_pvfs_flowproto_type = -1;
static int hf_pvfs_server_param = -1;
static int hf_pvfs_prev_value = -1;
-static int hf_pvfs_ram_free_bytes = -1;
+/* static int hf_pvfs_ram_free_bytes = -1; */
static int hf_pvfs_bytes_available = -1;
static int hf_pvfs_bytes_total = -1;
static int hf_pvfs_ram_bytes_total = -1;
@@ -3251,9 +3251,11 @@ proto_register_pvfs(void)
{ "Size", "pvfs.size", FT_UINT64, BASE_DEC,
NULL, 0, NULL, HFILL }},
+/**
{ &hf_pvfs_release_number,
{ "Release Number", "pvfs.release_number", FT_UINT32, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_pvfs_encoding,
{ "Encoding", "pvfs.encoding", FT_UINT32, BASE_DEC,
@@ -3263,17 +3265,21 @@ proto_register_pvfs(void)
{ "Server Operation", "pvfs.server_op", FT_UINT32, BASE_DEC,
VALS(names_pvfs_server_op), 0, NULL, HFILL }},
+/**
{ &hf_pvfs_handle,
{ "Handle", "pvfs.handle", FT_BYTES, BASE_NONE,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_pvfs_fs_id,
{ "fs_id", "pvfs.fs_id", FT_UINT32, BASE_HEX,
NULL, 0, "File System ID", HFILL }},
+/**
{ &hf_pvfs_attrmask,
{ "attrmask", "pvfs.attrmask", FT_UINT32, BASE_HEX,
NULL, 0, "Attribute Mask", HFILL }},
+**/
{ &hf_pvfs_attr,
{ "attr", "pvfs.attribute", FT_UINT32, BASE_HEX,
@@ -3359,9 +3365,11 @@ proto_register_pvfs(void)
{ "microseconds", "pvfs.parent_ctime.usec", FT_UINT32, BASE_DEC,
NULL, 0, "Creation Time (microseconds)", HFILL }},
+/**
{ &hf_pvfs_dirent_count,
{ "Dir Entry Count", "pvfs.dirent_count", FT_UINT64, BASE_DEC,
NULL, 0, "Directory Entry Count", HFILL }},
+**/
{ &hf_pvfs_directory_version,
{ "Directory Version", "pvfs.directory_version", FT_UINT64, BASE_HEX,
@@ -3399,9 +3407,11 @@ proto_register_pvfs(void)
{ "Previous Value", "pvfs.prev_value", FT_UINT64, BASE_DEC,
NULL, 0, NULL, HFILL }},
+/**
{ &hf_pvfs_ram_free_bytes,
{ "RAM Free Bytes", "pvfs.ram.free_bytes", FT_UINT64, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_pvfs_bytes_available,
{ "Bytes Available", "pvfs.bytes_available", FT_UINT64, BASE_DEC,
diff --git a/epan/dissectors/packet-pw-hdlc.c b/epan/dissectors/packet-pw-hdlc.c
index 9016613971..4fff9f85e7 100644
--- a/epan/dissectors/packet-pw-hdlc.c
+++ b/epan/dissectors/packet-pw-hdlc.c
@@ -50,7 +50,7 @@ static gint proto_pw_hdlc_nocw_hdlc_ppp = -1;
static gint ett_pw_hdlc = -1;
-static int hf_pw_hdlc = -1;
+/* static int hf_pw_hdlc = -1; */
static int hf_pw_hdlc_address_field = -1;
static int hf_pw_hdlc_address = -1;
static int hf_pw_hdlc_cr_bit = -1;
@@ -182,12 +182,14 @@ static void dissect_pw_hdlc_nocw_hdlc_ppp( tvbuff_t * tvb, packet_info * pinfo,
void proto_register_pw_hdlc(void)
{
static hf_register_info hf[] = {
+/**
{
&hf_pw_hdlc,
{
"PW HDLC", "pw_hdlc", FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL
}
},
+**/
{
&hf_pw_hdlc_address_field,
{
diff --git a/epan/dissectors/packet-q933.c b/epan/dissectors/packet-q933.c
index d04146326b..ffd28ac2f5 100644
--- a/epan/dissectors/packet-q933.c
+++ b/epan/dissectors/packet-q933.c
@@ -48,9 +48,9 @@ static int hf_q933_extension_ind = -1;
static int hf_q933_calling_party_number = -1;
static int hf_q933_called_party_number = -1;
static int hf_q933_connected_number = -1;
-static int hf_q933_redirecting_number = -1;
-static int hf_q933_screening_ind = -1;
-static int hf_q933_presentation_ind = -1;
+/* static int hf_q933_redirecting_number = -1; */
+static int hf_q933_screening_ind = -1;
+static int hf_q933_presentation_ind = -1;
static int hf_q933_report_type = -1;
static int hf_q933_link_verf_txseq = -1;
static int hf_q933_link_verf_rxseq = -1;
@@ -2243,9 +2243,11 @@ proto_register_q933(void)
{ "Connected party number digits", "q933.connected_number.digits", FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
+/**
{ &hf_q933_redirecting_number,
{ "Redirecting party number digits", "q933.redirecting_number.digits", FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
+**/
{ &hf_q933_report_type,
{ "Report type", "q933.report_type", FT_UINT8, BASE_DEC, VALS(q933_report_type_vals), 0x0,
NULL, HFILL }},
diff --git a/epan/dissectors/packet-rdp.c b/epan/dissectors/packet-rdp.c
index 7ff0d837a5..d66faf5962 100644
--- a/epan/dissectors/packet-rdp.c
+++ b/epan/dissectors/packet-rdp.c
@@ -242,8 +242,8 @@ static int hf_rdp_Pad2 = -1;
static int hf_rdp_Pad3 = -1;
/* BitmapCache Persistent List Entry */
-static int hf_rdp_Key1 = -1;
-static int hf_rdp_Key2 = -1;
+/* static int hf_rdp_Key1 = -1; */
+/* static int hf_rdp_Key2 = -1; */
/* FontList */
#if 0
@@ -266,10 +266,10 @@ static int hf_rdp_lengthCapability = -1;
static int hf_rdp_capabilityData = -1;
static int hf_rdp_sessionId = -1;
-static int hf_rdp_unknownData = -1;
+/* static int hf_rdp_unknownData = -1; */
static int hf_rdp_notYetImplemented = -1;
static int hf_rdp_encrypted = -1;
-static int hf_rdp_compressed = -1;
+/* static int hf_rdp_compressed = -1; */
static int hf_rdp_channelDefArray = -1;
static int hf_rdp_channelDef = -1;
@@ -2470,14 +2470,18 @@ proto_register_rdp(void) {
{ "Pad3", "rdp.Pad3",
FT_UINT16, BASE_HEX, NULL, 0,
NULL, HFILL }},
+/**
{ &hf_rdp_Key1,
{ "Key1", "rdp.Key1",
FT_UINT32, BASE_HEX, NULL, 0,
NULL, HFILL }},
+**/
+/**
{ &hf_rdp_Key2,
{ "Key2", "rdp.Key2",
FT_UINT32, BASE_HEX, NULL, 0,
NULL, HFILL }},
+**/
{ &hf_rdp_originatorId,
{ "originatorId", "rdp.OriginatorId",
FT_UINT32, BASE_DEC, NULL, 0,
@@ -2518,10 +2522,12 @@ proto_register_rdp(void) {
{ "capabilityData", "rdp.capabilityData",
FT_NONE, BASE_NONE, NULL, 0,
NULL, HFILL }},
+/**
{ &hf_rdp_unknownData,
{ "unknownData", "rdp.unknownData",
FT_NONE, BASE_NONE, NULL, 0,
NULL, HFILL }},
+**/
{ &hf_rdp_notYetImplemented,
{ "notYetImplemented", "rdp.notYetImplemented",
FT_NONE, BASE_NONE, NULL, 0,
@@ -2530,10 +2536,12 @@ proto_register_rdp(void) {
{ "encryptedData", "rdp.encryptedData",
FT_NONE, BASE_NONE, NULL, 0,
NULL, HFILL }},
+/**
{ &hf_rdp_compressed,
{ "compressedData", "rdp.compressedData",
FT_NONE, BASE_NONE, NULL, 0,
NULL, HFILL }},
+**/
{ &hf_rdp_sessionId,
{ "sessionId", "rdp.sessionId",
FT_UINT32, BASE_HEX, NULL, 0,
diff --git a/epan/dissectors/packet-rdt.c b/epan/dissectors/packet-rdt.c
index 7f1eadbcb6..5ef29de2ae 100644
--- a/epan/dissectors/packet-rdt.c
+++ b/epan/dissectors/packet-rdt.c
@@ -87,11 +87,11 @@ static gint hf_rdt_stre_stream_id = -1;
static gint hf_rdt_stre_packet_sent = -1;
static gint hf_rdt_stre_ext_flag = -1;
-static gint hf_rdt_rtt_request_flags = -1;
-static gint hf_rdt_rtt_response_flags = -1;
-static gint hf_rdt_congestion_flags = -1;
+/* static gint hf_rdt_rtt_request_flags = -1; */
+/* static gint hf_rdt_rtt_response_flags = -1; */
+/* static gint hf_rdt_congestion_flags = -1; */
static gint hf_rdt_report_flags = -1;
-static gint hf_rdt_tirq_flags = -1;
+/* static gint hf_rdt_tirq_flags = -1; */
static gint hf_rdt_tirp_flags = -1;
static gint hf_rdt_bw_probing_flags = -1;
@@ -1520,6 +1520,7 @@ void proto_register_rdt(void)
NULL, HFILL
}
},
+/**
{
&hf_rdt_rtt_request_flags,
{
@@ -1532,6 +1533,8 @@ void proto_register_rdt(void)
NULL, HFILL
}
},
+**/
+/**
{
&hf_rdt_rtt_response_flags,
{
@@ -1544,6 +1547,8 @@ void proto_register_rdt(void)
NULL, HFILL
}
},
+**/
+/**
{
&hf_rdt_congestion_flags,
{
@@ -1556,6 +1561,7 @@ void proto_register_rdt(void)
NULL, HFILL
}
},
+**/
{
&hf_rdt_report_flags,
{
@@ -1568,6 +1574,7 @@ void proto_register_rdt(void)
NULL, HFILL
}
},
+/**
{
&hf_rdt_tirq_flags,
{
@@ -1580,6 +1587,7 @@ void proto_register_rdt(void)
NULL, HFILL
}
},
+**/
{
&hf_rdt_tirp_flags,
{
diff --git a/epan/dissectors/packet-rohc.c b/epan/dissectors/packet-rohc.c
index 72a0c6a0c8..04adf7a0d2 100644
--- a/epan/dissectors/packet-rohc.c
+++ b/epan/dissectors/packet-rohc.c
@@ -96,7 +96,7 @@ static int hf_rohc_rtp_id = -1;
static int hf_rohc_rtp_df = -1;
static int hf_rohc_rtp_rnd = -1;
static int hf_rohc_rtp_nbo = -1;
-static int hf_rohc_rtp_checksum = -1;
+/* static int hf_rohc_rtp_checksum = -1; */
static int hf_rohc_dynamic_udp_checksum = -1;
static int hf_rohc_dynamic_rtp =-1;
static int hf_rohc_rtp_v = -1;
@@ -2092,12 +2092,14 @@ proto_register_rohc(void)
"Whether the IP-ID is in Network Byte Order" , HFILL
}
},
+/**
{ &hf_rohc_rtp_checksum,
{ "Checksum","rohc.rtp.checksum",
FT_UINT16, BASE_HEX, NULL, 0x0,
NULL , HFILL
}
},
+**/
{ &hf_rohc_dynamic_udp_checksum,
{ "UDP Checksum", "rohc.dynamic.udp.checksum",
FT_UINT16, BASE_HEX, NULL, 0x0,
diff --git a/epan/dissectors/packet-roofnet.c b/epan/dissectors/packet-roofnet.c
index 7450eccda1..5356905cb9 100644
--- a/epan/dissectors/packet-roofnet.c
+++ b/epan/dissectors/packet-roofnet.c
@@ -92,7 +92,7 @@ static int hf_roofnet_flags = -1;
static int hf_roofnet_data_length = -1;
static int hf_roofnet_query_dst = -1;
static int hf_roofnet_seq = -1;
-static int hf_roofnet_links = -1;
+/* static int hf_roofnet_links = -1; */
static int hf_roofnet_link_src = -1;
static int hf_roofnet_link_forward = -1;
static int hf_roofnet_link_rev = -1;
@@ -294,10 +294,12 @@ void proto_register_roofnet(void)
FT_UINT32, BASE_DEC, NULL, 0x0, "Roofnet Sequential Number", HFILL }
},
+/**
{ &hf_roofnet_links,
{ "Links", "roofnet.links",
FT_NONE, BASE_NONE, NULL, 0x0, NULL, HFILL }
},
+**/
{ &hf_roofnet_link_src,
{ "Source IP", "roofnet.link.src",
diff --git a/epan/dissectors/packet-rtcp.c b/epan/dissectors/packet-rtcp.c
index 25be5b4b9b..4be1b69f9d 100644
--- a/epan/dissectors/packet-rtcp.c
+++ b/epan/dissectors/packet-rtcp.c
@@ -404,7 +404,7 @@ static int hf_rtcp_ssrc_high_cycles = -1;
static int hf_rtcp_ssrc_jitter = -1;
static int hf_rtcp_ssrc_lsr = -1;
static int hf_rtcp_ssrc_dlsr = -1;
-static int hf_rtcp_ssrc_csrc = -1;
+/* static int hf_rtcp_ssrc_csrc = -1; */
static int hf_rtcp_sdes_type = -1;
static int hf_rtcp_sdes_length = -1;
static int hf_rtcp_sdes_text = -1;
@@ -3386,6 +3386,7 @@ proto_register_rtcp(void)
NULL, HFILL
}
},
+/**
{
&hf_rtcp_ssrc_csrc,
{
@@ -3398,6 +3399,7 @@ proto_register_rtcp(void)
NULL, HFILL
}
},
+**/
{
&hf_rtcp_sdes_type,
{
diff --git a/epan/dissectors/packet-rtmpt.c b/epan/dissectors/packet-rtmpt.c
index f4bd57f435..7c58cb2e14 100644
--- a/epan/dissectors/packet-rtmpt.c
+++ b/epan/dissectors/packet-rtmpt.c
@@ -308,7 +308,7 @@ static int hf_amf_header_count = -1;
static int hf_amf_header_name = -1;
static int hf_amf_header_must_understand = -1;
static int hf_amf_header_length = -1;
-static int hf_amf_header_value_type = -1;
+/* static int hf_amf_header_value_type = -1; */
static int hf_amf_message_count = -1;
static int hf_amf_message_target_uri = -1;
static int hf_amf_message_response_uri = -1;
@@ -324,7 +324,7 @@ static int hf_amf_string = -1;
static int hf_amf_string_reference = -1;
static int hf_amf_object_reference = -1;
static int hf_amf_date = -1;
-static int hf_amf_longstringlength = -1;
+/* static int hf_amf_longstringlength = -1; */
static int hf_amf_longstring = -1;
static int hf_amf_xml_doc = -1;
static int hf_amf_xmllength = -1;
@@ -2723,9 +2723,11 @@ proto_register_amf(void)
{ "Length", "amf.header.length", FT_UINT32, BASE_DEC,
NULL, 0x0, NULL, HFILL }},
+/**
{ &hf_amf_header_value_type,
{ "Value type", "amf.header.value_type", FT_UINT32, BASE_HEX,
- /*VALS(rtmpt_type_vals)*/NULL, 0x0, NULL, HFILL }},
+ VALS(rtmpt_type_vals), 0x0, NULL, HFILL }},
+**/
{ &hf_amf_message_count,
{ "Message count", "amf.message_count", FT_UINT16, BASE_DEC,
@@ -2785,9 +2787,11 @@ proto_register_amf(void)
{ "Date", "amf.date", FT_ABSOLUTE_TIME, ABSOLUTE_TIME_LOCAL,
NULL, 0x0, "AMF date", HFILL }},
+ /**
{ &hf_amf_longstringlength,
{ "String length", "amf.longstringlength", FT_UINT32, BASE_DEC,
NULL, 0x0, "AMF long string length", HFILL }},
+ **/
{ &hf_amf_longstring,
{ "Long string", "amf.longstring", FT_STRING, BASE_NONE,
diff --git a/epan/dissectors/packet-rtps2.c b/epan/dissectors/packet-rtps2.c
index a5c6f06d27..15b5994e48 100644
--- a/epan/dissectors/packet-rtps2.c
+++ b/epan/dissectors/packet-rtps2.c
@@ -102,7 +102,7 @@ static int hf_rtps_nature_type = -1;
static int hf_rtps_guid_prefix = -1;
static int hf_rtps_host_id = -1;
static int hf_rtps_app_id = -1;
-static int hf_rtps_counter = -1;
+/* static int hf_rtps_counter = -1; */
static int hf_rtps_sm_id = -1;
static int hf_rtps_sm_flags = -1;
@@ -110,8 +110,8 @@ static int hf_rtps_sm_octets_to_next_header = -1;
static int hf_rtps_sm_guid_prefix = -1;
static int hf_rtps_sm_host_id = -1;
static int hf_rtps_sm_app_id = -1;
-static int hf_rtps_sm_instance_id = -1;
-static int hf_rtps_sm_app_kind = -1;
+/* static int hf_rtps_sm_instance_id = -1; */
+/* static int hf_rtps_sm_app_kind = -1; */
static int hf_rtps_sm_counter = -1;
static int hf_rtps_sm_entity_id = -1;
static int hf_rtps_sm_entity_id_key = -1;
@@ -9095,7 +9095,8 @@ void proto_register_rtps2(void) {
},
/* Counter ------------------------------------------------------------- */
- { &hf_rtps_counter, { /* HIDDEN */
+/**
+ { &hf_rtps_counter, { / * HIDDEN * /
"counter",
"rtps2.counter",
FT_UINT32,
@@ -9105,7 +9106,7 @@ void proto_register_rtps2(void) {
"Sub-component 'counter' of the GuidPrefix of the RTPS packet",
HFILL }
},
-
+**/
/* Submessage ID ------------------------------------------------------- */
{ &hf_rtps_sm_id, {
@@ -9176,6 +9177,7 @@ void proto_register_rtps2(void) {
"AppId component of the rtps2.sm.guidPrefix",
HFILL }
},
+/**
{ &hf_rtps_sm_instance_id, {
"instanceId",
"rtps2.sm.guidPrefix.appId.instanceId",
@@ -9186,6 +9188,8 @@ void proto_register_rtps2(void) {
"instanceId component of the AppId of the rtps2.sm.guidPrefix",
HFILL }
},
+**/
+ /**
{ &hf_rtps_sm_app_kind, {
"appKind",
"rtps2.sm.guidPrefix.appId.appKind",
@@ -9196,6 +9200,7 @@ void proto_register_rtps2(void) {
"appKind component of the AppId of the rtps2.sm.guidPrefix",
HFILL }
},
+ **/
{ &hf_rtps_sm_counter, {
"counter",
diff --git a/epan/dissectors/packet-sasp.c b/epan/dissectors/packet-sasp.c
index 88930359e5..1120bfcdc2 100644
--- a/epan/dissectors/packet-sasp.c
+++ b/epan/dissectors/packet-sasp.c
@@ -82,7 +82,7 @@ static int hf_sasp_gmd_cnt = -1;
/*dereg req*/
static int hf_sasp_dereg_req_sz = -1;
static int hf_dereg_req_lbflag = -1;
-static int hf_dereg_req_reason = -1;
+/* static int hf_dereg_req_reason = -1; */
static int hf_dereg_req_reason_flag = -1;
/*dereg reply*/
@@ -100,7 +100,7 @@ static int hf_setmemstate_req_lbflag = -1;
static int hf_sasp_setmemstate_req_gmsd_cnt = -1;
/*setmemstate reply*/
-static int hf_sasp_setmemstate_rep = -1;
+/* static int hf_sasp_setmemstate_rep = -1; */
static int hf_sasp_setmemstate_rep_rcode = -1;
static int hf_sasp_setmemstate_rep_sz = -1;
@@ -142,13 +142,13 @@ static int hf_sasp_setlbstate_req_LB_uid_len = -1;
static int hf_sasp_setlbstate_req_LB_uid = -1;
static int hf_sasp_setlbstate_req_LB_health = -1;
/*static int hf_sasp_setlbstate_req_LB_flag = -1;*/
-static int hf_lbstate_flag = -1;
+/* static int hf_lbstate_flag = -1; */
static int hf_sasp_pushflag = -1;
static int hf_sasp_trustflag = -1;
static int hf_sasp_nochangeflag = -1;
/*setlbstate reply*/
-static int hf_sasp_setlbstate_rep = -1;
+/* static int hf_sasp_setlbstate_rep = -1; */
static int hf_sasp_setlbstate_rep_rcode = -1;
static int hf_sasp_setlbstate_rep_sz = -1;
@@ -167,7 +167,7 @@ static int hf_sasp_memstatedatacomp_quiesce_flag = -1;
static int hf_sasp_weight_entry_data_comp_type = -1;
static int hf_sasp_weight_entry_data_comp_sz = -1;
static int hf_sasp_weight_entry_data_comp_state = -1;
-static int hf_wtstate_flag = -1;
+/* static int hf_wtstate_flag = -1; */
static int hf_sasp_wed_contactsuccess_flag = -1;
static int hf_sasp_wed_quiesce_flag = -1;
static int hf_sasp_wed_registration_flag = -1;
@@ -1312,10 +1312,12 @@ void proto_register_sasp(void)
FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL } },
+/**
{ &hf_dereg_req_reason,
{ "Dereg Req-Reason", "sasp.dereg-req.reason",
FT_UINT8, BASE_HEX, NULL, 0x0,
"SASP Dereg Req Reason", HFILL } },
+**/
/* Dereg Rep */
{ &hf_sasp_dereg_rep_sz,
@@ -1358,10 +1360,12 @@ void proto_register_sasp(void)
"Group Of Member State Data Count", HFILL } },
/* Set Mem State Reply */
+/**
{ &hf_sasp_setmemstate_rep,
{ "Set Memstate Reply", "sasp.setmemstate-rep",
FT_UINT32, BASE_HEX, NULL, 0x0,
"SASP Set Memstate Reply", HFILL } },
+**/
{ &hf_sasp_setmemstate_rep_sz,
{ "Set Memstate Rep-Size", "sasp.setmemstate-rep.size",
@@ -1446,10 +1450,12 @@ void proto_register_sasp(void)
/*Set LB State Rep */
+/**
{ &hf_sasp_setlbstate_rep,
{ "Set Lbstate Rep", "sasp.msg.type",
FT_UINT32, BASE_HEX, NULL, 0x0,
"SASP Set Lbstate Rep", HFILL } },
+**/
{ &hf_sasp_setlbstate_rep_sz,
{ "Set Lbstate Rep-Size", "sasp.setlbstate-rep.size",
@@ -1535,10 +1541,12 @@ void proto_register_sasp(void)
FT_UINT8, BASE_HEX, VALS(lbstate_healthtable), 0x0,
"SASP Set LB State Req LB Health", HFILL } },
+/**
{ &hf_lbstate_flag,
{ "Flags", "sasp.flags.lbstate",
FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL } },
+**/
{ &hf_sasp_pushflag,
{ "PUSH", "sasp.flags.push",
@@ -1614,10 +1622,12 @@ void proto_register_sasp(void)
FT_UINT8, BASE_HEX, NULL, 0x0,
"SASP Wt Entry Data Comp State", HFILL } },
+/**
{ &hf_wtstate_flag,
{ "Flags", "sasp.flags.wtstate",
FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL } },
+**/
{ &hf_sasp_wed_contactsuccess_flag,
{ "Contact Success", "sasp.flags.contactsuccess",
diff --git a/epan/dissectors/packet-sbus.c b/epan/dissectors/packet-sbus.c
index 4904574ae6..fc0263b63f 100644
--- a/epan/dissectors/packet-sbus.c
+++ b/epan/dissectors/packet-sbus.c
@@ -230,11 +230,11 @@ static int hf_sbus_sysinfo0_2 = -1;
static int hf_sbus_sysinfo0_3 = -1;
static int hf_sbus_sysinfo0_4 = -1;
static int hf_sbus_sysinfo0_5 = -1;
-static int hf_sbus_sysinfo_length = -1;
-static int hf_sbus_f_module_type = -1;
-static int hf_sbus_harware_version = -1;
-static int hf_sbus_hardware_modification = -1;
-static int hf_sbus_various = -1;
+/* static int hf_sbus_sysinfo_length = -1; */
+/* static int hf_sbus_f_module_type = -1; */
+/* static int hf_sbus_harware_version = -1; */
+/* static int hf_sbus_hardware_modification = -1; */
+/* static int hf_sbus_various = -1; */
static int hf_sbus_acknackcode = -1;
static int hf_sbus_cpu_status = -1;
static int hf_sbus_week_day = -1;
@@ -2100,35 +2100,45 @@ proto_register_sbus(void)
"Availability of PGU baud switch feature", HFILL }
},
+/**
{ &hf_sbus_sysinfo_length,
{ "System information length", "sbus.sysinfo_length",
FT_UINT8, BASE_HEX, NULL, 0,
"System information length in response", HFILL }
},
+**/
+/**
{ &hf_sbus_f_module_type,
{ "F-module type", "sbus.fmodule_type",
FT_STRING, BASE_NONE, NULL, 0,
"Module type mounted on B1/2 slot", HFILL }
},
+**/
+/**
{ &hf_sbus_harware_version,
{ "Hardware version", "sbus.hw_version",
FT_STRING, BASE_NONE, NULL, 0,
"Hardware version of the PCD or the module", HFILL }
},
+**/
+/**
{ &hf_sbus_hardware_modification,
{ "Hardware modification", "sbus.hw_modification",
FT_UINT8, BASE_DEC, NULL, 0,
"Hardware modification of the PCD or module", HFILL }
},
+**/
+/**
{ &hf_sbus_various,
{ "Various data", "sbus.various",
FT_NONE, BASE_NONE, NULL, 0,
"Various data contained in telegrams but nobody will search for it", HFILL }
},
+**/
{ &hf_sbus_acknackcode,
{ "ACK/NAK code", "sbus.nakcode",
diff --git a/epan/dissectors/packet-scsi-sbc.c b/epan/dissectors/packet-scsi-sbc.c
index 142efb7d69..39fc4896b9 100644
--- a/epan/dissectors/packet-scsi-sbc.c
+++ b/epan/dissectors/packet-scsi-sbc.c
@@ -67,7 +67,7 @@ static int hf_scsi_sbc_ssu_pwr_cond = -1;
static int hf_scsi_sbc_ssu_loej = -1;
static int hf_scsi_sbc_ssu_start = -1;
static int hf_scsi_sbc_bytchk = -1;
-static int hf_scsi_sbc_verify_reladdr = -1;
+/* static int hf_scsi_sbc_verify_reladdr = -1; */
static int hf_scsi_sbc_verify_lba = -1;
static int hf_scsi_sbc_verify_lba64 = -1;
static int hf_scsi_sbc_verify_vlen = -1;
@@ -76,7 +76,7 @@ static int hf_scsi_sbc_wrverify_lba = -1;
static int hf_scsi_sbc_wrverify_xferlen = -1;
static int hf_scsi_sbc_wrverify_lba64 = -1;
static int hf_scsi_sbc_wrverify_xferlen32 = -1;
-static int hf_scsi_sbc_readcapacity_flags = -1;
+/* static int hf_scsi_sbc_readcapacity_flags = -1; */
static int hf_scsi_sbc_readdefdata_flags = -1;
static int hf_scsi_sbc_reassignblks_flags = -1;
static int hf_scsi_sbc_read_flags = -1;
@@ -1818,9 +1818,11 @@ proto_register_scsi_sbc(void)
{ &hf_scsi_sbc_bytchk,
{"BYTCHK", "scsi_sbc.bytchk", FT_BOOLEAN, 8,
NULL, 0x02, NULL, HFILL}},
+/**
{ &hf_scsi_sbc_verify_reladdr,
{"RELADDR", "scsi_sbc.verify.reladdr", FT_BOOLEAN, 8, NULL,
0x1, NULL, HFILL}},
+**/
{ &hf_scsi_sbc_verify_lba,
{"LBA", "scsi_sbc.verify.lba", FT_UINT32, BASE_DEC, NULL, 0x0, NULL,
HFILL}},
@@ -1845,9 +1847,11 @@ proto_register_scsi_sbc(void)
{ &hf_scsi_sbc_wrverify_xferlen32,
{"Transfer Length", "scsi_sbc.wrverify.xferlen32", FT_UINT32,
BASE_DEC, NULL, 0x0, NULL, HFILL}},
+/**
{ &hf_scsi_sbc_readcapacity_flags,
{"Flags", "scsi_sbc.readcapacity.flags", FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL}},
+**/
{ &hf_scsi_sbc_readdefdata_flags,
{"Flags", "scsi_sbc.readdefdata.flags", FT_UINT8, BASE_HEX, NULL, 0x0, NULL,
HFILL}},
diff --git a/epan/dissectors/packet-scsi-smc.c b/epan/dissectors/packet-scsi-smc.c
index 54645c0b84..973a930dbe 100644
--- a/epan/dissectors/packet-scsi-smc.c
+++ b/epan/dissectors/packet-scsi-smc.c
@@ -52,7 +52,7 @@ static int hf_scsi_smc_inv2 = -1;
static int hf_scsi_smc_range_flags = -1;
static int hf_scsi_smc_fast = -1;
static int hf_scsi_smc_range = -1;
-static int hf_scsi_smc_sea = -1;
+/* static int hf_scsi_smc_sea = -1; */
static int hf_scsi_smc_num_elements = -1;
static int hf_scsi_smc_invert = -1;
static int hf_scsi_smc_ea = -1;
@@ -908,9 +908,11 @@ proto_register_scsi_smc(void)
{ &hf_scsi_smc_range,
{"RANGE", "scsi_smc.range", FT_BOOLEAN, 8,
NULL, 0x01, NULL, HFILL}},
+/**
{ &hf_scsi_smc_sea,
{"Starting Element Address", "scsi_smc.sea", FT_UINT16, BASE_DEC,
NULL, 0x0, NULL, HFILL}},
+**/
{ &hf_scsi_smc_num_elements,
{"Number of Elements", "scsi_smc.num_elements", FT_UINT16, BASE_DEC,
NULL, 0x0, NULL, HFILL}},
diff --git a/epan/dissectors/packet-sctp.c b/epan/dissectors/packet-sctp.c
index be10504848..ef15d5bb07 100644
--- a/epan/dissectors/packet-sctp.c
+++ b/epan/dissectors/packet-sctp.c
@@ -102,7 +102,7 @@ static int hf_initack_chunk_number_of_outbound_streams = -1;
static int hf_initack_chunk_number_of_inbound_streams = -1;
static int hf_initack_chunk_initial_tsn = -1;
-static int hf_cumulative_tsn_ack = -1;
+/* static int hf_cumulative_tsn_ack = -1; */
static int hf_data_chunk_tsn = -1;
static int hf_data_chunk_stream_id = -1;
@@ -143,7 +143,7 @@ static int hf_nr_sack_chunk_nr_gap_block_end = -1;
static int hf_nr_sack_chunk_nr_gap_block_start_tsn = -1;
static int hf_nr_sack_chunk_nr_gap_block_end_tsn = -1;
static int hf_nr_sack_chunk_number_tsns_nr_gap_acked = -1;
-static int hf_nr_sack_chunk_duplicate_tsn = -1;
+/* static int hf_nr_sack_chunk_duplicate_tsn = -1; */
static int hf_shutdown_chunk_cumulative_tsn_ack = -1;
static int hf_cookie = -1;
@@ -4064,7 +4064,9 @@ proto_register_sctp(void)
{ &hf_initack_chunk_number_of_outbound_streams, { "Number of outbound streams", "sctp.initack_nr_out_streams", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } },
{ &hf_initack_chunk_number_of_inbound_streams, { "Number of inbound streams", "sctp.initack_nr_in_streams", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } },
{ &hf_initack_chunk_initial_tsn, { "Initial TSN", "sctp.initack_initial_tsn", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } },
+/**
{ &hf_cumulative_tsn_ack, { "Cumulative TSN Ack", "sctp.cumulative_tsn_ack", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } },
+**/
{ &hf_data_chunk_tsn, { "TSN", "sctp.data_tsn", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } },
{ &hf_data_chunk_stream_id, { "Stream Identifier", "sctp.data_sid", FT_UINT16, BASE_HEX, NULL, 0x0, NULL, HFILL } },
{ &hf_data_chunk_stream_seq_number, { "Stream sequence number", "sctp.data_ssn", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } },
@@ -4101,7 +4103,9 @@ proto_register_sctp(void)
{ &hf_nr_sack_chunk_nr_gap_block_end, { "End", "sctp.nr_sack_nr_gap_block_end", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } },
{ &hf_nr_sack_chunk_nr_gap_block_end_tsn, { "End TSN", "sctp.nr_sack_nr_gap_block_end_tsn", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } },
{ &hf_nr_sack_chunk_number_tsns_nr_gap_acked, { "Number of TSNs in nr-gap acknowledgement blocks","sctp.nr_sack_number_of_tsns_nr_gap_acked", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } },
+/**
{ &hf_nr_sack_chunk_duplicate_tsn, { "Duplicate TSN", "sctp.nr_sack_duplicate_tsn", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL } },
+**/
{ &hf_shutdown_chunk_cumulative_tsn_ack, { "Cumulative TSN Ack", "sctp.shutdown_cumulative_tsn_ack", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } },
{ &hf_ecne_chunk_lowest_tsn, { "Lowest TSN", "sctp.ecne_lowest_tsn", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } },
{ &hf_cwr_chunk_lowest_tsn, { "Lowest TSN", "sctp.cwr_lowest_tsn", FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL } },
diff --git a/epan/dissectors/packet-sercosiii.c b/epan/dissectors/packet-sercosiii.c
index 16c4290ced..1c6025dc76 100644
--- a/epan/dissectors/packet-sercosiii.c
+++ b/epan/dissectors/packet-sercosiii.c
@@ -111,11 +111,11 @@ static gint hf_siii_at_svch_info = -1;
static gint hf_siii_mdt_svch_idn = -1;
static gint hf_siii_mdt_svch_ctrl = -1;
static gint hf_siii_at_svch_stat = -1;
-static gint hf_siii_svch_data_telofs_telno = -1;
-static gint hf_siii_svch_data_telofs_mdt_at = -1;
-static gint hf_siii_svch_data_telofs_offset = -1;
-static gint hf_siii_svch_data_proccmd_proccmdexec = -1;
-static gint hf_siii_svch_data_proccmd_proccmd = -1;
+/* static gint hf_siii_svch_data_telofs_telno = -1; */
+/* static gint hf_siii_svch_data_telofs_mdt_at = -1; */
+/* static gint hf_siii_svch_data_telofs_offset = -1; */
+/* static gint hf_siii_svch_data_proccmd_proccmdexec = -1; */
+/* static gint hf_siii_svch_data_proccmd_proccmd = -1; */
static gint hf_siii_at_dev_status = -1;
static gint hf_siii_at_dev_status_commwarning = -1;
static gint hf_siii_at_dev_status_change_topology = -1;
@@ -1379,32 +1379,41 @@ proto_register_sercosiii(void)
FT_UINT16, BASE_DEC, NULL, 0x01,
NULL, HFILL }
},
+/**
{ &hf_siii_svch_data_telofs_telno,
{"Telegram Number", "siii.mdt.svch.data.telassign.telno",
FT_UINT16, BASE_DEC, NULL, 0xF000,
NULL, HFILL }
},
+**/
+/**
{ &hf_siii_svch_data_telofs_mdt_at,
{"Telegram Type", "siii.mdt.svch.data.telassign.mdt_at",
FT_UINT16, BASE_DEC, VALS(siii_svch_data_mdt_at_text), 0x0800,
NULL, HFILL }
},
+**/
+/**
{ &hf_siii_svch_data_telofs_offset,
{"Telegram Offset", "siii.mdt.svch.data.telassign.offset",
FT_UINT16, BASE_DEC, NULL, 0x07FF,
NULL, HFILL }
},
+**/
+/**
{ &hf_siii_svch_data_proccmd_proccmdexec,
{"Procedure Command Execution", "siii.mdt.svch.data.proccmd.interrupt",
FT_UINT16, BASE_DEC, VALS(siii_svch_data_proccmd_proccmdexec_text), 0x0002,
NULL, HFILL }
},
+**/
+/**
{ &hf_siii_svch_data_proccmd_proccmd,
{"Procedure Command", "siii.mdt.svch.data.proccmd.set",
FT_UINT16, BASE_DEC, VALS(siii_svch_data_proccmd_proccmd_text), 0x0001,
NULL, HFILL }
},
-
+**/
{ &hf_siii_mst_channel,
{ "Channel", "siii.channel",
FT_UINT8, BASE_DEC, VALS(siii_mst_channel_text), 0x80,
diff --git a/epan/dissectors/packet-ses.c b/epan/dissectors/packet-ses.c
index f3b20780f2..6901954536 100644
--- a/epan/dissectors/packet-ses.c
+++ b/epan/dissectors/packet-ses.c
@@ -48,8 +48,8 @@ static int proto_ses = -1;
static int hf_ses_type = -1;
static int hf_ses_type_0 = -1;
static int hf_ses_length = -1;
-static int hf_ses_version = -1;
-static int hf_ses_reserved = -1;
+/* static int hf_ses_version = -1; */
+/* static int hf_ses_reserved = -1; */
static int hf_ses_segment_data = -1;
static int hf_ses_segments = -1;
@@ -1267,6 +1267,7 @@ proto_register_ses(void)
}
},
+/**
{
&hf_ses_version,
{
@@ -1279,6 +1280,8 @@ proto_register_ses(void)
NULL, HFILL
}
},
+**/
+/**
{
&hf_ses_reserved,
{
@@ -1291,6 +1294,7 @@ proto_register_ses(void)
NULL, HFILL
}
},
+**/
{
&hf_called_ss_user_reference,
{
diff --git a/epan/dissectors/packet-sflow.c b/epan/dissectors/packet-sflow.c
index 6d9b0c9578..d5263e4ff9 100644
--- a/epan/dissectors/packet-sflow.c
+++ b/epan/dissectors/packet-sflow.c
@@ -510,13 +510,13 @@ static int hf_sflow_agent_address_v6 = -1;
static int hf_sflow_5_sub_agent_id = -1;
static int hf_sflow_5_sample_length = -1;
static int hf_sflow_5_flow_data_length = -1;
-static int hf_sflow_5_counters_data_length = -1;
+/* static int hf_sflow_5_counters_data_length = -1; */
static int hf_sflow_245_seqnum = -1;
static int hf_sflow_245_sysuptime = -1;
static int hf_sflow_245_numsamples = -1;
static int hf_sflow_245_header_protocol = -1;
static int hf_sflow_245_sampletype = -1;
-static int hf_sflow_245_ipv4_precedence_type = -1;
+/* static int hf_sflow_245_ipv4_precedence_type = -1; */
static int hf_sflow_5_flow_record_format = -1;
static int hf_sflow_5_counters_record_format = -1;
static int hf_sflow_245_header = -1;
@@ -544,15 +544,15 @@ static int hf_sflow_245_dst_as_entries = -1; /* aka length */
static int hf_sflow_245_dst_as = -1;
/* extended gateway (>= version 4) */
static int hf_sflow_245_community_entries = -1;
-static int hf_sflow_245_community = -1;
+/* static int hf_sflow_245_community = -1; */
static int hf_sflow_245_localpref = -1;
/* generic interface counter */
static int hf_sflow_245_ifindex = -1;
static int hf_sflow_245_iftype = -1;
static int hf_sflow_245_ifspeed = -1;
-static int hf_sflow_245_ifdirection = -1;
-static int hf_sflow_245_ifstatus = -1;
+/* static int hf_sflow_245_ifdirection = -1; */
+/* static int hf_sflow_245_ifstatus = -1; */
static int hf_sflow_245_ifinoct = -1;
static int hf_sflow_245_ifinpkt = -1;
static int hf_sflow_245_ifinmcast = -1;
@@ -648,7 +648,7 @@ static int hf_sflow_5_dot11QoSCFPollsReceivedCount = -1;
static int hf_sflow_5_dot11QoSCFPollsUnusedCount = -1;
static int hf_sflow_5_dot11QoSCFPollsUnusableCount = -1;
static int hf_sflow_5_dot11QoSCFPollsLostCount = -1;
-static int hf_sflow_5_ieee80211_version = -1;
+/* static int hf_sflow_5_ieee80211_version = -1; */
/* processor information */
@@ -2795,10 +2795,12 @@ proto_register_sflow(void) {
{ "Flow data length (byte)", "sflow_5.flow_data_length",
FT_UINT32, BASE_DEC, NULL, 0x0,
"sFlow flow data length", HFILL}},
+/**
{ &hf_sflow_5_counters_data_length,
{ "Counters data length (byte)", "sflow_5.counter_data_length",
FT_UINT32, BASE_DEC, NULL, 0x0,
"sFlow counters data length", HFILL}},
+**/
{ &hf_sflow_245_seqnum,
{ "Sequence number", "sflow_245.sequence_number",
FT_UINT32, BASE_DEC, NULL, 0x0,
@@ -2815,14 +2817,18 @@ proto_register_sflow(void) {
{ "sFlow sample type", "sflow_245.sampletype",
FT_UINT32, BASE_DEC, VALS(sflow_245_sampletype), 0x0,
"Type of sFlow sample", HFILL}},
+/**
{ &hf_sflow_5_ieee80211_version,
{ "Version", "sflow_245.ieee80211_version",
FT_UINT32, BASE_DEC, VALS(sflow_5_ieee80211_versions), 0x0,
"IEEE 802.11 Version", HFILL}},
+**/
+/**
{ &hf_sflow_245_ipv4_precedence_type,
{ "Precedence", "sflow_245.ipv4_precedence_type",
FT_UINT8, BASE_DEC, VALS(sflow_245_ipv4_precedence_types), 0x0,
"IPv4 Precedence Type", HFILL}},
+**/
{ &hf_sflow_5_flow_record_format,
{ "Format", "sflow_245.flow_record_format",
FT_UINT32, BASE_DEC, VALS(sflow_5_flow_record_type), 0x0,
@@ -2924,10 +2930,12 @@ proto_register_sflow(void) {
{ "Gateway Communities", "sflow_245.communityEntries",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL}},
+/**
{ &hf_sflow_245_community,
{ "Gateway Community", "sflow_245.community",
FT_UINT32, BASE_DEC, NULL, 0x0,
"Gateway Communities", HFILL}},
+**/
{ &hf_sflow_245_localpref,
{ "localpref", "sflow_245.localpref",
FT_UINT32, BASE_DEC, NULL, 0x0,
@@ -2941,14 +2949,18 @@ proto_register_sflow(void) {
{ "Interface Speed", "sflow_245.ifspeed",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL}},
+/**
{ &hf_sflow_245_ifdirection,
{ "Interface Direction", "sflow_245.ifdirection",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL}},
+**/
+/**
{ &hf_sflow_245_ifstatus,
{ "Interface Status", "sflow_245.ifstatus",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL}},
+**/
{ &hf_sflow_245_ifinoct,
{ "Input Octets", "sflow_245.ifinoct",
FT_UINT64, BASE_DEC, NULL, 0x0,
diff --git a/epan/dissectors/packet-sigcomp.c b/epan/dissectors/packet-sigcomp.c
index d6c232dd93..f507fd565e 100644
--- a/epan/dissectors/packet-sigcomp.c
+++ b/epan/dissectors/packet-sigcomp.c
@@ -59,7 +59,7 @@ static int hf_sigcomp_udvm_instr = -1;
static int hf_udvm_multitype_bytecode = -1;
static int hf_udvm_reference_bytecode = -1;
static int hf_udvm_literal_bytecode = -1;
-static int hf_udvm_operand = -1;
+/* static int hf_udvm_operand = -1; */
static int hf_udvm_length = -1;
static int hf_udvm_addr_length = -1;
static int hf_udvm_destination = -1;
@@ -2327,11 +2327,13 @@ proto_register_sigcomp(void)
FT_UINT8, BASE_HEX, VALS(display_lit_bytecode_vals), 0x0,
NULL, HFILL }
},
+/**
{ &hf_udvm_operand,
{ "UDVM operand", "sigcomp.udvm.operand",
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }
},
+**/
{ &hf_udvm_length,
{ "%Length", "sigcomp.udvm.length",
FT_UINT16, BASE_DEC, NULL, 0x0,
diff --git a/epan/dissectors/packet-slsk.c b/epan/dissectors/packet-slsk.c
index 2e2fa3eade..8765b72154 100644
--- a/epan/dissectors/packet-slsk.c
+++ b/epan/dissectors/packet-slsk.c
@@ -51,7 +51,7 @@ static int hf_slsk_byte = -1;
static int hf_slsk_message_length = -1;
static int hf_slsk_message_code = -1;
static int hf_slsk_client_ip = -1;
-static int hf_slsk_server_ip = -1;
+/* static int hf_slsk_server_ip = -1; */
static int hf_slsk_string_length = -1;
static int hf_slsk_username = -1;
static int hf_slsk_password = -1;
@@ -82,7 +82,7 @@ static int hf_slsk_number_of_rooms = -1;
static int hf_slsk_filename = -1;
static int hf_slsk_directory = -1;
static int hf_slsk_size = -1;
-static int hf_slsk_checksum = -1;
+/* static int hf_slsk_checksum = -1; */
static int hf_slsk_code = -1;
static int hf_slsk_number_of_users = -1;
static int hf_slsk_number_of_days = -1;
@@ -90,7 +90,7 @@ static int hf_slsk_transfer_direction = -1;
static int hf_slsk_user_description = -1;
static int hf_slsk_picture_exists = -1;
static int hf_slsk_picture = -1;
-static int hf_slsk_user_uploads = -1;
+/* static int hf_slsk_user_uploads = -1; */
static int hf_slsk_total_uploads = -1;
static int hf_slsk_queued_uploads = -1;
static int hf_slsk_slots_available = -1;
@@ -2419,9 +2419,11 @@ proto_register_slsk(void)
{ &hf_slsk_client_ip,
{ "Client IP", "slsk.client.ip",
FT_IPv4, BASE_NONE, NULL, 0, "Client IP Address", HFILL } },
+/**
{ &hf_slsk_server_ip,
{ "SoulSeek Server IP", "slsk.server.ip",
FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
+**/
{ &hf_slsk_string_length,
{ "String Length", "slsk.string.length",
FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
@@ -2512,9 +2514,11 @@ proto_register_slsk(void)
{ &hf_slsk_size,
{ "Size", "slsk.size",
FT_UINT32, BASE_DEC, NULL, 0, "File Size", HFILL } },
+/**
{ &hf_slsk_checksum,
{ "Checksum", "slsk.checksum",
FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
+**/
{ &hf_slsk_code,
{ "Code", "slsk.code",
FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
@@ -2536,9 +2540,11 @@ proto_register_slsk(void)
{ &hf_slsk_picture,
{ "Picture", "slsk.user.picture",
FT_STRING, BASE_NONE, NULL, 0, "User Picture", HFILL } },
+/**
{ &hf_slsk_user_uploads,
{ "User uploads", "slsk.uploads.user",
FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
+**/
{ &hf_slsk_total_uploads,
{ "Total uploads allowed", "slsk.uploads.total",
FT_UINT32, BASE_DEC, NULL, 0, NULL, HFILL } },
diff --git a/epan/dissectors/packet-smb-browse.c b/epan/dissectors/packet-smb-browse.c
index a6792c5eec..b60567a70c 100644
--- a/epan/dissectors/packet-smb-browse.c
+++ b/epan/dissectors/packet-smb-browse.c
@@ -90,7 +90,7 @@ static int hf_election_desire_flags_master = -1;
static int hf_election_desire_flags_domain_master = -1;
static int hf_election_desire_flags_wins = -1;
static int hf_election_desire_flags_nt = -1;
-static int hf_election_revision = -1;
+/* static int hf_election_revision = -1; */
static int hf_election_os = -1;
static int hf_election_os_wfw = -1;
static int hf_election_os_ntw = -1;
@@ -1126,9 +1126,11 @@ proto_register_smb_browse(void)
{ "NT", "browser.election.desire.nt", FT_BOOLEAN, 8,
TFS(&tfs_desire_nt), 1<<DESIRE_NT, "Is this a NT server", HFILL }},
+/**
{ &hf_election_revision,
{ "Election Revision", "browser.election.revision", FT_UINT16, BASE_DEC,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_election_os,
{ "Election OS", "browser.election.os", FT_UINT8, BASE_HEX,
diff --git a/epan/dissectors/packet-sna.c b/epan/dissectors/packet-sna.c
index 111d6dfb8d..f51b08a4ff 100644
--- a/epan/dissectors/packet-sna.c
+++ b/epan/dissectors/packet-sna.c
@@ -129,8 +129,8 @@ static int hf_sna_nlp_opti_0e_nabsp = -1;
static int hf_sna_nlp_opti_0e_sync = -1;
static int hf_sna_nlp_opti_0e_echo = -1;
static int hf_sna_nlp_opti_0e_rseq = -1;
-static int hf_sna_nlp_opti_0e_abspbeg = -1;
-static int hf_sna_nlp_opti_0e_abspend = -1;
+/* static int hf_sna_nlp_opti_0e_abspbeg = -1; */
+/* static int hf_sna_nlp_opti_0e_abspend = -1; */
static int hf_sna_nlp_opti_0f_bits = -1;
static int hf_sna_nlp_opti_10_tcid = -1;
static int hf_sna_nlp_opti_12_sense = -1;
@@ -196,7 +196,7 @@ static int hf_sna_gds_len = -1;
static int hf_sna_gds_type = -1;
static int hf_sna_gds_cont = -1;
-static int hf_sna_xid = -1;
+/* static int hf_sna_xid = -1; */
static int hf_sna_xid_0 = -1;
static int hf_sna_xid_id = -1;
static int hf_sna_xid_format = -1;
@@ -2976,13 +2976,17 @@ proto_register_sna(void)
{ "Received Sequence Number", "sna.nlp.thdr.optional.0e.rseq",
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL }},
+/**
{ &hf_sna_nlp_opti_0e_abspbeg,
{ "ABSP Begin", "sna.nlp.thdr.optional.0e.abspbeg",
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL }},
+**/
+/**
{ &hf_sna_nlp_opti_0e_abspend,
{ "ABSP End", "sna.nlp.thdr.optional.0e.abspend",
FT_UINT32, BASE_HEX, NULL, 0x0, NULL, HFILL }},
+**/
{ &hf_sna_nlp_opti_0f_bits,
{ "Client Bits", "sna.nlp.thdr.optional.0f.bits",
@@ -3257,9 +3261,11 @@ proto_register_sna(void)
{ "Type of Variable", "sna.gds.type", FT_UINT16, BASE_HEX,
VALS(sna_gds_var_vals), 0x0, NULL, HFILL }},
+/**
{ &hf_sna_xid,
{ "XID", "sna.xid", FT_NONE, BASE_NONE, NULL, 0x0,
"XID Frame", HFILL }},
+**/
{ &hf_sna_xid_0,
{ "XID Byte 0", "sna.xid.0", FT_UINT8, BASE_HEX, NULL, 0x0,
diff --git a/epan/dissectors/packet-spp.c b/epan/dissectors/packet-spp.c
index d5c72610cf..b0c6267efd 100644
--- a/epan/dissectors/packet-spp.c
+++ b/epan/dissectors/packet-spp.c
@@ -41,7 +41,7 @@ static int hf_spp_dst_id = -1;
static int hf_spp_seq_nr = -1;
static int hf_spp_ack_nr = -1;
static int hf_spp_all_nr = -1;
-static int hf_spp_rexmt_frame = -1;
+/* static int hf_spp_rexmt_frame = -1; */
static gint ett_spp = -1;
static gint ett_spp_connctrl = -1;
@@ -254,10 +254,12 @@ proto_register_spp(void)
FT_UINT16, BASE_DEC, NULL, 0x0,
NULL, HFILL }},
+/**
{ &hf_spp_rexmt_frame,
{ "Retransmitted Frame Number", "spp.rexmt_frame",
FT_FRAMENUM, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
+**/
};
static gint *ett[] = {
diff --git a/epan/dissectors/packet-teamspeak2.c b/epan/dissectors/packet-teamspeak2.c
index ba8ff0ca32..55cb1737ba 100644
--- a/epan/dissectors/packet-teamspeak2.c
+++ b/epan/dissectors/packet-teamspeak2.c
@@ -234,7 +234,7 @@ static int hf_ts2_crc32 = -1;
static int hf_ts2_ackto = -1;
static int hf_ts2_seqnum = -1;
static int hf_ts2_protocol_string = -1;
-static int hf_ts2_string = -1;
+/* static int hf_ts2_string = -1; */
static int hf_ts2_registeredlogin = -1;
static int hf_ts2_name = -1;
static int hf_ts2_password = -1;
@@ -435,7 +435,7 @@ static void ts2_standard_dissect(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
fragment_number = tvb_get_letohs(tvb, 18);
frag_msg = fragment_add_seq_check(tvb, 24, pinfo, type, msg_fragment_table, msg_reassembled_table, frag->frag_num, tvb_length_remaining(tvb, 24), fragment_number);
new_tvb = process_reassembled_data(tvb, 24, pinfo,"Reassembled TeamSpeak2", frag_msg, &msg_frag_items, NULL, ts2_tree);
- if (frag_msg)
+ if (frag_msg) /* XXX: should be if (new_tvb) ?? */
{ /* Reassembled */
col_append_str(pinfo->cinfo, COL_INFO, " (Message Reassembled)");
}
@@ -903,12 +903,14 @@ void proto_register_ts2(void)
NULL, 0x0,
NULL, HFILL }
},
+/**
{ &hf_ts2_string,
{ "String", "ts2.string",
FT_STRING, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
+**/
{ &hf_ts2_registeredlogin,
{ "Registered Login", "ts2.registeredlogin",
FT_BOOLEAN, BASE_NONE,
diff --git a/epan/dissectors/packet-tipc.c b/epan/dissectors/packet-tipc.c
index dc52882e78..02502f5a58 100644
--- a/epan/dissectors/packet-tipc.c
+++ b/epan/dissectors/packet-tipc.c
@@ -123,7 +123,7 @@ static int hf_tipcv2_opt_p = -1;
static int hf_tipcv2_broadcast_ack_no = -1;
static int hf_tipcv2_link_level_ack_no = -1;
static int hf_tipcv2_link_level_seq_no = -1;
-static int hf_tipcv2_bcast_seq_no = -1;
+/* static int hf_tipcv2_bcast_seq_no = -1; */
static int hf_tipcv2_prev_node = -1;
static int hf_tipcv2_orig_node = -1;
static int hf_tipcv2_dest_node = -1;
@@ -2655,11 +2655,13 @@ proto_register_tipc(void)
FT_UINT32, BASE_DEC, NULL, 0x0000FFFF,
NULL, HFILL }
},
+/**
{ &hf_tipcv2_bcast_seq_no,
{ "Broadcast Sequence Number", "tipcv2.bcast_seq_no",
FT_UINT32, BASE_DEC, NULL, 0x0000FFFF,
NULL, HFILL }
},
+**/
{ &hf_tipcv2_prev_node,
{ "Previous Node", "tipcv2.prev_node",
FT_STRING, BASE_NONE, NULL, 0x0,
diff --git a/epan/dissectors/packet-tns.c b/epan/dissectors/packet-tns.c
index 52b36abac7..4d4747c3e2 100644
--- a/epan/dissectors/packet-tns.c
+++ b/epan/dissectors/packet-tns.c
@@ -120,7 +120,7 @@ static int hf_tns_abort_data = -1;
static int hf_tns_marker = -1;
static int hf_tns_marker_type = -1;
static int hf_tns_marker_data_byte = -1;
-static int hf_tns_marker_data = -1;
+/* static int hf_tns_marker_data = -1; */
static int hf_tns_redirect = -1;
static int hf_tns_redirect_data_length = -1;
@@ -1224,9 +1224,11 @@ void proto_register_tns(void)
{ &hf_tns_marker_data_byte, {
"Marker Data Byte", "tns.marker.databyte", FT_UINT8, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
+/**
{ &hf_tns_marker_data, {
"Marker Data", "tns.marker.data", FT_UINT16, BASE_HEX,
NULL, 0x0, NULL, HFILL }},
+**/
{ &hf_tns_control, {
"Control", "tns.control", FT_BOOLEAN, BASE_NONE,
diff --git a/epan/dissectors/packet-tte-pcf.c b/epan/dissectors/packet-tte-pcf.c
index 8b1cb7a9b7..fc512d2d85 100644
--- a/epan/dissectors/packet-tte-pcf.c
+++ b/epan/dissectors/packet-tte-pcf.c
@@ -41,14 +41,14 @@
/* Initialize the protocol and registered fields */
static int proto_tte_pcf = -1;
-static int hf_tte_pcf = -1;
+/* static int hf_tte_pcf = -1; */
static int hf_tte_pcf_ic = -1;
static int hf_tte_pcf_mn = -1;
-static int hf_tte_pcf_res0 = -1;
+/* static int hf_tte_pcf_res0 = -1; */
static int hf_tte_pcf_sp = -1;
static int hf_tte_pcf_sd = -1;
static int hf_tte_pcf_type = -1;
-static int hf_tte_pcf_res1 = -1;
+/* static int hf_tte_pcf_res1 = -1; */
static int hf_tte_pcf_tc = -1;
/* Initialize the subtree pointers */
@@ -145,11 +145,13 @@ proto_register_tte_pcf(void)
{
static hf_register_info hf[] = {
+/**
{ &hf_tte_pcf,
{ "Protocol Control Frame", "tte.pcf",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
+**/
{ &hf_tte_pcf_ic,
{ "Integration Cycle", "tte.pcf.ic",
FT_UINT32, BASE_HEX, NULL, 0x0,
@@ -160,11 +162,13 @@ proto_register_tte_pcf(void)
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
+/**
{ &hf_tte_pcf_res0,
{ "Reserved 0", "tte.pcf.res0",
FT_UINT32, BASE_HEX, NULL, 0x0,
NULL, HFILL }
},
+**/
{ &hf_tte_pcf_sp,
{ "Sync Priority", "tte.pcf.sp",
FT_UINT8, BASE_HEX, NULL, 0x0,
@@ -180,11 +184,13 @@ proto_register_tte_pcf(void)
FT_UINT8, BASE_HEX, VALS(pcf_type_str_vals), 0x0F,
NULL, HFILL }
},
+/**
{ &hf_tte_pcf_res1,
{ "Reserved 1", "tte.pcf.res1",
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }
},
+**/
{ &hf_tte_pcf_tc,
{ "Transparent Clock", "tte.pcf.tc",
FT_UINT64, BASE_HEX, NULL, 0x0,
diff --git a/epan/dissectors/packet-tzsp.c b/epan/dissectors/packet-tzsp.c
index c63272821b..af1c05a9c1 100644
--- a/epan/dissectors/packet-tzsp.c
+++ b/epan/dissectors/packet-tzsp.c
@@ -58,10 +58,10 @@ static dissector_table_t encap_dissector_table;
/* WLAN radio header felds */
/* ************************************************************************* */
-static int hf_status_field = -1;
+/* static int hf_status_field = -1; */
static int hf_status_msg_type = -1;
static int hf_status_pcf = -1;
-static int hf_status_mac_port = -1;
+/* static int hf_status_mac_port = -1; */
static int hf_status_undecrypted = -1;
static int hf_status_fcs_error = -1;
@@ -439,15 +439,19 @@ proto_register_tzsp(void)
{ &hf_tzsp_encap, {
"Encapsulation", "tzsp.encap", FT_UINT16, BASE_DEC,
NULL, 0, NULL, HFILL }},
+/**
{ &hf_status_field, {
"Status", "tzsp.wlan.status", FT_UINT16, BASE_HEX,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_status_msg_type, {
"Type", "tzsp.wlan.status.msg_type", FT_UINT8, BASE_HEX,
VALS(msg_type), 0, "Message type", HFILL }},
+/**
{ &hf_status_mac_port, {
"Port", "tzsp.wlan.status.mac_port", FT_UINT8, BASE_DEC,
NULL, 0, "MAC port", HFILL }},
+**/
{ &hf_status_pcf, {
"PCF", "tzsp.wlan.status.pcf", FT_BOOLEAN, BASE_NONE,
TFS (&pcf_flag), 0x0, "Point Coordination Function", HFILL }},
diff --git a/epan/dissectors/packet-umts_fp.c b/epan/dissectors/packet-umts_fp.c
index 4a60ec080b..b38b5b522b 100644
--- a/epan/dissectors/packet-umts_fp.c
+++ b/epan/dissectors/packet-umts_fp.c
@@ -122,7 +122,7 @@ static int hf_fp_edch_macis_flag = -1;
static int hf_fp_frame_seq_nr = -1;
static int hf_fp_hsdsch_pdu_block_header = -1;
-static int hf_fp_hsdsch_pdu_block = -1;
+/* static int hf_fp_hsdsch_pdu_block = -1; */
static int hf_fp_flush = -1;
static int hf_fp_fsn_drt_reset = -1;
static int hf_fp_drt_indicator = -1;
@@ -4847,12 +4847,14 @@ void proto_register_fp(void)
"HS-DSCH type 2 PDU block header", HFILL
}
},
+/**
{ &hf_fp_hsdsch_pdu_block,
{ "PDU block",
"fp.hsdsch.pdu-block", FT_STRING, BASE_NONE, NULL, 0x0,
"HS-DSCH type 2 PDU block data", HFILL
}
},
+**/
{ &hf_fp_flush,
{ "Flush",
"fp.flush", FT_UINT8, BASE_DEC, 0, 0x04,
diff --git a/epan/dissectors/packet-umts_mac.c b/epan/dissectors/packet-umts_mac.c
index 57133186af..ab6ae64097 100644
--- a/epan/dissectors/packet-umts_mac.c
+++ b/epan/dissectors/packet-umts_mac.c
@@ -48,18 +48,18 @@ static int hf_mac_ueid_type = -1;
static int hf_mac_crnti = -1;
static int hf_mac_urnti = -1;
static int hf_mac_channel = -1;
-static int hf_mac_channel_str = -1;
+/* static int hf_mac_channel_str = -1; */
static int hf_mac_lch_id = -1;
static int hf_mac_macdflowd_id = -1;
-static int hf_mac_channel_hsdsch = -1;
+/* static int hf_mac_channel_hsdsch = -1; */
static int hf_mac_trch_id = -1;
-static int hf_mac_edch_type2_subframe_header = -1;
-static int hf_mac_edch_type2_descriptors = -1;
-static int hf_mac_edch_type2_lchid = -1;
-static int hf_mac_edch_type2_length = -1;
-static int hf_mac_edch_type2_flag = -1;
+/* static int hf_mac_edch_type2_subframe_header = -1; */
+/* static int hf_mac_edch_type2_descriptors = -1; */
+/* static int hf_mac_edch_type2_lchid = -1; */
+/* static int hf_mac_edch_type2_length = -1; */
+/* static int hf_mac_edch_type2_flag = -1; */
static int hf_mac_edch_type2_tsn = -1;
static int hf_mac_edch_type2_ss = -1;
static int hf_mac_edch_type2_sdu = -1;
@@ -1347,13 +1347,17 @@ proto_register_umts_mac(void)
FT_UINT16, BASE_DEC, VALS(mac_logical_channel_vals), 0, NULL, HFILL }
},
+/**
{ &hf_mac_channel_str,
{ "Logical Channel", "mac.logical_channel",
FT_STRING, BASE_NONE, NULL, 0, NULL, HFILL }
},
- { &hf_mac_channel_hsdsch,
+**/
+/**
+ { &hf_mac_channel_hsdsch,
{ "MACd-FlowID", "mac.macd_flowid", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }
},
+**/
{ &hf_mac_macdflowd_id,
{ "MACd-FlowID", "mac.macd_flowid", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }
},
@@ -1363,30 +1367,38 @@ proto_register_umts_mac(void)
{ &hf_mac_trch_id,
{ "Transport Channel ID", "mac.transport_channel_id", FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }
},
+/**
{ &hf_mac_edch_type2_descriptors,
{ "MAC-is Descriptors",
"mac.edch.type2.descriptors", FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL
}
},
+**/
+/**
{ &hf_mac_edch_type2_lchid,
{ "LCH-ID",
"mac.logical_channel_id", FT_UINT8, BASE_HEX, NULL, 0xf0,
NULL, HFILL
}
},
+**/
+/**
{ &hf_mac_edch_type2_length,
{ "Length",
"mac.edch.type2.length", FT_UINT16, BASE_DEC, NULL, 0x0ffe,
NULL, HFILL
}
},
+**/
+/**
{ &hf_mac_edch_type2_flag,
{ "Flag",
"mac.edch.type2.lchid", FT_UINT8, BASE_HEX, NULL, 0x01,
"Indicates if another entry follows", HFILL
}
},
+**/
{ &hf_mac_edch_type2_ss,
{ "SS",
/* TODO: VALS */
@@ -1412,12 +1424,14 @@ proto_register_umts_mac(void)
NULL, HFILL
}
},
+/**
{ &hf_mac_edch_type2_subframe_header,
{ "Subframe header",
"mac.edch.type2.subframeheader", FT_STRING, BASE_NONE, NULL, 0x0,
"EDCH Subframe header", HFILL
}
},
+**/
{ &hf_mac_is_reasmin,
{ "Reassembled in frame", "mac.is.reasmin",
FT_FRAMENUM, BASE_NONE, NULL, 0, NULL, HFILL }
diff --git a/epan/dissectors/packet-usb-hid.c b/epan/dissectors/packet-usb-hid.c
index a78b6c1557..378e93bb73 100644
--- a/epan/dissectors/packet-usb-hid.c
+++ b/epan/dissectors/packet-usb-hid.c
@@ -74,7 +74,7 @@ static int hf_usb_hid_globalitem_pop = -1;
static int hf_usb_hid_localitem_usage = -1;
static int hf_usb_hid_localitem_usage_min = -1;
-static int hf_usb_hid_localitem_usage_max = -1;
+/* static int hf_usb_hid_localitem_usage_max = -1; */
static int hf_usb_hid_localitem_desig_index = -1;
static int hf_usb_hid_localitem_desig_min = -1;
static int hf_usb_hid_localitem_desig_max = -1;
@@ -965,9 +965,11 @@ proto_register_usb_hid(void)
{ "Usage minimum", "usbhid.item.local.usage_min", FT_UINT8, BASE_HEX,
NULL, 0, NULL, HFILL }},
+/**
{ &hf_usb_hid_localitem_usage_max,
{ "Usage maximum", "usbhid.item.local.usage_max", FT_UINT8, BASE_HEX,
NULL, 0, NULL, HFILL }},
+**/
{ &hf_usb_hid_localitem_desig_index,
{ "Designator index", "usbhid.item.local.desig_index", FT_UINT8, BASE_HEX,
diff --git a/epan/dissectors/packet-usb.c b/epan/dissectors/packet-usb.c
index e06dc0aade..64f5de33b6 100644
--- a/epan/dissectors/packet-usb.c
+++ b/epan/dissectors/packet-usb.c
@@ -67,7 +67,7 @@ static int hf_usb_request_unknown_class = -1;
static int hf_usb_value = -1;
static int hf_usb_index = -1;
static int hf_usb_length = -1;
-static int hf_usb_data_len = -1;
+/* static int hf_usb_data_len = -1; */
static int hf_usb_capdata = -1;
static int hf_usb_wFeatureSelector = -1;
static int hf_usb_wInterface = -1;
@@ -3103,10 +3103,12 @@ proto_register_usb(void)
FT_BYTES, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
/* --------------------------------- */
+/**
{ &hf_usb_data_len,
{"Application Data Length", "usb.data.length",
FT_UINT32, BASE_DEC, NULL, 0x0,
NULL, HFILL }},
+**/
{ &hf_usb_capdata,
{"Leftover Capture Data", "usb.capdata",
diff --git a/epan/dissectors/packet-v52.c b/epan/dissectors/packet-v52.c
index b7e4d72c38..8d61d178c6 100644
--- a/epan/dissectors/packet-v52.c
+++ b/epan/dissectors/packet-v52.c
@@ -43,8 +43,8 @@ static int hf_v52_discriminator = -1;
static gint ett_v52 = -1;
static gint ett_v52_info = -1;
-static int hf_v52_address = -1;
-static int hf_v52_low_address = -1;
+/* static int hf_v52_address = -1; */
+/* static int hf_v52_low_address = -1; */
static int hf_v52_msg_type = -1;
static int hf_v52_info_element = -1;
@@ -59,8 +59,8 @@ static int hf_v52_bcc_address = -1;
static int hf_v52_bcc_low_address = -1;
static int hf_v52_prot_address = -1;
static int hf_v52_prot_low_address = -1;
-static int hf_v52_ctrl_address = -1;
-static int hf_v52_ctrl_low_address = -1;
+/* static int hf_v52_ctrl_address = -1; */
+/* static int hf_v52_ctrl_low_address = -1; */
static int hf_v52_cadenced_ring = -1;
static int hf_v52_pulse_notification = -1;
static int hf_v52_info_length = -1;
@@ -188,78 +188,78 @@ dissect_v52_protocol_discriminator(tvbuff_t *tvb, int offset, proto_tree *tree)
#define LINK_CONTROL_ACK 0x31
static const value_string msg_type_values [] = {
- { ESTABLISH, "Establish" },
- { ESTABLISH_ACK, "Establish Ack" },
- { SIGNAL, "Signal" },
- { SIGNAL_ACK, "Signal Ack" },
- { DISCONNECT, "Disconnect" },
- { DISCONNECT_COMPLETE, "Disconnect Complete" },
- { STATUS_ENQUIRY, "Status Enqury" },
- { STATUS, "Status" },
- { PROTOCOL_PARAMETER, "Protocol Parameter" },
- { PORT_CONTROL, "Port Control" },
- { PORT_CONTROL_ACK, "Port Control Ack" },
- { COMMON_CONTROL, "Common Control" },
- { COMMON_CONTROL_ACK, "Common Control Ack" },
- { SWITCH_OVER_REQ, "Switch-Over Request" },
- { SWITCH_OVER_COM, "Switch-Over Com" },
- { OS_SWITCH_OVER_COM, "OS-Switch-Over Com" },
- { SWITCH_OVER_ACK, "Switch-Over Ack" },
- { SWITCH_OVER_REJECT, "Switch-Over Reject" },
- { PROT_PROTOCOL_ERROR, "Protocol Error" },
- { RESET_SN_COM, "Reset SN Com" },
- { RESET_SN_ACK, "Reset SN Ack" },
- { ALLOCATION, "Allocation" },
- { ALLOCATION_COMPLETE, "Allocation Complete" },
- { ALLOCATION_REJECT, "Allocation Reject" },
- { DE_ALLOCATION, "DE Allocation" },
- { DE_ALLOCATION_COMPLETE,"DE Allocation Complete" },
- { DE_ALLOCATION_REJECT, "DE Allocation Reject" },
- { AUDIT, "Audit" },
- { AUDIT_COMPLETE, "Audit Complete" },
- { AN_FAULT, "AN Fault" },
- { AN_FAULT_ACKNOWLEDGE, "AN Fault Ack" },
- { BCC_PROTOCOL_ERROR, "Protocol Error" },
- { LINK_CONTROL, "Link Control" },
- { LINK_CONTROL_ACK, "Link Control Ack" },
+ { ESTABLISH, "Establish" },
+ { ESTABLISH_ACK, "Establish Ack" },
+ { SIGNAL, "Signal" },
+ { SIGNAL_ACK, "Signal Ack" },
+ { DISCONNECT, "Disconnect" },
+ { DISCONNECT_COMPLETE, "Disconnect Complete" },
+ { STATUS_ENQUIRY, "Status Enqury" },
+ { STATUS, "Status" },
+ { PROTOCOL_PARAMETER, "Protocol Parameter" },
+ { PORT_CONTROL, "Port Control" },
+ { PORT_CONTROL_ACK, "Port Control Ack" },
+ { COMMON_CONTROL, "Common Control" },
+ { COMMON_CONTROL_ACK, "Common Control Ack" },
+ { SWITCH_OVER_REQ, "Switch-Over Request" },
+ { SWITCH_OVER_COM, "Switch-Over Com" },
+ { OS_SWITCH_OVER_COM, "OS-Switch-Over Com" },
+ { SWITCH_OVER_ACK, "Switch-Over Ack" },
+ { SWITCH_OVER_REJECT, "Switch-Over Reject" },
+ { PROT_PROTOCOL_ERROR, "Protocol Error" },
+ { RESET_SN_COM, "Reset SN Com" },
+ { RESET_SN_ACK, "Reset SN Ack" },
+ { ALLOCATION, "Allocation" },
+ { ALLOCATION_COMPLETE, "Allocation Complete" },
+ { ALLOCATION_REJECT, "Allocation Reject" },
+ { DE_ALLOCATION, "DE Allocation" },
+ { DE_ALLOCATION_COMPLETE, "DE Allocation Complete" },
+ { DE_ALLOCATION_REJECT, "DE Allocation Reject" },
+ { AUDIT, "Audit" },
+ { AUDIT_COMPLETE, "Audit Complete" },
+ { AN_FAULT, "AN Fault" },
+ { AN_FAULT_ACKNOWLEDGE, "AN Fault Ack" },
+ { BCC_PROTOCOL_ERROR, "Protocol Error" },
+ { LINK_CONTROL, "Link Control" },
+ { LINK_CONTROL_ACK, "Link Control Ack" },
{ 0, NULL } };
/* SHORT */
static const value_string msg_type_values_short [] = {
- { ESTABLISH, "Establish" },
- { ESTABLISH_ACK, "Establish Ack" },
- { SIGNAL, "Signal" },
- { SIGNAL_ACK, "Signal Ack" },
- { DISCONNECT, "Disconnect" },
- { DISCONNECT_COMPLETE, "Disconnect Com" },
- { STATUS_ENQUIRY, "Status Enq" },
- { STATUS, "Status" },
- { PROTOCOL_PARAMETER, "Prot Para" },
- { PORT_CONTROL, "PortCtrl" },
- { PORT_CONTROL_ACK, "PortCtrl Ack" },
- { COMMON_CONTROL, "CCtrl" },
- { COMMON_CONTROL_ACK, "CCtrl Ack" },
- { SWITCH_OVER_REQ, "SO Req" },
- { SWITCH_OVER_COM, "SO Com" },
- { OS_SWITCH_OVER_COM, "OS SO Com" },
- { SWITCH_OVER_ACK, "SO Ack" },
- { SWITCH_OVER_REJECT, "SO Rej" },
- { PROT_PROTOCOL_ERROR, "Prot Err" },
- { RESET_SN_COM, "Res SN Com" },
- { RESET_SN_ACK, "Res SN Ack" },
- { ALLOCATION, "BCC Alloc" },
- { ALLOCATION_COMPLETE, "BCC Alloc Comp" },
- { ALLOCATION_REJECT, "BCC Allo Rej" },
- { DE_ALLOCATION, "BCC DE-Alloc" },
- { DE_ALLOCATION_COMPLETE,"BCC DE-Alloc Comp" },
- { DE_ALLOCATION_REJECT, "BCC DE-Alloc Rej" },
- { AUDIT, "BCC Audit" },
- { AUDIT_COMPLETE, "BCC Audit Comp" },
- { AN_FAULT, "BCC AN Fault" },
- { AN_FAULT_ACKNOWLEDGE, "BCC AN Fault Ack" },
- { BCC_PROTOCOL_ERROR, "BCC Prot Error" },
- { LINK_CONTROL, "LinkCtrl" },
- { LINK_CONTROL_ACK, "LinkCtrl Ack" },
+ { ESTABLISH, "Establish" },
+ { ESTABLISH_ACK, "Establish Ack" },
+ { SIGNAL, "Signal" },
+ { SIGNAL_ACK, "Signal Ack" },
+ { DISCONNECT, "Disconnect" },
+ { DISCONNECT_COMPLETE, "Disconnect Com" },
+ { STATUS_ENQUIRY, "Status Enq" },
+ { STATUS, "Status" },
+ { PROTOCOL_PARAMETER, "Prot Para" },
+ { PORT_CONTROL, "PortCtrl" },
+ { PORT_CONTROL_ACK, "PortCtrl Ack" },
+ { COMMON_CONTROL, "CCtrl" },
+ { COMMON_CONTROL_ACK, "CCtrl Ack" },
+ { SWITCH_OVER_REQ, "SO Req" },
+ { SWITCH_OVER_COM, "SO Com" },
+ { OS_SWITCH_OVER_COM, "OS SO Com" },
+ { SWITCH_OVER_ACK, "SO Ack" },
+ { SWITCH_OVER_REJECT, "SO Rej" },
+ { PROT_PROTOCOL_ERROR, "Prot Err" },
+ { RESET_SN_COM, "Res SN Com" },
+ { RESET_SN_ACK, "Res SN Ack" },
+ { ALLOCATION, "BCC Alloc" },
+ { ALLOCATION_COMPLETE, "BCC Alloc Comp" },
+ { ALLOCATION_REJECT, "BCC Allo Rej" },
+ { DE_ALLOCATION, "BCC DE-Alloc" },
+ { DE_ALLOCATION_COMPLETE, "BCC DE-Alloc Comp" },
+ { DE_ALLOCATION_REJECT, "BCC DE-Alloc Rej" },
+ { AUDIT, "BCC Audit" },
+ { AUDIT_COMPLETE, "BCC Audit Comp" },
+ { AN_FAULT, "BCC AN Fault" },
+ { AN_FAULT_ACKNOWLEDGE, "BCC AN Fault Ack" },
+ { BCC_PROTOCOL_ERROR, "BCC Prot Error" },
+ { LINK_CONTROL, "LinkCtrl" },
+ { LINK_CONTROL_ACK, "LinkCtrl Ack" },
{ 0, NULL } };
static const value_string pulse_type_values [] = {
@@ -589,81 +589,81 @@ static const value_string cause_type_values [] = {
#define PROTOCOL_ERROR 0x53
static const value_string info_element_values [] = {
- { PULSE_NOTIFICATION, "Pulse notification" },
- { LINE_INFORMATION, "Line information" },
- { STATE, "State" },
- { AUTO_SIG_SEQUENCE, "Autonomous signal sequence" },
- { SEQUENCE_RESPONSE, "Sequence response" },
- { PSTN_SEQUENCE_NUMBER, "Sequence number" },
- { CADENCED_RINGING, "Cadenced ringing" },
- { PULSED_SIGNAL, "Pulsed signal" },
- { STEADY_SIGNAL, "Steady signal" },
- { DIGIT_SIGNAL, "Digit signal" },
- { RECOGNITION_TIME, "Recognition time" },
- { ENABLE_AUTO_ACK, "Enable autonomous acknowledge" },
- { DISABLE_AUTO_ACK, "Disable autonomous acknowledge" },
- { CAUSE, "Cause" },
- { RESOURCE_UNAVAILABLE, "Resource unavailable" },
- { ENABLE_METERING, "Enable metering" },
- { METERING_REPORT, "Metering report" },
- { ATTENUATION, "Attenuation" },
- { PERFORMANCE_GRADING, "Performance grading" },
- { CP_REJECTION_CAUSE, "Rejection cause" },
- { CONTROL_FUNCTION_ELEMENT,"Control function element" },
- { CONTROL_FUNCTION_ID, "Control function ID" },
- { VARIANT, "Variant" },
- { INTERFACE_ID, "Interface ID" },
- { LINK_CONTROL_FUNCTION, "Link control function" },
- { USER_PORT_ID, "User port ID" },
- { ISDN_PORT_TS_ID, "ISDN port TS ID" },
- { V5_TIME_SLOT_ID, "V5 TS ID" },
- { MULTI_SLOT_MAP, "Multi-Slot map" },
- { BCC_REJECT_CAUSE, "Reject cause" },
- { BCC_PROTOCOL_ERROR_CAUSE,"Protocol error cause" },
- { CONNECTION_INCOMPLETE, "Connection incomplete" },
- { SEQUENCE_NUMBER, "Sequence number" },
- { C_CHANNEL_ID, "Physical C-Channel ID" },
- { PP_REJECTION_CAUSE, "Rejection cause" },
- { PROTOCOL_ERROR, "Protocol error cause" },
+ { PULSE_NOTIFICATION, "Pulse notification" },
+ { LINE_INFORMATION, "Line information" },
+ { STATE, "State" },
+ { AUTO_SIG_SEQUENCE, "Autonomous signal sequence" },
+ { SEQUENCE_RESPONSE, "Sequence response" },
+ { PSTN_SEQUENCE_NUMBER, "Sequence number" },
+ { CADENCED_RINGING, "Cadenced ringing" },
+ { PULSED_SIGNAL, "Pulsed signal" },
+ { STEADY_SIGNAL, "Steady signal" },
+ { DIGIT_SIGNAL, "Digit signal" },
+ { RECOGNITION_TIME, "Recognition time" },
+ { ENABLE_AUTO_ACK, "Enable autonomous acknowledge" },
+ { DISABLE_AUTO_ACK, "Disable autonomous acknowledge" },
+ { CAUSE, "Cause" },
+ { RESOURCE_UNAVAILABLE, "Resource unavailable" },
+ { ENABLE_METERING, "Enable metering" },
+ { METERING_REPORT, "Metering report" },
+ { ATTENUATION, "Attenuation" },
+ { PERFORMANCE_GRADING, "Performance grading" },
+ { CP_REJECTION_CAUSE, "Rejection cause" },
+ { CONTROL_FUNCTION_ELEMENT, "Control function element" },
+ { CONTROL_FUNCTION_ID, "Control function ID" },
+ { VARIANT, "Variant" },
+ { INTERFACE_ID, "Interface ID" },
+ { LINK_CONTROL_FUNCTION, "Link control function" },
+ { USER_PORT_ID, "User port ID" },
+ { ISDN_PORT_TS_ID, "ISDN port TS ID" },
+ { V5_TIME_SLOT_ID, "V5 TS ID" },
+ { MULTI_SLOT_MAP, "Multi-Slot map" },
+ { BCC_REJECT_CAUSE, "Reject cause" },
+ { BCC_PROTOCOL_ERROR_CAUSE, "Protocol error cause" },
+ { CONNECTION_INCOMPLETE, "Connection incomplete" },
+ { SEQUENCE_NUMBER, "Sequence number" },
+ { C_CHANNEL_ID, "Physical C-Channel ID" },
+ { PP_REJECTION_CAUSE, "Rejection cause" },
+ { PROTOCOL_ERROR, "Protocol error cause" },
{ 0, NULL } };
static const value_string info_element_values_short [] = {
- { PULSE_NOTIFICATION, "PN" },
- { LINE_INFORMATION, "LI" },
- { STATE, "ST" },
- { AUTO_SIG_SEQUENCE, "ASS" },
- { SEQUENCE_RESPONSE, "SR" },
- { PSTN_SEQUENCE_NUMBER, "SN" },
- { CADENCED_RINGING, "CR" },
- { PULSED_SIGNAL, "PS" },
- { STEADY_SIGNAL, "SS" },
- { DIGIT_SIGNAL, "DS" },
- { RECOGNITION_TIME, "RT" },
- { ENABLE_AUTO_ACK, "EAA" },
- { DISABLE_AUTO_ACK, "DAA" },
- { CAUSE, "CA" },
- { RESOURCE_UNAVAILABLE, "RU" },
- { ENABLE_METERING, "EM" },
- { METERING_REPORT, "MR" },
- { ATTENUATION, "ATT" },
- { PERFORMANCE_GRADING, "PG" },
- { CP_REJECTION_CAUSE, "RC" },
- { CONTROL_FUNCTION_ELEMENT,"CF element" },
- { CONTROL_FUNCTION_ID, "CF ID" },
- { VARIANT, "Var" },
- { INTERFACE_ID, "Interface ID" },
- { LINK_CONTROL_FUNCTION, "LC F" },
- { USER_PORT_ID, "UP ID" },
- { ISDN_PORT_TS_ID, "ISDNP TS ID" },
- { V5_TIME_SLOT_ID, "V5 TS ID" },
- { MULTI_SLOT_MAP, "MS map" },
- { BCC_REJECT_CAUSE, "RC" },
- { BCC_PROTOCOL_ERROR_CAUSE,"PEC" },
- { CONNECTION_INCOMPLETE, "CI" },
- { SEQUENCE_NUMBER, "SN" },
- { C_CHANNEL_ID, "Phy CChannel ID" },
- { PP_REJECTION_CAUSE, "RC" },
- { PROTOCOL_ERROR, "PEC" },
+ { PULSE_NOTIFICATION, "PN" },
+ { LINE_INFORMATION, "LI" },
+ { STATE, "ST" },
+ { AUTO_SIG_SEQUENCE, "ASS" },
+ { SEQUENCE_RESPONSE, "SR" },
+ { PSTN_SEQUENCE_NUMBER, "SN" },
+ { CADENCED_RINGING, "CR" },
+ { PULSED_SIGNAL, "PS" },
+ { STEADY_SIGNAL, "SS" },
+ { DIGIT_SIGNAL, "DS" },
+ { RECOGNITION_TIME, "RT" },
+ { ENABLE_AUTO_ACK, "EAA" },
+ { DISABLE_AUTO_ACK, "DAA" },
+ { CAUSE, "CA" },
+ { RESOURCE_UNAVAILABLE, "RU" },
+ { ENABLE_METERING, "EM" },
+ { METERING_REPORT, "MR" },
+ { ATTENUATION, "ATT" },
+ { PERFORMANCE_GRADING, "PG" },
+ { CP_REJECTION_CAUSE, "RC" },
+ { CONTROL_FUNCTION_ELEMENT, "CF element" },
+ { CONTROL_FUNCTION_ID, "CF ID" },
+ { VARIANT, "Var" },
+ { INTERFACE_ID, "Interface ID" },
+ { LINK_CONTROL_FUNCTION, "LC F" },
+ { USER_PORT_ID, "UP ID" },
+ { ISDN_PORT_TS_ID, "ISDNP TS ID" },
+ { V5_TIME_SLOT_ID, "V5 TS ID" },
+ { MULTI_SLOT_MAP, "MS map" },
+ { BCC_REJECT_CAUSE, "RC" },
+ { BCC_PROTOCOL_ERROR_CAUSE, "PEC" },
+ { CONNECTION_INCOMPLETE, "CI" },
+ { SEQUENCE_NUMBER, "SN" },
+ { C_CHANNEL_ID, "Phy CChannel ID" },
+ { PP_REJECTION_CAUSE, "RC" },
+ { PROTOCOL_ERROR, "PEC" },
{ 0, NULL } };
@@ -680,15 +680,15 @@ static const value_string info_element_values_short [] = {
static void
dissect_pstn_sequence_number(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
guint8 pstn_sequence_number_tmp = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -715,14 +715,14 @@ dissect_pstn_sequence_number(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
static void
dissect_cadenced_ring(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
- guint8 cadenced_ring_tmp = 0;
- guint16 data_length;
- tvbuff_t *info_tvb;
- int info_offset = 0;
+ guint8 info_element = 0;
+ guint8 cadenced_ring_tmp = 0;
+ guint16 data_length;
+ tvbuff_t *info_tvb;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -752,14 +752,14 @@ dissect_cadenced_ring(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int o
static void
dissect_pulsed_signal(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -799,15 +799,14 @@ dissect_pulsed_signal(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int o
static void
dissect_steady_signal(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
+ guint8 info_element = 0;
- guint8 info_element = 0;
-
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -836,15 +835,15 @@ dissect_steady_signal(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int o
static void
dissect_digit_signal(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 buffer = 0;
+ guint8 buffer = 0;
guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -885,15 +884,15 @@ dissect_digit_signal(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int of
static void
dissect_recognition_time(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 buffer = 0;
+ guint8 buffer = 0;
guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -928,15 +927,15 @@ dissect_recognition_time(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, in
static void
dissect_enable_auto_ack(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 buffer = 0;
+ guint8 buffer = 0;
guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -984,15 +983,15 @@ dissect_enable_auto_ack(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int
static void
dissect_disable_auto_ack(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 buffer = 0;
+ guint8 buffer = 0;
guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1024,14 +1023,14 @@ dissect_disable_auto_ack(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, in
static void
dissect_cause(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1064,14 +1063,14 @@ dissect_cause(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
static void
dissect_resource_unavailable(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1097,14 +1096,14 @@ dissect_resource_unavailable(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree
static void
dissect_pulse_notification(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1128,14 +1127,14 @@ dissect_pulse_notification(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
static void
dissect_line_information(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1159,14 +1158,14 @@ dissect_line_information(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, in
static void
dissect_state(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1190,14 +1189,14 @@ dissect_state(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
static void
dissect_auto_sig_sequence(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1221,14 +1220,14 @@ dissect_auto_sig_sequence(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, i
static void
dissect_sequence_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1252,14 +1251,14 @@ dissect_sequence_response(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, i
static void
dissect_control_function_element(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1288,14 +1287,14 @@ dissect_control_function_element(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
static void
dissect_control_function_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1324,15 +1323,15 @@ dissect_control_function_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
static void
dissect_variant(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
guint8 variantValue = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1358,15 +1357,15 @@ dissect_variant(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
static void
dissect_interface_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
guint8 interfaceAllIdValue = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1396,19 +1395,19 @@ dissect_interface_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int of
static void
dissect_sequence_number(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
- guint8 info_element_length = 1;
- guint8 info_element = 0;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
+ guint8 info_element_length = 1;
+ guint8 info_element = 0;
guint8 hf_v52_sequence_number_tmp = 0;
- guint16 data_length;
- tvbuff_t *info_tvb;
- int info_offset = 0;
+ guint16 data_length;
+ tvbuff_t *info_tvb;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
- data_length = tvb_get_guint8(tvb, offset+1)+2;
- info_tvb = tvb_new_subset(tvb, offset, data_length, data_length);
+ data_length = tvb_get_guint8(tvb, offset+1)+2;
+ info_tvb = tvb_new_subset(tvb, offset, data_length, data_length);
if (tree) {
ti_info = proto_tree_add_text(tree, info_tvb, info_offset, -1, "Info Element:");
@@ -1434,16 +1433,16 @@ dissect_sequence_number(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int
static void
dissect_physical_c_channel_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
- guint8 info_element_length = 1;
- guint8 info_element = 0;
- guint8 hf_v52_v5_link_id_cc_tmp = 0;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
+ guint8 info_element_length = 1;
+ guint8 info_element = 0;
+ guint8 hf_v52_v5_link_id_cc_tmp = 0;
guint8 hf_v52_v5_time_slot_cc_tmp = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1472,14 +1471,14 @@ dissect_physical_c_channel_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre
static void
dissect_pp_rejection_cause(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1505,14 +1504,14 @@ dissect_pp_rejection_cause(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
static void
dissect_protocol_error(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1541,14 +1540,14 @@ dissect_protocol_error(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int
static void
dissect_performance_grading(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1573,14 +1572,14 @@ dissect_performance_grading(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
static void
dissect_cp_rejection_cause(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1604,17 +1603,17 @@ dissect_cp_rejection_cause(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
static void
dissect_user_port_identification(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
int hf_v52_pstn_user_port_tmp = 0;
int hf_v52_isdn_user_port_tmp = 0;
- guint8 info_element_length = 1;
- guint8 buffer = 0;
- guint8 info_element = 0;
+ guint8 info_element_length = 1;
+ guint8 buffer = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1655,15 +1654,15 @@ dissect_user_port_identification(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
static void
dissect_isdn_port_time_slot_identification(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
- guint8 info_element_length = 1;
- guint8 info_element = 0;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
+ guint8 info_element_length = 1;
+ guint8 info_element = 0;
guint8 isdn_user_port_ts_num_tmp = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1690,16 +1689,16 @@ dissect_isdn_port_time_slot_identification(tvbuff_t *tvb, packet_info *pinfo, pr
static void
dissect_v5_time_slot_identification(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
- guint8 v5_link_id_tmp = 0;
- guint8 v5_time_slot_tmp = 0;
+ guint8 info_element = 0;
+ guint8 v5_link_id_tmp = 0;
+ guint8 v5_time_slot_tmp = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1737,14 +1736,14 @@ dissect_v5_time_slot_identification(tvbuff_t *tvb, packet_info *pinfo, proto_tre
static void
dissect_multi_slot_map(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1786,14 +1785,14 @@ dissect_multi_slot_map(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int
static void
dissect_bcc_rejct_cause(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1819,14 +1818,14 @@ dissect_bcc_rejct_cause(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int
static void
dissect_bcc_protocol_error_cause(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1857,14 +1856,14 @@ dissect_bcc_protocol_error_cause(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
static void
dissect_connection_incomplete(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1897,14 +1896,14 @@ dissect_connection_incomplete(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre
static void
dissect_link_control_function(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_tree *info_tree = NULL;
- proto_item *ti_info;
+ proto_tree *info_tree = NULL;
+ proto_item *ti_info;
guint8 info_element_length = 1;
- guint8 info_element = 0;
+ guint8 info_element = 0;
- guint16 data_length;
+ guint16 data_length;
tvbuff_t *info_tvb;
- int info_offset = 0;
+ int info_offset = 0;
info_element = tvb_get_guint8(tvb, offset);
@@ -1935,10 +1934,10 @@ dissect_link_control_function(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tre
static void
dissect_v52_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
- int offset = 4;
- guint8 info_element, info_element_length;
- /*int old_offset;*/
- int singleoctet;
+ int offset = 4;
+ guint8 info_element, info_element_length;
+ /*int old_offset;*/
+ int singleoctet;
while(tvb_length_remaining(tvb,offset) > 0){
singleoctet = 0;
@@ -2124,12 +2123,13 @@ dissect_v52_info(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
static void
dissect_v52_message(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
- int offset = 0;
- proto_tree *v52_tree = NULL;
- proto_item *ti;
- gboolean addr = FALSE;
+ int offset = 0;
+ proto_tree *v52_tree = NULL;
+ proto_item *ti;
+ gboolean addr = FALSE;
guint8 bcc_all_address_tmp_up = -1;
- guint16 pstn_all_address_tmp, isdn_all_address_tmp, bcc_all_address_tmp, prot_all_address_tmp, link_all_address_tmp;
+ guint16 pstn_all_address_tmp, isdn_all_address_tmp, bcc_all_address_tmp;
+ guint16 prot_all_address_tmp, link_all_address_tmp;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "V52");
@@ -2252,14 +2252,18 @@ proto_register_v52(void)
{ &hf_v52_discriminator,
{ "Protocol discriminator", "v52.disc", FT_UINT8, BASE_HEX, NULL, 0x0,
NULL, HFILL }},
+/**
{ &hf_v52_address,
{ "Address", "v52.address",
FT_UINT8, BASE_HEX, NULL, 0xff,
NULL, HFILL } },
+**/
+/**
{ &hf_v52_low_address,
{ "Address Low", "v52.low_address",
FT_UINT8, BASE_HEX, NULL, 0xff,
NULL, HFILL } },
+**/
/* ISDN */
{ &hf_v52_isdn_address,
{ "Address isdn", "v52.isdn_address",
@@ -2306,14 +2310,18 @@ proto_register_v52(void)
FT_UINT8, BASE_HEX, NULL, 0xff,
NULL, HFILL } },
/* CONTROL */
+/**
{ &hf_v52_ctrl_address,
{ "Address ctrl", "v52.ctrl_address",
FT_UINT8, BASE_HEX, NULL, 0xff,
NULL, HFILL } },
+**/
+/**
{ &hf_v52_ctrl_low_address,
{ "Address ctrl Low", "v52.ctrl_low_address",
FT_UINT8, BASE_HEX, NULL, 0xff,
NULL, HFILL } },
+**/
/* OTHER */
{&hf_v52_msg_type,
{ "Message type", "v52.msg_type",
diff --git a/epan/dissectors/packet-v5dl.c b/epan/dissectors/packet-v5dl.c
index dee6a90445..f16fb4cad1 100644
--- a/epan/dissectors/packet-v5dl.c
+++ b/epan/dissectors/packet-v5dl.c
@@ -43,7 +43,7 @@
static int proto_v5dl = -1;
static int hf_v5dl_direction = -1;
-static int hf_v5dl_address = -1;
+/* static int hf_v5dl_address = -1; */
static int hf_v5dl_ef = -1;
static int hf_v5dl_eah = -1;
static int hf_v5dl_cr = -1;
@@ -324,9 +324,11 @@ proto_register_v5dl(void)
{ "Direction", "v5dl.direction", FT_UINT8, BASE_DEC, VALS(v5dl_direction_vals), 0x0,
NULL, HFILL }},
+/**
{ &hf_v5dl_address,
{ "Address Field", "v5dl.address", FT_UINT16, BASE_HEX, NULL, 0x0,
"Address", HFILL }},
+**/
{ &hf_v5dl_ef,
{ "EF", "v5dl.ef", FT_UINT16, BASE_DEC, VALS(v5dl_addr_vals), 0x0,
diff --git a/epan/dissectors/packet-v5ua.c b/epan/dissectors/packet-v5ua.c
index 5acf7bc27d..c74c8b8b19 100644
--- a/epan/dissectors/packet-v5ua.c
+++ b/epan/dissectors/packet-v5ua.c
@@ -67,7 +67,7 @@ static int hf_version = -1;
static int hf_reserved = -1;
static int hf_msg_class = -1;
static int hf_msg_type = -1;
-static int hf_msg_type_id = -1;
+/* static int hf_msg_type_id = -1; */
static int hf_msg_length = -1;
/* V5UA message header */
static int hf_link_id = -1;
@@ -83,7 +83,7 @@ static int hf_dlci_sapi = -1;
static int hf_dlci_one_bit = -1;
static int hf_dlci_tei = -1;
static int hf_efa = -1;
-static int hf_spare_efa = -1;
+/* static int hf_spare_efa = -1; */
/* variable length parameter (msg) */
static int hf_parameter_tag = -1;
static int hf_parameter_tag_draft = -1;
@@ -1516,10 +1516,12 @@ proto_register_v5ua(void)
{ "Message Type", "v5ua.msg_type",
FT_UINT8, BASE_DEC, NULL, 0x0,
NULL, HFILL } },
+/**
{ &hf_msg_type_id,
{ "Message Type ID", "v5ua.msg_type_id",
FT_UINT8, BASE_DEC, VALS(msg_class_type_values), 0x0,
NULL, HFILL } },
+**/
{ &hf_msg_length,
{ "Message length", "v5ua.msg_length",
FT_UINT32, BASE_DEC, NULL, 0x0,
@@ -1577,10 +1579,12 @@ proto_register_v5ua(void)
{ "Envelope Function Address","v5ua.efa",
FT_UINT16, BASE_DEC, VALS(efa_values), 0x0,
NULL, HFILL } },
+/**
{ &hf_spare_efa,
{ "Envelope Function Address (spare)","v5ua.efa",
FT_UINT16, BASE_DEC, NULL, ~7,
NULL, HFILL } },
+**/
{ &hf_asp_reason,
{ "Reason", "v5ua.asp_reason",
FT_UINT32, BASE_HEX, VALS(asp_reason_values), 0x0,
diff --git a/epan/dissectors/packet-vcdu.c b/epan/dissectors/packet-vcdu.c
index 525eb57f23..f75e182d09 100644
--- a/epan/dissectors/packet-vcdu.c
+++ b/epan/dissectors/packet-vcdu.c
@@ -13,12 +13,12 @@
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
- *
+ *
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
@@ -36,7 +36,7 @@
static int proto_vcdu = -1;
static int hf_smex_gsc = -1;
-static int hf_smex_unused = -1;
+/* static int hf_smex_unused = -1; */
static int hf_smex_version = -1;
static int hf_smex_framelen = -1;
static int hf_smex_rs_error = -1;
@@ -53,7 +53,7 @@ static int hf_smex_pb5 = -1;
static int hf_smex_jday = -1;
static int hf_smex_seconds = -1;
static int hf_smex_msec = -1;
-static int hf_smex_spare = -1;
+/* static int hf_smex_spare = -1; */
static int hf_vcdu_version = -1;
static int hf_vcdu_sp_id = -1;
@@ -73,33 +73,33 @@ static int hf_vcdu_lbp = -1;
static dissector_handle_t ccsds_handle;
/* Initialize the subtree pointers */
-static gint ett_vcdu = -1;
-static gint ett_smex = -1;
+static gint ett_vcdu = -1;
+static gint ett_smex = -1;
static gint ett_vcduh = -1;
/*
* Bits in the first 16-bit header word
*/
-#define SMEX_VERSION 0xc000
-#define SMEX_FRAMELEN 0x3fff
+#define SMEX_VERSION 0xc000
+#define SMEX_FRAMELEN 0x3fff
/* some basic sizing parameters */
-#define IP_HEADER_LENGTH 48
-#define SMEX_HEADER_LENGTH 20
-#define VCDU_HEADER_LENGTH 6
-#define CCSDS_PRIMARY_HEADER_LENGTH 6
+#define IP_HEADER_LENGTH 48
+#define SMEX_HEADER_LENGTH 20
+#define VCDU_HEADER_LENGTH 6
+#define CCSDS_PRIMARY_HEADER_LENGTH 6
#define CCSDS_SECONDARY_HEADER_LENGTH 10
-#define PB5_JULIAN_DAY_MASK 0x7ffe
-#define PB5_SECONDS_MASK 0x01ffff
+#define PB5_JULIAN_DAY_MASK 0x7ffe
+#define PB5_SECONDS_MASK 0x01ffff
#define PB5_MILLISECONDS_MASK 0xffc0
-#define LBP_ALL_DATA 0x3fff
-#define LBP_ALL_DATA_ANOMALY 0x7ff
-#define LBP_ALL_FILL 0x3ffe
+#define LBP_ALL_DATA 0x3fff
+#define LBP_ALL_DATA_ANOMALY 0x7ff
+#define LBP_ALL_FILL 0x3ffe
-#define FHP_ALL_FILL 0x7fe
-#define FHP_CONTINUATION 0x7ff
+#define FHP_ALL_FILL 0x7fe
+#define FHP_CONTINUATION 0x7ff
#define LBP_MASK 0x3fff
#define FHP_MASK 0x7ff
@@ -111,34 +111,34 @@ static gint ett_vcduh = -1;
static const value_string smex_data_inversion_type[] = {
- { 0, "Data True (not inverted)" },
- { 1, "Data Inverted (not corrected)" },
- { 2, "Data Inversion State UNDEFINED" },
- { 3, "Data Inverted (and corrected)" },
- { 0, NULL }
+ { 0, "Data True (not inverted)" },
+ { 1, "Data Inverted (not corrected)" },
+ { 2, "Data Inversion State UNDEFINED" },
+ { 3, "Data Inverted (and corrected)" },
+ { 0, NULL }
};
static const value_string smex_frame_sync_mode[] = {
- { 0, "Search" },
- { 1, "Check" },
- { 2, "Lock" },
- { 3, "Flywheel" },
- { 0, NULL }
+ { 0, "Search" },
+ { 1, "Check" },
+ { 2, "Lock" },
+ { 3, "Flywheel" },
+ { 0, NULL }
};
static const value_string smex_data_direction[] = {
- { 0, "Forward" },
- { 1, "Reverse" },
- { 0, NULL }
+ { 0, "Forward" },
+ { 1, "Reverse" },
+ { 0, NULL }
};
static const value_string smex_data_class[] = {
- { 0, "Data Class UNDEFINED" },
- { 1, "CCSDS Frame" },
- { 2, "CCSDS Packet" },
- { 3, "TDM Frame" },
- { 4, "Stopped TDM Frame" },
- { 0, NULL }
+ { 0, "Data Class UNDEFINED" },
+ { 1, "CCSDS Frame" },
+ { 2, "CCSDS Packet" },
+ { 3, "TDM Frame" },
+ { 4, "Stopped TDM Frame" },
+ { 0, NULL }
};
/* default bitstream channel assignments:
@@ -149,47 +149,47 @@ static const value_string smex_data_class[] = {
*/
static int bitstream_channels[] =
{
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* channels 0-9 */
- 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, /* channels 10-19 */
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* channels 20-29 */
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* channels 30-39 */
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* channels 40-49 */
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* channels 50-59 */
- 0, 0, 0, 1 /* channels 60-63 */
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* channels 0-9 */
+ 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, /* channels 10-19 */
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* channels 20-29 */
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* channels 30-39 */
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* channels 40-49 */
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* channels 50-59 */
+ 0, 0, 0, 1 /* channels 60-63 */
};
typedef struct {
- guint channel;
+ guint channel;
} uat_channel_t;
-static uat_channel_t *uat_bitchannels = NULL;
-static uat_t * vcdu_uat = NULL;
-static guint num_channels_uat = 0;
+static uat_channel_t *uat_bitchannels = NULL;
+static uat_t *vcdu_uat = NULL;
+static guint num_channels_uat = 0;
UAT_DEC_CB_DEF(uat_bitchannels, channel, uat_channel_t)
static void vcdu_uat_data_update_cb(void* p, const char** err) {
- uat_channel_t *ud = p;
+ uat_channel_t *ud = p;
- if (ud->channel >= 64) {
- *err = ep_strdup_printf("Channel must be between 0-63.");
- return;
- }
+ if (ud->channel >= 64) {
+ *err = ep_strdup_printf("Channel must be between 0-63.");
+ return;
+ }
}
static void vcdu_prefs_apply_cb(void)
{
- guint i;
+ guint i;
- if (num_channels_uat > 0)
- {
- memset ( bitstream_channels, 0, sizeof(bitstream_channels) );
+ if (num_channels_uat > 0)
+ {
+ memset ( bitstream_channels, 0, sizeof(bitstream_channels) );
- for (i = 0; i < num_channels_uat; i++)
- {
- bitstream_channels[uat_bitchannels[i].channel] = 1;
- }
- }
+ for (i = 0; i < num_channels_uat; i++)
+ {
+ bitstream_channels[uat_bitchannels[i].channel] = 1;
+ }
+ }
}
/* convert smex PB5 header time to a human readable string - NOT THREAD SAFE
@@ -198,46 +198,46 @@ static void vcdu_prefs_apply_cb(void)
*/
static const char* smex_time_to_string ( int pb5_days_since_midnight_9_10_oct_1995, int pb5_seconds, int pb5_milliseconds )
{
- static int utcdiff = 0;
- nstime_t t;
+ static int utcdiff = 0;
+ nstime_t t;
- static int Days[2][13] =
+ static int Days[2][13] =
{
- { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 },
- { 0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
+ { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 },
+ { 0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
};
- int yr;
- int ix, days, month;
+ int yr;
+ int ix, days, month;
- /* compute the static constant difference in seconds
- * between midnight 9-10 October 1995 (PB5 time) and
- * seconds since 1/1/1970 (UTC time) just this once
- */
- if ( 0 == utcdiff )
+ /* compute the static constant difference in seconds
+ * between midnight 9-10 October 1995 (PB5 time) and
+ * seconds since 1/1/1970 (UTC time) just this once
+ */
+ if ( 0 == utcdiff )
+ {
+ for ( yr=1970; yr < 1995; ++yr )
{
- for ( yr=1970; yr < 1995; ++yr )
- {
utcdiff += ( Leap(yr) ? 366 : 365 ) * 24 * 60 * 60;
- }
+ }
- days = 0;
- ix = ( Leap(1995) ? 1 : 0 );
+ days = 0;
+ ix = ( Leap(1995) ? 1 : 0 );
- for ( month=1; month < 10; ++month )
- {
+ for ( month=1; month < 10; ++month )
+ {
days += Days[ix][month];
- }
+ }
- days += 9; /* this gets us up to midnight october 9-10 */
+ days += 9; /* this gets us up to midnight october 9-10 */
- utcdiff += days * 24 * 60 * 60; /* add days in 1995 prior to October 10 */
- }
+ utcdiff += days * 24 * 60 * 60; /* add days in 1995 prior to October 10 */
+ }
- t.secs = ( pb5_days_since_midnight_9_10_oct_1995 * 86400 ) + pb5_seconds + utcdiff;
- t.nsecs = pb5_milliseconds*1000000; /* msecs to nsecs */
+ t.secs = ( pb5_days_since_midnight_9_10_oct_1995 * 86400 ) + pb5_seconds + utcdiff;
+ t.nsecs = pb5_milliseconds*1000000; /* msecs to nsecs */
- return abs_time_to_str(&t, ABSOLUTE_TIME_DOY_UTC, TRUE);
+ return abs_time_to_str(&t, ABSOLUTE_TIME_DOY_UTC, TRUE);
}
@@ -245,194 +245,197 @@ static const char* smex_time_to_string ( int pb5_days_since_midnight_9_10_oct_19
static void
dissect_vcdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
- int packet_boundary = 0;
- int offset = 0;
- int new_offset=0;
- int ccsds_tree_added = 0;
-
- int ccsds_len = 0;
-
- proto_item *smex_header = NULL;
- proto_tree *smex_tree = NULL;
-
- proto_item *vcdu_header = NULL;
- proto_tree *vcdu_tree = NULL;
-
- guint16 first_word = 0;
- guint32 long_word = 0;
- guint16 new_ptr = 0;
-
- tvbuff_t *new_tvb = NULL;
-
- int vcid = 0, pb5_days = 0, pb5_seconds = 0, pb5_milliseconds = 0;
- const char* time_string = NULL;
-
- col_set_str(pinfo->cinfo, COL_PROTOCOL, "VCDU");
- col_set_str(pinfo->cinfo, COL_INFO, "Virtual Channel Data Unit");
-
- {
- /* build the smex header tree */
- smex_header=proto_tree_add_text(tree, tvb, offset, SMEX_HEADER_LENGTH, "SMEX Header");
- smex_tree=proto_item_add_subtree(smex_header, ett_smex);
-
- proto_tree_add_item(smex_tree, hf_smex_gsc, tvb, offset, 8, ENC_BIG_ENDIAN);
- offset += 8;
- /* proto_tree_add_item(smex_tree, hf_smex_unused, tvb, offset, 2, ENC_BIG_ENDIAN); */
- offset += 2;
-
- first_word=tvb_get_ntohs(tvb, offset);
- proto_tree_add_uint(smex_tree, hf_smex_version, tvb, offset, 2, first_word);
- proto_tree_add_uint(smex_tree, hf_smex_framelen, tvb, offset, 2, first_word);
- offset += 2;
-
- proto_tree_add_item(smex_tree, hf_smex_rs_enable, tvb, offset, 1, ENC_BIG_ENDIAN);
- proto_tree_add_item(smex_tree, hf_smex_rs_error, tvb, offset, 1, ENC_BIG_ENDIAN);
- proto_tree_add_item(smex_tree, hf_smex_crc_enable, tvb, offset, 1, ENC_BIG_ENDIAN);
- proto_tree_add_item(smex_tree, hf_smex_crc_error, tvb, offset, 1, ENC_BIG_ENDIAN);
- proto_tree_add_item(smex_tree, hf_smex_mcs_enable, tvb, offset, 1, ENC_BIG_ENDIAN);
- proto_tree_add_item(smex_tree, hf_smex_mcs_num_error, tvb, offset, 1, ENC_BIG_ENDIAN);
- proto_tree_add_item(smex_tree, hf_smex_data_inv, tvb, offset, 1, ENC_BIG_ENDIAN);
- ++offset;
-
- proto_tree_add_item(smex_tree, hf_smex_frame_sync, tvb, offset, 1, ENC_BIG_ENDIAN);
- proto_tree_add_item(smex_tree, hf_smex_data_dir, tvb, offset, 1, ENC_BIG_ENDIAN);
- proto_tree_add_item(smex_tree, hf_smex_data_class, tvb, offset, 1, ENC_BIG_ENDIAN);
- ++offset;
-
- /* extract smex ground receipt time tag */
- long_word = tvb_get_ntohl ( tvb, offset );
- pb5_days = ( long_word >> 17 ) & PB5_JULIAN_DAY_MASK;
- pb5_seconds = ( long_word & PB5_SECONDS_MASK );
-
- first_word = tvb_get_ntohs ( tvb, offset+4 );
- pb5_milliseconds = ( first_word & PB5_MILLISECONDS_MASK ) >> 6;
-
- proto_tree_add_item(smex_tree, hf_smex_pb5, tvb, offset, 2, ENC_BIG_ENDIAN);
- proto_tree_add_item(smex_tree, hf_smex_jday, tvb, offset, 2, ENC_BIG_ENDIAN);
- ++offset;
- proto_tree_add_item(smex_tree, hf_smex_seconds, tvb, offset, 3, ENC_BIG_ENDIAN);
- offset += 3;
-
- proto_tree_add_item(smex_tree, hf_smex_msec, tvb, offset, 2, ENC_BIG_ENDIAN);
- /* proto_tree_add_item(smex_tree, hf_smex_spare, tvb, offset, 2, ENC_BIG_ENDIAN); */
- offset += 2;
-
- /* format ground receipt time into human readable time format for display */
- time_string = smex_time_to_string ( pb5_days, pb5_seconds, pb5_milliseconds );
- proto_tree_add_text (smex_tree, tvb, offset-6, 6, "%s = Ground Receipt Time", time_string );
-
- proto_item_set_end(smex_header, tvb, offset);
-
-
- /* build the vcdu header tree */
- vcdu_header=proto_tree_add_text(tree, tvb, offset, VCDU_HEADER_LENGTH, "VCDU Header");
- vcdu_tree = proto_item_add_subtree(vcdu_header, ett_vcdu);
-
- /* extract the virtual channel for use later on */
- first_word=tvb_get_ntohs(tvb, offset);
- vcid = first_word & 0x3f;
-
- proto_tree_add_item(vcdu_tree, hf_vcdu_version, tvb, offset, 2, ENC_BIG_ENDIAN);
- proto_tree_add_item(vcdu_tree, hf_vcdu_sp_id, tvb, offset, 2, ENC_BIG_ENDIAN);
- proto_tree_add_item(vcdu_tree, hf_vcdu_vc_id, tvb, offset, 2, ENC_BIG_ENDIAN);
- offset += 2;
- proto_tree_add_item(vcdu_tree, hf_vcdu_seq, tvb, offset, 3, ENC_BIG_ENDIAN);
- offset += 3;
- proto_tree_add_item(vcdu_tree, hf_vcdu_replay, tvb, offset, 1, ENC_BIG_ENDIAN);
- ++offset;
-
- /* extract mpdu/bpdu header word */
- first_word=tvb_get_ntohs(tvb, offset);
-
- /* do bitstream channel processing */
- if ( bitstream_channels[vcid] )
- {
- /* extract last bit pointer for bitstream channels */
- new_ptr=first_word & LBP_MASK;
+ int packet_boundary = 0;
+ int offset = 0;
+ int new_offset = 0;
+ int ccsds_tree_added = 0;
+ int ccsds_len = 0;
+
+ proto_item *smex_header = NULL;
+ proto_tree *smex_tree = NULL;
+
+ proto_item *vcdu_header = NULL;
+ proto_tree *vcdu_tree = NULL;
+
+ guint16 first_word = 0;
+ guint32 long_word = 0;
+ guint16 new_ptr = 0;
+
+ tvbuff_t *new_tvb = NULL;
+
+ int vcid = 0, pb5_days = 0, pb5_seconds = 0, pb5_milliseconds = 0;
+ const char* time_string = NULL;
+
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "VCDU");
+ col_set_str(pinfo->cinfo, COL_INFO, "Virtual Channel Data Unit");
+
+ {
+ /* build the smex header tree */
+ smex_header=proto_tree_add_text(tree, tvb, offset, SMEX_HEADER_LENGTH, "SMEX Header");
+ smex_tree=proto_item_add_subtree(smex_header, ett_smex);
+
+ proto_tree_add_item(smex_tree, hf_smex_gsc, tvb, offset, 8, ENC_BIG_ENDIAN);
+ offset += 8;
+ /* proto_tree_add_item(smex_tree, hf_smex_unused, tvb, offset, 2, ENC_BIG_ENDIAN); */
+ offset += 2;
+
+ first_word=tvb_get_ntohs(tvb, offset);
+ proto_tree_add_uint(smex_tree, hf_smex_version, tvb, offset, 2, first_word);
+ proto_tree_add_uint(smex_tree, hf_smex_framelen, tvb, offset, 2, first_word);
+ offset += 2;
+
+ proto_tree_add_item(smex_tree, hf_smex_rs_enable, tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(smex_tree, hf_smex_rs_error, tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(smex_tree, hf_smex_crc_enable, tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(smex_tree, hf_smex_crc_error, tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(smex_tree, hf_smex_mcs_enable, tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(smex_tree, hf_smex_mcs_num_error, tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(smex_tree, hf_smex_data_inv, tvb, offset, 1, ENC_BIG_ENDIAN);
+ ++offset;
+
+ proto_tree_add_item(smex_tree, hf_smex_frame_sync, tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(smex_tree, hf_smex_data_dir, tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(smex_tree, hf_smex_data_class, tvb, offset, 1, ENC_BIG_ENDIAN);
+ ++offset;
+
+ /* extract smex ground receipt time tag */
+ long_word = tvb_get_ntohl ( tvb, offset );
+ pb5_days = ( long_word >> 17 ) & PB5_JULIAN_DAY_MASK;
+ pb5_seconds = ( long_word & PB5_SECONDS_MASK );
+
+ first_word = tvb_get_ntohs ( tvb, offset+4 );
+ pb5_milliseconds = ( first_word & PB5_MILLISECONDS_MASK ) >> 6;
+
+ proto_tree_add_item(smex_tree, hf_smex_pb5, tvb, offset, 2, ENC_BIG_ENDIAN);
+ proto_tree_add_item(smex_tree, hf_smex_jday, tvb, offset, 2, ENC_BIG_ENDIAN);
+ ++offset;
+ proto_tree_add_item(smex_tree, hf_smex_seconds, tvb, offset, 3, ENC_BIG_ENDIAN);
+ offset += 3;
+
+ proto_tree_add_item(smex_tree, hf_smex_msec, tvb, offset, 2, ENC_BIG_ENDIAN);
+ /* proto_tree_add_item(smex_tree, hf_smex_spare, tvb, offset, 2, ENC_BIG_ENDIAN); */
+ offset += 2;
+
+ /* format ground receipt time into human readable time format for display */
+ time_string = smex_time_to_string ( pb5_days, pb5_seconds, pb5_milliseconds );
+ proto_tree_add_text (smex_tree, tvb, offset-6, 6, "%s = Ground Receipt Time", time_string );
+
+ proto_item_set_end(smex_header, tvb, offset);
+
+
+ /* build the vcdu header tree */
+ vcdu_header=proto_tree_add_text(tree, tvb, offset, VCDU_HEADER_LENGTH, "VCDU Header");
+ vcdu_tree = proto_item_add_subtree(vcdu_header, ett_vcdu);
+
+ /* extract the virtual channel for use later on */
+ first_word=tvb_get_ntohs(tvb, offset);
+ vcid = first_word & 0x3f;
+
+ proto_tree_add_item(vcdu_tree, hf_vcdu_version, tvb, offset, 2, ENC_BIG_ENDIAN);
+ proto_tree_add_item(vcdu_tree, hf_vcdu_sp_id, tvb, offset, 2, ENC_BIG_ENDIAN);
+ proto_tree_add_item(vcdu_tree, hf_vcdu_vc_id, tvb, offset, 2, ENC_BIG_ENDIAN);
+ offset += 2;
+ proto_tree_add_item(vcdu_tree, hf_vcdu_seq, tvb, offset, 3, ENC_BIG_ENDIAN);
+ offset += 3;
+ proto_tree_add_item(vcdu_tree, hf_vcdu_replay, tvb, offset, 1, ENC_BIG_ENDIAN);
+ ++offset;
+
+ /* extract mpdu/bpdu header word */
+ first_word=tvb_get_ntohs(tvb, offset);
+
+ /* do bitstream channel processing */
+ if ( bitstream_channels[vcid] )
+ {
+ /* extract last bit pointer for bitstream channels */
+ new_ptr=first_word & LBP_MASK;
- /* add last bit pointer to display tree */
- proto_tree_add_item(vcdu_tree, hf_vcdu_lbp, tvb, offset, 2, ENC_BIG_ENDIAN);
+ /* add last bit pointer to display tree */
+ proto_tree_add_item(vcdu_tree, hf_vcdu_lbp, tvb, offset, 2, ENC_BIG_ENDIAN);
- switch ( new_ptr )
- {
- case LBP_ALL_DATA:
- proto_tree_add_text(vcdu_tree, tvb, 0, -1, "Bitream ALL Data");
- break;
+ switch ( new_ptr )
+ {
+ case LBP_ALL_DATA:
+ proto_tree_add_text(vcdu_tree, tvb, 0, -1, "Bitream ALL Data");
+ break;
- case LBP_ALL_DATA_ANOMALY:
- proto_tree_add_text(vcdu_tree, tvb, 0, -1, "Bitream ALL Data (Anomaly)");
- break;
+ case LBP_ALL_DATA_ANOMALY:
+ proto_tree_add_text(vcdu_tree, tvb, 0, -1, "Bitream ALL Data (Anomaly)");
+ break;
- case LBP_ALL_FILL:
- proto_tree_add_text(vcdu_tree, tvb, 0, -1, "Bitream ALL Fill");
- break;
+ case LBP_ALL_FILL:
+ proto_tree_add_text(vcdu_tree, tvb, 0, -1, "Bitream ALL Fill");
+ break;
- default:
- break;
- }
- } /* end of bitstream channel processing */
+ default:
+ break;
+ }
+ } /* end of bitstream channel processing */
- /* do ccsds channel processing */
- else
+ /* do ccsds channel processing */
+ else
+ {
+ /* extract first header pointer for ccsds channels */
+ new_ptr=first_word & FHP_MASK;
+
+ /* add first header pointer to display tree */
+ proto_tree_add_item(vcdu_tree, hf_vcdu_fhp, tvb, offset, 2, ENC_BIG_ENDIAN);
+
+ /* process special cases of first header pointer */
+ if ( FHP_ALL_FILL == new_ptr )
+ {
+ proto_tree_add_text(vcdu_tree, tvb, 0, -1, "Ccsds ALL Fill");
+ }
+
+ else if ( FHP_CONTINUATION == new_ptr )
+ {
+ proto_tree_add_text(vcdu_tree, tvb, 0, -1, "Ccsds Continuation Packet");
+ }
+
+ /* process as many ccsds packet headers as we can using the ccsds packet dissector */
+ else
+ {
+ /* compute offset and packet boundary lengths for ccsds dissector loop */
+ new_offset=offset+2+new_ptr;
+
+ packet_boundary =
+ pinfo->iplen - IP_HEADER_LENGTH - VCDU_HEADER_LENGTH
+ - CCSDS_PRIMARY_HEADER_LENGTH - CCSDS_SECONDARY_HEADER_LENGTH;
+
+ while ( (new_offset-offset+2) < packet_boundary && (new_offset-offset+2) >= 4 )
{
- /* extract first header pointer for ccsds channels */
- new_ptr=first_word & FHP_MASK;
-
- /* add first header pointer to display tree */
- proto_tree_add_item(vcdu_tree, hf_vcdu_fhp, tvb, offset, 2, ENC_BIG_ENDIAN);
-
- /* process special cases of first header pointer */
- if ( FHP_ALL_FILL == new_ptr )
- {
- proto_tree_add_text(vcdu_tree, tvb, 0, -1, "Ccsds ALL Fill");
- }
-
- else if ( FHP_CONTINUATION == new_ptr )
- {
- proto_tree_add_text(vcdu_tree, tvb, 0, -1, "Ccsds Continuation Packet");
- }
-
- /* process as many ccsds packet headers as we can using the ccsds packet dissector */
- else
- {
- /* compute offset and packet boundary lengths for ccsds dissector loop */
- new_offset=offset+2+new_ptr;
-
- packet_boundary = pinfo->iplen - IP_HEADER_LENGTH - VCDU_HEADER_LENGTH - CCSDS_PRIMARY_HEADER_LENGTH - CCSDS_SECONDARY_HEADER_LENGTH;
-
- while ( (new_offset-offset+2) < packet_boundary && (new_offset-offset+2) >= 4 )
- {
- ccsds_tree_added = 1;
- ccsds_len=tvb_get_ntohs(tvb, new_offset+4);
-
- new_tvb = tvb_new_subset_remaining(tvb, new_offset);
- call_dissector(ccsds_handle, new_tvb, pinfo, vcdu_tree);
-
- new_offset=new_offset+ccsds_len+7;
- }
-
- if ( ! ccsds_tree_added )
- {
- proto_tree_add_text(vcdu_tree, tvb, 0, -1, "FHP too close to end of VCDU. Incomplete Hdr Info Available - Unable to format CCSDS Hdr(s)." );
- }
- }
-
- } /* end of ccsds channel processing */
-
- /* don't include the mpdu/bpdu header in the vcdu header highlighting.
- * by skipping the offset bump the vcdu header highlighting will show
- * just 6 bytes as it really should, and the fhp/lbp will be included
- * in the data zone, which is technically more correct.
- */
- /* offset += 2; */
- proto_item_set_end(vcdu_tree, tvb, offset);
+ ccsds_tree_added = 1;
+ ccsds_len=tvb_get_ntohs(tvb, new_offset+4);
+
+ new_tvb = tvb_new_subset_remaining(tvb, new_offset);
+ call_dissector(ccsds_handle, new_tvb, pinfo, vcdu_tree);
+
+ new_offset=new_offset+ccsds_len+7;
+ }
if ( ! ccsds_tree_added )
{
- /* add "Data" section if ccsds parsing did not do so already */
- proto_tree_add_text(vcdu_tree, tvb, offset, -1, "Data");
+ proto_tree_add_text(vcdu_tree, tvb, 0, -1,
+ "FHP too close to end of VCDU. Incomplete Hdr Info Available"
+ " - Unable to format CCSDS Hdr(s)." );
}
- }
+ }
+
+ } /* end of ccsds channel processing */
+
+ /* don't include the mpdu/bpdu header in the vcdu header highlighting.
+ * by skipping the offset bump the vcdu header highlighting will show
+ * just 6 bytes as it really should, and the fhp/lbp will be included
+ * in the data zone, which is technically more correct.
+ */
+ /* offset += 2; */
+ proto_item_set_end(vcdu_tree, tvb, offset);
+
+ if ( ! ccsds_tree_added )
+ {
+ /* add "Data" section if ccsds parsing did not do so already */
+ proto_tree_add_text(vcdu_tree, tvb, offset, -1, "Data");
+ }
+ }
}
@@ -442,191 +445,193 @@ dissect_vcdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
*/
void
proto_register_vcdu(void)
-{
- module_t *vcdu_module;
-
- /* Setup list of header fields See Section 1.6.1 for details*/
- static hf_register_info hf[] = {
- { &hf_smex_gsc,
- { "Ground Sequence Counter", "vcdu.smex.gsc",
- FT_UINT64, BASE_DEC, NULL, 0x0,
- "SMEX Ground Sequence Counter", HFILL }
- },
- { &hf_smex_unused,
- { "Unused", "vcdu.smex.unused",
- FT_UINT16, BASE_DEC, NULL, 0x0,
- "SMEX Unused", HFILL }
- },
- { &hf_smex_version,
- { "Version", "vcdu.smex.version",
- FT_UINT16, BASE_DEC, NULL, SMEX_VERSION,
- "SMEX Version", HFILL }
- },
- { &hf_smex_framelen,
- { "Frame Length", "vcdu.smex.frame_len",
- FT_UINT16, BASE_DEC, NULL, SMEX_FRAMELEN,
- "SMEX Frame Length", HFILL }
- },
- { &hf_smex_rs_enable,
- { "RS Enable", "vcdu.smex.rs_enable",
- FT_BOOLEAN, 8, NULL, 0x80,
- "SMEX RS Enable", HFILL }
- },
- { &hf_smex_rs_error,
- { "RS Error", "vcdu.smex.rs_error",
- FT_BOOLEAN, 8, NULL, 0x40,
- "SMEX RS Error", HFILL }
- },
- { &hf_smex_crc_enable,
- { "CRC Enable", "vcdu.smex.crc_enable",
- FT_BOOLEAN, 8, NULL, 0x20,
- "SMEX CRC Enable", HFILL }
- },
- { &hf_smex_crc_error,
- { "CRC Error", "vcdu.smex.crc_error",
- FT_BOOLEAN, 8, NULL, 0x10,
- "SMEX CRC Error", HFILL }
- },
- { &hf_smex_mcs_enable,
- { "MCS Enable", "vcdu.smex.mcs_enable",
- FT_BOOLEAN, 8, NULL, 0x08,
- "SMEX MCS Enable", HFILL }
- },
- { &hf_smex_mcs_num_error,
- { "MCS Number Error", "vcdu.smex.mcs_numerr",
- FT_BOOLEAN, 8, NULL, 0x04,
- "SMEX MCS Number Error", HFILL }
- },
- { &hf_smex_data_inv,
- { "Data Inversion", "vcdu.smex.data_inv",
- FT_UINT16, BASE_DEC, VALS(smex_data_inversion_type), 0x03,
- "SMEX Data Inversion", HFILL }
- },
- { &hf_smex_frame_sync,
- { "Frame Sync", "vcdu.smex.frame_sync",
- FT_UINT16, BASE_DEC, VALS(smex_frame_sync_mode), 0xc0,
- "SMEX Frame Sync Flag", HFILL }
- },
- { &hf_smex_data_dir,
- { "Data Direction", "vcdu.smex.data_dir",
- FT_UINT16, BASE_DEC, VALS(smex_data_direction), 0x20,
- "SMEX Data Direction flag", HFILL }
- },
- { &hf_smex_data_class,
- { "Data Class", "vcdu.smex.data_class",
- FT_UINT16, BASE_DEC, VALS(smex_data_class), 0x1f,
- "SMEX Data Class", HFILL }
- },
- { &hf_smex_pb5,
- { "PB5 Flag", "vcdu.smex.pb5",
- FT_UINT16, BASE_DEC, NULL, 0x8000,
- "SMEX PB5 Flag", HFILL }
- },
- { &hf_smex_jday,
- { "Julian Day", "vcdu.smex.jday",
- FT_UINT16, BASE_DEC, NULL, PB5_JULIAN_DAY_MASK,
- "SMEX Julian Day", HFILL }
- },
- { &hf_smex_seconds,
- { "Seconds", "vcdu.smex.seconds",
- FT_UINT24, BASE_DEC, NULL, PB5_SECONDS_MASK,
- "SMEX Seconds", HFILL }
- },
- { &hf_smex_msec,
- { "Milliseconds", "vcdu.smex.msec",
- FT_UINT16, BASE_DEC, NULL, PB5_MILLISECONDS_MASK,
- "SMEX Milliseconds", HFILL }
- },
- { &hf_smex_spare,
- { "Spare", "vcdu.smex.spare",
- FT_UINT16, BASE_DEC, NULL, 0x03f,
- "SMEX Spare", HFILL }
- },
-
-
-
- { &hf_vcdu_version,
- { "Version", "vcdu.version",
- FT_UINT16, BASE_DEC, NULL, 0xc0,
- "VCDU Version", HFILL }
- },
- { &hf_vcdu_sp_id,
- { "Space Craft ID", "vcdu.spid",
- FT_UINT16, BASE_DEC, NULL, 0x3fc0,
- "VCDU Space Craft ID", HFILL }
- },
- { &hf_vcdu_vc_id,
- { "Virtual Channel ID", "vcdu.vcid",
- FT_UINT16, BASE_DEC, NULL, 0x3f,
- "VCDU Virtual Channel ID", HFILL }
- },
- { &hf_vcdu_seq,
- { "Sequence Count", "vcdu.seq",
- FT_UINT16, BASE_DEC, NULL, 0xffffff,
- "VCDU Sequence Count", HFILL }
- },
- { &hf_vcdu_replay,
- { "Replay Flag", "vcdu.replay",
- FT_BOOLEAN, 8, NULL, 0x80,
- "VCDU Replay Flag", HFILL }
- },
-
- /* not really part of the vcdu header, but it's easier this way */
- { &hf_vcdu_fhp,
- { "First Header Pointer", "vcdu.fhp",
- FT_UINT16, BASE_DEC, NULL, FHP_MASK,
- "VCDU/MPDU First Header Pointer", HFILL }
- },
- { &hf_vcdu_lbp,
- { "Last Bit Pointer", "vcdu.lbp",
- FT_UINT16, BASE_DEC, NULL, LBP_MASK,
- "VCDU/BPDU Last Bit Pointer", HFILL }
- }
- };
-
- static uat_field_t vcdu_uat_flds[] = {
- UAT_FLD_DEC(uat_bitchannels, channel, "Bitstream Channel", "Bitstream Channel"),
- UAT_END_FIELDS
- };
-
- /* Setup protocol subtree array */
- static gint *ett[] = {
- &ett_vcdu,
- &ett_smex,
- &ett_vcduh,
- };
-
- /* Register the protocol name and description */
- proto_vcdu = proto_register_protocol("VCDU", "VCDU", "vcdu");
-
- /* Required function calls to register the header fields and subtrees used */
- proto_register_field_array(proto_vcdu, hf, array_length(hf));
- proto_register_subtree_array(ett, array_length(ett));
-
- /* XX: Does this dissector need to be publicly registered ?? */
- register_dissector ( "vcdu", dissect_vcdu, proto_vcdu );
-
- vcdu_module = prefs_register_protocol(proto_vcdu, vcdu_prefs_apply_cb);
-
- vcdu_uat = uat_new("Bitstream Channel Table",
- sizeof(uat_channel_t),
- "vcdu_bitstream_channels",
- TRUE,
- (void*)&uat_bitchannels,
- &num_channels_uat,
- UAT_AFFECTS_DISSECTION, /* affects dissection of packets, but not set of named fields */
- NULL,
- NULL,
- vcdu_uat_data_update_cb,
- NULL,
- NULL,
- vcdu_uat_flds);
-
- prefs_register_uat_preference(vcdu_module,
- "bitstream_channels",
- "Bitstream Channel Table",
- "Bitstream Channel Table",
- vcdu_uat);
+{
+ module_t *vcdu_module;
+
+ /* Setup list of header fields See Section 1.6.1 for details*/
+ static hf_register_info hf[] = {
+ { &hf_smex_gsc,
+ { "Ground Sequence Counter", "vcdu.smex.gsc",
+ FT_UINT64, BASE_DEC, NULL, 0x0,
+ "SMEX Ground Sequence Counter", HFILL }
+ },
+/**
+ { &hf_smex_unused,
+ { "Unused", "vcdu.smex.unused",
+ FT_UINT16, BASE_DEC, NULL, 0x0,
+ "SMEX Unused", HFILL }
+ },
+**/
+ { &hf_smex_version,
+ { "Version", "vcdu.smex.version",
+ FT_UINT16, BASE_DEC, NULL, SMEX_VERSION,
+ "SMEX Version", HFILL }
+ },
+ { &hf_smex_framelen,
+ { "Frame Length", "vcdu.smex.frame_len",
+ FT_UINT16, BASE_DEC, NULL, SMEX_FRAMELEN,
+ "SMEX Frame Length", HFILL }
+ },
+ { &hf_smex_rs_enable,
+ { "RS Enable", "vcdu.smex.rs_enable",
+ FT_BOOLEAN, 8, NULL, 0x80,
+ "SMEX RS Enable", HFILL }
+ },
+ { &hf_smex_rs_error,
+ { "RS Error", "vcdu.smex.rs_error",
+ FT_BOOLEAN, 8, NULL, 0x40,
+ "SMEX RS Error", HFILL }
+ },
+ { &hf_smex_crc_enable,
+ { "CRC Enable", "vcdu.smex.crc_enable",
+ FT_BOOLEAN, 8, NULL, 0x20,
+ "SMEX CRC Enable", HFILL }
+ },
+ { &hf_smex_crc_error,
+ { "CRC Error", "vcdu.smex.crc_error",
+ FT_BOOLEAN, 8, NULL, 0x10,
+ "SMEX CRC Error", HFILL }
+ },
+ { &hf_smex_mcs_enable,
+ { "MCS Enable", "vcdu.smex.mcs_enable",
+ FT_BOOLEAN, 8, NULL, 0x08,
+ "SMEX MCS Enable", HFILL }
+ },
+ { &hf_smex_mcs_num_error,
+ { "MCS Number Error", "vcdu.smex.mcs_numerr",
+ FT_BOOLEAN, 8, NULL, 0x04,
+ "SMEX MCS Number Error", HFILL }
+ },
+ { &hf_smex_data_inv,
+ { "Data Inversion", "vcdu.smex.data_inv",
+ FT_UINT16, BASE_DEC, VALS(smex_data_inversion_type), 0x03,
+ "SMEX Data Inversion", HFILL }
+ },
+ { &hf_smex_frame_sync,
+ { "Frame Sync", "vcdu.smex.frame_sync",
+ FT_UINT16, BASE_DEC, VALS(smex_frame_sync_mode), 0xc0,
+ "SMEX Frame Sync Flag", HFILL }
+ },
+ { &hf_smex_data_dir,
+ { "Data Direction", "vcdu.smex.data_dir",
+ FT_UINT16, BASE_DEC, VALS(smex_data_direction), 0x20,
+ "SMEX Data Direction flag", HFILL }
+ },
+ { &hf_smex_data_class,
+ { "Data Class", "vcdu.smex.data_class",
+ FT_UINT16, BASE_DEC, VALS(smex_data_class), 0x1f,
+ "SMEX Data Class", HFILL }
+ },
+ { &hf_smex_pb5,
+ { "PB5 Flag", "vcdu.smex.pb5",
+ FT_UINT16, BASE_DEC, NULL, 0x8000,
+ "SMEX PB5 Flag", HFILL }
+ },
+ { &hf_smex_jday,
+ { "Julian Day", "vcdu.smex.jday",
+ FT_UINT16, BASE_DEC, NULL, PB5_JULIAN_DAY_MASK,
+ "SMEX Julian Day", HFILL }
+ },
+ { &hf_smex_seconds,
+ { "Seconds", "vcdu.smex.seconds",
+ FT_UINT24, BASE_DEC, NULL, PB5_SECONDS_MASK,
+ "SMEX Seconds", HFILL }
+ },
+ { &hf_smex_msec,
+ { "Milliseconds", "vcdu.smex.msec",
+ FT_UINT16, BASE_DEC, NULL, PB5_MILLISECONDS_MASK,
+ "SMEX Milliseconds", HFILL }
+ },
+/**
+ { &hf_smex_spare,
+ { "Spare", "vcdu.smex.spare",
+ FT_UINT16, BASE_DEC, NULL, 0x03f,
+ "SMEX Spare", HFILL }
+ },
+**/
+
+ { &hf_vcdu_version,
+ { "Version", "vcdu.version",
+ FT_UINT16, BASE_DEC, NULL, 0xc0,
+ "VCDU Version", HFILL }
+ },
+ { &hf_vcdu_sp_id,
+ { "Space Craft ID", "vcdu.spid",
+ FT_UINT16, BASE_DEC, NULL, 0x3fc0,
+ "VCDU Space Craft ID", HFILL }
+ },
+ { &hf_vcdu_vc_id,
+ { "Virtual Channel ID", "vcdu.vcid",
+ FT_UINT16, BASE_DEC, NULL, 0x3f,
+ "VCDU Virtual Channel ID", HFILL }
+ },
+ { &hf_vcdu_seq,
+ { "Sequence Count", "vcdu.seq",
+ FT_UINT16, BASE_DEC, NULL, 0xffffff,
+ "VCDU Sequence Count", HFILL }
+ },
+ { &hf_vcdu_replay,
+ { "Replay Flag", "vcdu.replay",
+ FT_BOOLEAN, 8, NULL, 0x80,
+ "VCDU Replay Flag", HFILL }
+ },
+
+ /* not really part of the vcdu header, but it's easier this way */
+ { &hf_vcdu_fhp,
+ { "First Header Pointer", "vcdu.fhp",
+ FT_UINT16, BASE_DEC, NULL, FHP_MASK,
+ "VCDU/MPDU First Header Pointer", HFILL }
+ },
+ { &hf_vcdu_lbp,
+ { "Last Bit Pointer", "vcdu.lbp",
+ FT_UINT16, BASE_DEC, NULL, LBP_MASK,
+ "VCDU/BPDU Last Bit Pointer", HFILL }
+ }
+ };
+
+ static uat_field_t vcdu_uat_flds[] = {
+ UAT_FLD_DEC(uat_bitchannels, channel, "Bitstream Channel", "Bitstream Channel"),
+ UAT_END_FIELDS
+ };
+
+ /* Setup protocol subtree array */
+ static gint *ett[] = {
+ &ett_vcdu,
+ &ett_smex,
+ &ett_vcduh,
+ };
+
+ /* Register the protocol name and description */
+ proto_vcdu = proto_register_protocol("VCDU", "VCDU", "vcdu");
+
+ /* Required function calls to register the header fields and subtrees used */
+ proto_register_field_array(proto_vcdu, hf, array_length(hf));
+ proto_register_subtree_array(ett, array_length(ett));
+
+ /* XX: Does this dissector need to be publicly registered ?? */
+ register_dissector ( "vcdu", dissect_vcdu, proto_vcdu );
+
+ vcdu_module = prefs_register_protocol(proto_vcdu, vcdu_prefs_apply_cb);
+
+ vcdu_uat = uat_new("Bitstream Channel Table",
+ sizeof(uat_channel_t),
+ "vcdu_bitstream_channels",
+ TRUE,
+ (void*)&uat_bitchannels,
+ &num_channels_uat,
+ UAT_AFFECTS_DISSECTION, /* affects dissection of packets, but not set of named fields */
+ NULL,
+ NULL,
+ vcdu_uat_data_update_cb,
+ NULL,
+ NULL,
+ vcdu_uat_flds);
+
+ prefs_register_uat_preference(vcdu_module,
+ "bitstream_channels",
+ "Bitstream Channel Table",
+ "Bitstream Channel Table",
+ vcdu_uat);
}
@@ -638,7 +643,7 @@ proto_register_vcdu(void)
void
proto_reg_handoff_vcdu(void)
{
- dissector_add_handle ( "udp.port", find_dissector("vcdu") ); /* for 'decode as' */
- ccsds_handle = find_dissector ( "ccsds" );
+ dissector_add_handle ( "udp.port", find_dissector("vcdu") ); /* for 'decode as' */
+ ccsds_handle = find_dissector ( "ccsds" );
}
diff --git a/epan/dissectors/packet-wassp.c b/epan/dissectors/packet-wassp.c
index 8ffe67824e..20e070bb8a 100644
--- a/epan/dissectors/packet-wassp.c
+++ b/epan/dissectors/packet-wassp.c
@@ -72,7 +72,7 @@ static int hf_wassp_flags = -1;
static int hf_wassp_sessionid = -1;
static int hf_wassp_length = -1;
/* tunnel data */
-static int hf_data = -1;
+/* static int hf_data = -1; */
/* tunnel tlvs */
static int hf_status = -1;
static int hf_ru_soft_version = -1;
@@ -1068,9 +1068,11 @@ proto_register_wassp(void)
0x0, NULL, HFILL }},
/* Data: Embedded IEEE 802.11 Frame */
+/**
{ &hf_data,
{ "DATA", "wassp.data", FT_NONE, BASE_NONE, NULL,
0x0, NULL, HFILL }},
+**/
/* WASSP tunnel data */
{ &hf_status,
diff --git a/epan/dissectors/packet-waveagent.c b/epan/dissectors/packet-waveagent.c
index 11a87d2534..f3de74bb53 100644
--- a/epan/dissectors/packet-waveagent.c
+++ b/epan/dissectors/packet-waveagent.c
@@ -91,9 +91,9 @@ static int hf_waveagent_rx3pl = -1;
static int hf_waveagent_rx4pl = -1;
static int hf_waveagent_rx5pl = -1;
static int hf_waveagent_rxoospkts = -1;
-static int hf_waveagent_rxmeanlatency = -1;
-static int hf_waveagent_rxminlatency = -1;
-static int hf_waveagent_rxmaxlatency = -1;
+/* static int hf_waveagent_rxmeanlatency = -1; */
+/* static int hf_waveagent_rxminlatency = -1; */
+/* static int hf_waveagent_rxmaxlatency = -1; */
static int hf_waveagent_latencysum = -1;
static int hf_waveagent_latencycount = -1;
static int hf_waveagent_txflowstop = -1;
@@ -1467,20 +1467,26 @@ void proto_register_waveagent(void)
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL } },
+/**
{ &hf_waveagent_rxmeanlatency,
{ "Rx Mean latency", "waveagent.rxmeanlatency",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL } },
+**/
+/**
{ &hf_waveagent_rxminlatency,
{ "Rx Minimum latency", "waveagent.rxminlatency",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL } },
+**/
+/**
{ &hf_waveagent_rxmaxlatency,
{ "Rx Maximum latency", "waveagent.rxmaxlatency",
FT_UINT64, BASE_DEC, NULL, 0x0,
NULL, HFILL } },
+**/
{ &hf_waveagent_jitter,
{ "Jitter (microseconds)", "waveagent.jitter",
diff --git a/epan/dissectors/packet-wcp.c b/epan/dissectors/packet-wcp.c
index 7666fa9c00..b1a4654e4e 100644
--- a/epan/dissectors/packet-wcp.c
+++ b/epan/dissectors/packet-wcp.c
@@ -148,14 +148,14 @@ static int hf_wcp_alg_a = -1;
static int hf_wcp_alg_b = -1;
static int hf_wcp_alg_c = -1;
static int hf_wcp_alg_d = -1;
-static int hf_wcp_rexmit = -1;
+/* static int hf_wcp_rexmit = -1; */
static int hf_wcp_hist_size = -1;
static int hf_wcp_ppc = -1;
static int hf_wcp_pib = -1;
static int hf_wcp_comp_bits = -1;
-static int hf_wcp_comp_marker = -1;
+/* static int hf_wcp_comp_marker = -1; */
static int hf_wcp_short_len = -1;
static int hf_wcp_long_len = -1;
static int hf_wcp_short_run = -1;
@@ -647,9 +647,11 @@ proto_register_wcp(void)
{ &hf_wcp_alg,
{ "Alg", "wcp.alg", FT_UINT8, BASE_DEC, NULL, 0,
"Algorithm", HFILL }},
+/**
{ &hf_wcp_rexmit,
{ "Rexmit", "wcp.rexmit", FT_UINT8, BASE_DEC, NULL, 0,
"Retransmit", HFILL }},
+**/
{ &hf_wcp_hist_size,
{ "History", "wcp.hist", FT_UINT8, BASE_DEC, NULL, 0,
"History Size", HFILL }},
@@ -662,9 +664,11 @@ proto_register_wcp(void)
{ &hf_wcp_comp_bits,
{ "Compress Flag", "wcp.flag", FT_UINT8, BASE_HEX, NULL, 0,
"Compressed byte flag", HFILL }},
+/**
{ &hf_wcp_comp_marker,
{ "Compress Marker", "wcp.mark", FT_UINT8, BASE_DEC, NULL, 0,
"Compressed marker", HFILL }},
+**/
{ &hf_wcp_offset,
{ "Source offset", "wcp.off", FT_UINT16, BASE_HEX, NULL, WCP_OFFSET_MASK,
"Data source offset", HFILL }},
diff --git a/epan/dissectors/packet-wifi-p2p.c b/epan/dissectors/packet-wifi-p2p.c
index 8fa5f39166..d32f1c5f6c 100644
--- a/epan/dissectors/packet-wifi-p2p.c
+++ b/epan/dissectors/packet-wifi-p2p.c
@@ -231,7 +231,7 @@ static gint ett_p2p_service_tlv = -1;
static int hf_p2p_attr_type = -1;
static int hf_p2p_attr_len = -1;
-static int hf_p2p_attr_capab = -1;
+/* static int hf_p2p_attr_capab = -1; */
static int hf_p2p_attr_capab_device = -1;
static int hf_p2p_attr_capab_device_service_discovery = -1;
static int hf_p2p_attr_capab_device_client_discoverability = -1;
@@ -255,23 +255,23 @@ static int hf_p2p_attr_status = -1;
static int hf_p2p_attr_go_intent = -1;
static int hf_p2p_attr_go_intent_tie_breaker = -1;
-static int hf_p2p_attr_listen_channel = -1;
+/* static int hf_p2p_attr_listen_channel = -1; */
static int hf_p2p_attr_listen_channel_country = -1;
static int hf_p2p_attr_listen_channel_oper_class = -1;
static int hf_p2p_attr_listen_channel_number = -1;
-static int hf_p2p_attr_operating_channel = -1;
+/* static int hf_p2p_attr_operating_channel = -1; */
static int hf_p2p_attr_operating_channel_country = -1;
static int hf_p2p_attr_operating_channel_oper_class = -1;
static int hf_p2p_attr_operating_channel_number = -1;
-static int hf_p2p_attr_channel_list = -1;
+/* static int hf_p2p_attr_channel_list = -1; */
static int hf_p2p_attr_channel_list_country = -1;
static int hf_p2p_attr_channel_list_oper_class = -1;
static int hf_p2p_attr_channel_list_num_chan = -1;
static int hf_p2p_attr_channel_list_chan = -1;
-static int hf_p2p_attr_dev_info = -1;
+/* static int hf_p2p_attr_dev_info = -1; */
static int hf_p2p_attr_dev_info_p2p_dev_addr = -1;
static int hf_p2p_attr_dev_info_pri_dev_type = -1;
static int hf_p2p_attr_dev_info_pri_dev_type_category = -1;
@@ -310,7 +310,7 @@ static int hf_p2p_attr_noa_duration = -1;
static int hf_p2p_attr_noa_interval = -1;
static int hf_p2p_attr_noa_start_time = -1;
-static int hf_p2p_attr_gi = -1;
+/* static int hf_p2p_attr_gi = -1; */
static int hf_p2p_attr_gi_length = -1;
static int hf_p2p_attr_gi_p2p_dev_addr = -1;
static int hf_p2p_attr_gi_p2p_iface_addr = -1;
@@ -320,17 +320,17 @@ static int hf_p2p_attr_gi_dev_capab_client_discoverability = -1;
static int hf_p2p_attr_gi_dev_capab_concurrent_operation = -1;
static int hf_p2p_attr_gi_dev_capab_infrastructure_managed = -1;
static int hf_p2p_attr_gi_dev_capab_limit = -1;
-static int hf_p2p_attr_gi_dev_capab_invitation_procedure = -1;
+/* static int hf_p2p_attr_gi_dev_capab_invitation_procedure = -1; */
static int hf_p2p_attr_gi_config_methods = -1;
-static int hf_p2p_attr_gi_config_methods_usba = -1;
-static int hf_p2p_attr_gi_config_methods_ethernet = -1;
-static int hf_p2p_attr_gi_config_methods_label = -1;
-static int hf_p2p_attr_gi_config_methods_display = -1;
-static int hf_p2p_attr_gi_config_methods_ext_nfc_token = -1;
-static int hf_p2p_attr_gi_config_methods_int_nfc_token = -1;
-static int hf_p2p_attr_gi_config_methods_nfc_interface = -1;
-static int hf_p2p_attr_gi_config_methods_pushbutton = -1;
-static int hf_p2p_attr_gi_config_methods_keypad = -1;
+/* static int hf_p2p_attr_gi_config_methods_usba = -1; */
+/* static int hf_p2p_attr_gi_config_methods_ethernet = -1; */
+/* static int hf_p2p_attr_gi_config_methods_label = -1; */
+/* static int hf_p2p_attr_gi_config_methods_display = -1; */
+/* static int hf_p2p_attr_gi_config_methods_ext_nfc_token = -1; */
+/* static int hf_p2p_attr_gi_config_methods_int_nfc_token = -1; */
+/* static int hf_p2p_attr_gi_config_methods_nfc_interface = -1; */
+/* static int hf_p2p_attr_gi_config_methods_pushbutton = -1; */
+/* static int hf_p2p_attr_gi_config_methods_keypad = -1; */
static int hf_p2p_attr_gi_pri_dev_type = -1;
static int hf_p2p_attr_gi_pri_dev_type_category = -1;
static int hf_p2p_attr_gi_pri_dev_type_oui = -1;
@@ -1063,9 +1063,11 @@ proto_register_p2p(void)
{ "Attribute Length", "wifi_p2p.length",
FT_UINT16, BASE_DEC, NULL, 0x0, NULL, HFILL }},
+/**
{ &hf_p2p_attr_capab,
{ "P2P Capability", "wifi_p2p.p2p_capability",
FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }},
+**/
{ &hf_p2p_attr_capab_device,
{ "Device Capability Bitmap",
"wifi_p2p.p2p_capability.device_capability",
@@ -1158,9 +1160,11 @@ proto_register_p2p(void)
{ "Group Owner Intent Tie Breaker", "wifi_p2p.go_intent_tie_breaker",
FT_UINT8, BASE_DEC, NULL, 0x01, NULL, HFILL }},
+/**
{ &hf_p2p_attr_listen_channel,
{ "Listen Channel", "wifi_p2p.listen_channel",
FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }},
+**/
{ &hf_p2p_attr_listen_channel_country,
{ "Country String", "wifi_p2p.listen_channel.country_string",
FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL }},
@@ -1171,9 +1175,11 @@ proto_register_p2p(void)
{ "Channel Number", "wifi_p2p.listen_channel.channel_number",
FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL }},
+/**
{ &hf_p2p_attr_operating_channel,
{ "Operating Channel", "wifi_p2p.operating_channel",
FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }},
+**/
{ &hf_p2p_attr_operating_channel_country,
{ "Country String", "wifi_p2p.operating_channel.country_string",
FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL }},
@@ -1184,9 +1190,11 @@ proto_register_p2p(void)
{ "Channel Number", "wifi_p2p.channel.channel_number",
FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL }},
+/**
{ &hf_p2p_attr_channel_list,
{ "Channel List", "wifi_p2p.channel_list",
FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }},
+**/
{ &hf_p2p_attr_channel_list_country,
{ "Country String", "wifi_p2p.channel_list.country_string",
FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL }},
@@ -1199,10 +1207,11 @@ proto_register_p2p(void)
{ &hf_p2p_attr_channel_list_chan,
{ "Channel List", "wifi_p2p.channel_list.channel_list",
FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }},
-
+/**
{ &hf_p2p_attr_dev_info,
{ "Device Info", "wifi_p2p.dev_info",
FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }},
+**/
{ &hf_p2p_attr_dev_info_p2p_dev_addr,
{ "P2P Device address", "wifi_p2p.dev_info.p2p_dev_addr",
FT_ETHER, BASE_NONE, NULL, 0x0, NULL, HFILL }},
@@ -1316,9 +1325,11 @@ proto_register_p2p(void)
{ "Start Time", "wifi_p2p.noa.start_time",
FT_UINT32, BASE_DEC, NULL, 0x0, NULL, HFILL }},
+/**
{ &hf_p2p_attr_gi,
{ "Device Info", "wifi_p2p.group_info",
FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }},
+**/
{ &hf_p2p_attr_gi_length,
{ "P2P Client Info Descriptor Length", "wifi_p2p.group_info.length",
FT_UINT8, BASE_DEC, NULL, 0x0, NULL, HFILL }},
@@ -1357,14 +1368,14 @@ proto_register_p2p(void)
{ &hf_p2p_attr_gi_dev_capab_limit,
{ "P2P Device Limit",
"wifi_p2p.group_info.device_capability.device_limit",
- FT_UINT8, BASE_HEX, NULL, P2P_DEV_CAPAB_P2P_DEVICE_LIMIT, NULL, HFILL
- }},
+ FT_UINT8, BASE_HEX, NULL, P2P_DEV_CAPAB_P2P_DEVICE_LIMIT, NULL, HFILL }},
+/**
{ &hf_p2p_attr_gi_dev_capab_invitation_procedure,
{ "P2P Invitation Procedure",
"wifi_p2p.group_info.device_capability.invitation_procedure",
FT_UINT8, BASE_HEX, NULL, P2P_DEV_CAPAB_P2P_INVITATION_PROCEDURE, NULL,
- HFILL
- }},
+ HFILL }},
+**/
{ &hf_p2p_attr_gi_pri_dev_type,
{ "Primary Device Type", "wifi_p2p.group_info.pri_dev_type",
FT_BYTES, BASE_NONE, NULL, 0x0, NULL, HFILL }},
@@ -1397,35 +1408,53 @@ proto_register_p2p(void)
{ &hf_p2p_attr_gi_config_methods,
{ "Config Methods", "wifi_p2p.group_info.config_methods",
FT_UINT16, BASE_HEX, NULL, 0, NULL, HFILL }},
+/**
{ &hf_p2p_attr_gi_config_methods_usba,
{ "USBA (Flash Drive)", "wifi_p2p.group_info.config_methods.usba",
FT_UINT16, BASE_HEX, NULL, WPS_CONF_METH_USBA, NULL, HFILL }},
+**/
+/**
{ &hf_p2p_attr_gi_config_methods_ethernet,
{ "Ethernet", "wifi_p2p.group_info.config_methods.ethernet",
FT_UINT16, BASE_HEX, NULL, WPS_CONF_METH_ETHERNET, NULL, HFILL }},
+**/
+/**
{ &hf_p2p_attr_gi_config_methods_label,
{ "Label", "wifi_p2p.group_info.config_methods.label",
FT_UINT16, BASE_HEX, NULL, WPS_CONF_METH_LABEL, NULL, HFILL }},
+**/
+/**
{ &hf_p2p_attr_gi_config_methods_display,
{ "Display", "wifi_p2p.group_info.config_methods.display",
FT_UINT16, BASE_HEX, NULL, WPS_CONF_METH_DISPLAY, NULL, HFILL }},
+**/
+/**
{ &hf_p2p_attr_gi_config_methods_ext_nfc_token,
{ "External NFC Token",
"wifi_p2p.group_info.config_methods.ext_nfc_token",
FT_UINT16, BASE_HEX, NULL, WPS_CONF_METH_EXT_NFC_TOKEN, NULL, HFILL }},
+**/
+/**
{ &hf_p2p_attr_gi_config_methods_int_nfc_token,
{ "Integrated NFC Token",
"wifi_p2p.group_info.config_methods.int_nfc_token",
FT_UINT16, BASE_HEX, NULL, WPS_CONF_METH_INT_NFC_TOKEN, NULL, HFILL }},
+**/
+/**
{ &hf_p2p_attr_gi_config_methods_nfc_interface,
{ "NFC Interface", "wifi_p2p.group_info.config_methods.nfc_interface",
FT_UINT16, BASE_HEX, NULL, WPS_CONF_METH_NFC_INTERFACE, NULL, HFILL }},
+**/
+/**
{ &hf_p2p_attr_gi_config_methods_pushbutton,
{ "PushButton", "wifi_p2p.group_info.config_methods.pushbutton",
FT_UINT16, BASE_HEX, NULL, WPS_CONF_METH_PUSHBUTTON, NULL, HFILL }},
+**/
+/**
{ &hf_p2p_attr_gi_config_methods_keypad,
{ "Keypad", "wifi_p2p.group_info.config_methods.keypad",
FT_UINT16, BASE_HEX, NULL, WPS_CONF_METH_KEYPAD, NULL, HFILL }},
+**/
{ &hf_p2p_attr_invitation_flags,
{ "Invitation Flags", "wifi_p2p.invitation_flags",
diff --git a/epan/dissectors/packet-wlccp.c b/epan/dissectors/packet-wlccp.c
index ef1e69ea63..e8531dbb36 100644
--- a/epan/dissectors/packet-wlccp.c
+++ b/epan/dissectors/packet-wlccp.c
@@ -505,9 +505,9 @@ static int hf_wlccp_responder_node_type = -1;
static int hf_wlccp_relay_node_type = -1;
static int hf_wlccp_relay_node_id = -1;
-static int hf_wlccp_priority = -1;
-static int hf_wlccp_age = -1;
-static int hf_wlccp_period = -1;
+/* static int hf_wlccp_priority = -1; */
+/* static int hf_wlccp_age = -1; */
+/* static int hf_wlccp_period = -1; */
static int hf_wlccp_ipv4_address = -1;
/* SCM Advertisement */
@@ -3313,24 +3313,27 @@ proto_register_wlccp(void)
0x0, "Node which relayed this message", HFILL }
},
+/**
{ &hf_wlccp_priority,
{ "WDS priority", "wlccp.priority",
FT_UINT8, BASE_DEC, NULL, 0,
"WDS priority of this access point", HFILL }
},
-
+**/
+/**
{ &hf_wlccp_age,
{ "Age", "wlccp.age",
FT_UINT32, BASE_DEC, NULL, 0,
"Time since AP became a WDS master", HFILL }
},
-
+**/
+/**
{ &hf_wlccp_period,
{ "Period", "wlccp.period",
FT_UINT8, BASE_DEC, NULL, 0,
"Interval between announcements (seconds)", HFILL }
},
-
+**/
{ &hf_wlccp_ipv4_address,
{ "IPv4 Address", "wlccp.ipv4_address",
FT_IPv4, BASE_NONE, NULL, 0,
diff --git a/epan/dissectors/packet-ypbind.c b/epan/dissectors/packet-ypbind.c
index e03a731be6..80d6ccea68 100644
--- a/epan/dissectors/packet-ypbind.c
+++ b/epan/dissectors/packet-ypbind.c
@@ -38,7 +38,7 @@ static int hf_ypbind_procedure_v1 = -1;
static int hf_ypbind_procedure_v2 = -1;
static int hf_ypbind_domain = -1;
static int hf_ypbind_resp_type = -1;
-static int hf_ypbind_error = -1;
+/* static int hf_ypbind_error = -1; */
static int hf_ypbind_addr = -1;
static int hf_ypbind_port = -1;
static int hf_ypbind_setdom_version = -1;
@@ -64,6 +64,7 @@ static const value_string resp_type_vals[] = {
{0, NULL}
};
+#if 0
#define YPBIND_ERROR_ERR 1
#define YPBIND_ERROR_NOSERV 2
#define YPBIND_ERROR_RESC 3
@@ -73,6 +74,7 @@ static const value_string error_vals[] = {
{YPBIND_ERROR_RESC, "System resource allocation failure"},
{0, NULL}
};
+#endif
static int
dissect_ypbind_domain_v2_reply(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree)
@@ -181,10 +183,10 @@ proto_register_ypbind(void)
"Response Type", "ypbind.resp_type", FT_UINT32, BASE_DEC,
VALS(resp_type_vals), 0, NULL, HFILL }},
- { &hf_ypbind_error, {
+/** { &hf_ypbind_error, {
"Error", "ypbind.error", FT_UINT32, BASE_DEC,
VALS(error_vals), 0, "YPBIND Error code", HFILL }},
-
+**/
{ &hf_ypbind_addr, {
"IP Addr", "ypbind.addr", FT_IPv4, BASE_NONE,
NULL, 0, "IP Address of server", HFILL }},
diff --git a/epan/dissectors/packet-zbee-zcl.c b/epan/dissectors/packet-zbee-zcl.c
index 9917603da7..66e1e8e0f7 100644
--- a/epan/dissectors/packet-zbee-zcl.c
+++ b/epan/dissectors/packet-zbee-zcl.c
@@ -107,7 +107,6 @@ static int hf_zbee_zcl_attr_int16 = -1;
static int hf_zbee_zcl_attr_int24 = -1;
static int hf_zbee_zcl_attr_int32 = -1;
static int hf_zbee_zcl_attr_int64 = -1;
-static int hf_zbee_zcl_attr_semi = -1;
static int hf_zbee_zcl_attr_float = -1;
static int hf_zbee_zcl_attr_double = -1;
static int hf_zbee_zcl_attr_bytes = -1;
@@ -2102,10 +2101,6 @@ void proto_register_zbee_zcl(void)
{ "Int64", "zbee_zcl.attr.int64", FT_INT64, BASE_DEC, NULL, 0x0,
NULL, HFILL }},
- { &hf_zbee_zcl_attr_semi,
- { "Semi Float", "zbee_zcl.attr.float", FT_FLOAT, BASE_NONE, NULL, 0x0,
- NULL, HFILL }},
-
{ &hf_zbee_zcl_attr_float,
{ "Float", "zbee_zcl.attr.float", FT_FLOAT, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
diff --git a/epan/dissectors/packet-zep.c b/epan/dissectors/packet-zep.c
index 507528c289..6f91177def 100644
--- a/epan/dissectors/packet-zep.c
+++ b/epan/dissectors/packet-zep.c
@@ -66,7 +66,6 @@ void proto_reg_handoff_zep(void);
/* Initialize protocol and registered fields. */
static int proto_zep = -1;
static int hf_zep_version = -1;
-static int hf_zep_type = -1;
static int hf_zep_channel_id = -1;
static int hf_zep_device_id = -1;
static int hf_zep_lqi_mode = -1;
@@ -266,10 +265,6 @@ void proto_register_zep(void)
{ "Protocol Version", "zep.version", FT_UINT8, BASE_DEC, NULL, 0x0,
"The version of the sniffer.", HFILL }},
- { &hf_zep_type,
- { "Type", "zep.type", FT_UINT8, BASE_DEC, NULL, 0x0,
- NULL, HFILL }},
-
{ &hf_zep_channel_id,
{ "Channel ID", "zep.channel_id", FT_UINT8, BASE_DEC, NULL, 0x0,
"The logical channel on which this packet was detected.", HFILL }},
diff --git a/epan/dissectors/packet-zrtp.c b/epan/dissectors/packet-zrtp.c
index 059f6237c9..314463b7e7 100644
--- a/epan/dissectors/packet-zrtp.c
+++ b/epan/dissectors/packet-zrtp.c
@@ -43,7 +43,6 @@ static int proto_zrtp = -1;
static int hf_zrtp_rtpversion = -1;
static int hf_zrtp_rtppadding = -1;
static int hf_zrtp_rtpextension = -1;
-static int hf_zrtp_id = -1;
static int hf_zrtp_sequence = -1;
static int hf_zrtp_cookie = -1;
static int hf_zrtp_source_id = -1;
@@ -170,7 +169,7 @@ typedef struct _value_string_keyval {
} value_string_keyval;
-const value_zrtp_versions valid_zrtp_versions[]=
+const value_zrtp_versions valid_zrtp_versions[] =
{
{"1.1x"},
{"1.0x"},
@@ -182,54 +181,54 @@ const value_zrtp_versions valid_zrtp_versions[]=
const value_string_keyval zrtp_hash_type_vals[] =
{
- { "S256", "SHA-256 Hash"},
- { "S384", "SHA-384 Hash"},
- { "N256", "SHA-3 256-bit hash"},
- { "N384", "SHA-3 384 bit hash"},
- { NULL, NULL }
+ { "S256", "SHA-256 Hash"},
+ { "S384", "SHA-384 Hash"},
+ { "N256", "SHA-3 256-bit hash"},
+ { "N384", "SHA-3 384 bit hash"},
+ { NULL, NULL }
};
const value_string_keyval zrtp_cipher_type_vals[] =
{
- { "AES1", "AES-CM with 128 bit keys"},
- { "AES2", "AES-CM with 192 bit keys"},
- { "AES3", "AES-CM with 256 bit keys"},
+ { "AES1", "AES-CM with 128 bit keys"},
+ { "AES2", "AES-CM with 192 bit keys"},
+ { "AES3", "AES-CM with 256 bit keys"},
{ "2FS1", "TwoFish with 128 bit keys"},
{ "2FS2", "TwoFish with 192 bit keys"},
{ "2FS3", "TwoFish with 256 bit keys"},
{ "CAM1", "Camellia with 128 bit keys"},
{ "CAM2", "Camellia with 192 bit keys"},
{ "CAM3", "Camellia with 256 bit keys"},
- { NULL, NULL }
+ { NULL, NULL }
};
const value_string_keyval zrtp_auth_tag_vals[] =
{
- { "HS32", "HMAC-SHA1 32 bit authentication tag"},
- { "HS80", "HMAC-SHA1 80 bit authentication tag"},
- { "SK32", "Skein-512-MAC 32 bit authentication tag"},
- { "SK64", "Skein-512-MAC 64 bit authentication tag"},
- { NULL, NULL }
+ { "HS32", "HMAC-SHA1 32 bit authentication tag"},
+ { "HS80", "HMAC-SHA1 80 bit authentication tag"},
+ { "SK32", "Skein-512-MAC 32 bit authentication tag"},
+ { "SK64", "Skein-512-MAC 64 bit authentication tag"},
+ { NULL, NULL }
};
const value_string_keyval zrtp_sas_type_vals[] =
{
- { "B32 ", "Short authentication string using base 32"},
- { "B256", "Short authentication string using base 256"},
- { NULL, NULL }
+ { "B32 ", "Short authentication string using base 32"},
+ { "B256", "Short authentication string using base 256"},
+ { NULL, NULL }
};
const value_string_keyval zrtp_key_agreement_vals[] =
{
- { "DH2k", "DH mode with p=2048 bit prime"},
- { "DH3k", "DH mode with p=3072 bit prime"},
- { "DH4k", "DH mode with p=4096 bit prime"},
- { "Prsh", "Preshared non-DH mode using shared secret"},
- { "EC25", "Elliptic Curve DH-256"},
- { "EC38", "Elliptic Curve DH-384"},
- { "EC52", "Elliptic Curve DH-521"},
- { "Mult", "Multistream mode"},
- { NULL, NULL }
+ { "DH2k", "DH mode with p=2048 bit prime"},
+ { "DH3k", "DH mode with p=3072 bit prime"},
+ { "DH4k", "DH mode with p=4096 bit prime"},
+ { "Prsh", "Preshared non-DH mode using shared secret"},
+ { "EC25", "Elliptic Curve DH-256"},
+ { "EC38", "Elliptic Curve DH-384"},
+ { "EC52", "Elliptic Curve DH-521"},
+ { "Mult", "Multistream mode"},
+ { NULL, NULL }
};
const value_string zrtp_error_vals[] =
@@ -270,13 +269,13 @@ dissect_Conf2ACK(packet_info *pinfo);
static void
dissect_HelloACK( packet_info *pinfo);
static void
-dissect_GoClear(tvbuff_t *tvb,packet_info *pinfo, proto_tree *zrtp_tree);
+dissect_GoClear(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree);
static void
dissect_Error(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree);
static void
-dissect_Confirm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree,int part);
+dissect_Confirm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree, int part);
static void
-dissect_DHPart(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree,int part);
+dissect_DHPart(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree, int part);
static void
dissect_SASrelay(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree);
static void
@@ -288,10 +287,10 @@ dissect_PingACK(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree);
static const gchar *
-key_to_val(const gchar *key, int keylen, const value_string_keyval *kv, const gchar *fmt){
- int i=0;
+key_to_val(const gchar *key, int keylen, const value_string_keyval *kv, const gchar *fmt) {
+ int i = 0;
while (kv[i].key) {
- if (!strncmp(kv[i].key, key, keylen)){
+ if (!strncmp(kv[i].key, key, keylen)) {
return(kv[i].val);
}
i++;
@@ -300,11 +299,11 @@ key_to_val(const gchar *key, int keylen, const value_string_keyval *kv, const gc
}
static const gchar *
-check_valid_version(const gchar *version){
- int i=0;
+check_valid_version(const gchar *version) {
+ int i = 0;
int match_size = (version[0] == '0') ? 4 : 3;
while (valid_zrtp_versions[i].version) {
- if (!strncmp(valid_zrtp_versions[i].version, version, match_size)){
+ if (!strncmp(valid_zrtp_versions[i].version, version, match_size)) {
return(valid_zrtp_versions[i].version);
}
i++;
@@ -316,125 +315,125 @@ check_valid_version(const gchar *version){
static void
dissect_zrtp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
- proto_tree *zrtp_tree;
- proto_tree *zrtp_msg_tree;
- proto_tree *zrtp_msg_data_tree;
- proto_tree *checksum_tree;
- proto_item *ti;
- int linelen;
- int checksum_offset;
- unsigned char message_type[9];
- unsigned int prime_offset = 0;
- unsigned int msg_offset = 12;
- guint32 sent_crc, calc_crc;
+ proto_tree *zrtp_tree;
+ proto_tree *zrtp_msg_tree;
+ proto_tree *zrtp_msg_data_tree;
+ proto_tree *checksum_tree;
+ proto_item *ti;
+ int linelen;
+ int checksum_offset;
+ unsigned char message_type[9];
+ unsigned int prime_offset = 0;
+ unsigned int msg_offset = 12;
+ guint32 sent_crc, calc_crc;
col_set_str(pinfo->cinfo, COL_PROTOCOL, "ZRTP");
col_set_str(pinfo->cinfo, COL_INFO, "Unknown ZRTP Packet");
- ti = proto_tree_add_protocol_format(tree,proto_zrtp,tvb,0,-1,"ZRTP protocol");
- zrtp_tree = proto_item_add_subtree(ti,ett_zrtp);
+ ti = proto_tree_add_protocol_format(tree, proto_zrtp, tvb, 0, -1, "ZRTP protocol");
+ zrtp_tree = proto_item_add_subtree(ti, ett_zrtp);
- proto_tree_add_item(zrtp_tree,hf_zrtp_rtpversion,tvb,prime_offset+0,1,ENC_BIG_ENDIAN);
- proto_tree_add_item(zrtp_tree,hf_zrtp_rtppadding,tvb,prime_offset+0,1,ENC_BIG_ENDIAN);
- proto_tree_add_item(zrtp_tree,hf_zrtp_rtpextension,tvb,prime_offset+0,1,ENC_BIG_ENDIAN);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_rtpversion, tvb, prime_offset+0, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_rtppadding, tvb, prime_offset+0, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_rtpextension, tvb, prime_offset+0, 1, ENC_BIG_ENDIAN);
- proto_tree_add_item(zrtp_tree,hf_zrtp_sequence,tvb,prime_offset+2,2,ENC_BIG_ENDIAN);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_sequence, tvb, prime_offset+2, 2, ENC_BIG_ENDIAN);
- proto_tree_add_item(zrtp_tree,hf_zrtp_cookie,tvb,prime_offset+4,4,ENC_ASCII|ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_cookie, tvb, prime_offset+4, 4, ENC_ASCII|ENC_NA);
- proto_tree_add_item(zrtp_tree,hf_zrtp_source_id,tvb,prime_offset+8,4,ENC_BIG_ENDIAN);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_source_id, tvb, prime_offset+8, 4, ENC_BIG_ENDIAN);
- linelen = tvb_reported_length_remaining(tvb,msg_offset);
+ linelen = tvb_reported_length_remaining(tvb, msg_offset);
checksum_offset = linelen-4;
- ti = proto_tree_add_protocol_format(zrtp_tree,proto_zrtp,tvb,msg_offset,linelen-4,"Message");
- zrtp_msg_tree = proto_item_add_subtree(ti,ett_zrtp_msg);
+ ti = proto_tree_add_protocol_format(zrtp_tree, proto_zrtp, tvb, msg_offset, linelen-4, "Message");
+ zrtp_msg_tree = proto_item_add_subtree(ti, ett_zrtp_msg);
- proto_tree_add_item(zrtp_msg_tree,hf_zrtp_signature,tvb,msg_offset+0,2,ENC_BIG_ENDIAN);
+ proto_tree_add_item(zrtp_msg_tree, hf_zrtp_signature, tvb, msg_offset+0, 2, ENC_BIG_ENDIAN);
- proto_tree_add_item(zrtp_msg_tree,hf_zrtp_msg_length,tvb,msg_offset+2,2,ENC_BIG_ENDIAN);
+ proto_tree_add_item(zrtp_msg_tree, hf_zrtp_msg_length, tvb, msg_offset+2, 2, ENC_BIG_ENDIAN);
- tvb_memcpy(tvb,(void *)message_type,msg_offset+4,8);
+ tvb_memcpy(tvb, (void *)message_type, msg_offset+4, 8);
message_type[8] = '\0';
- proto_tree_add_item(zrtp_msg_tree,hf_zrtp_msg_type,tvb,msg_offset+4,8,ENC_ASCII|ENC_NA);
+ proto_tree_add_item(zrtp_msg_tree, hf_zrtp_msg_type, tvb, msg_offset+4, 8, ENC_ASCII|ENC_NA);
- linelen = tvb_reported_length_remaining(tvb,msg_offset+12);
+ linelen = tvb_reported_length_remaining(tvb, msg_offset+12);
- if (!strncmp(message_type,"Hello ",8)){
- ti = proto_tree_add_protocol_format(zrtp_msg_tree,proto_zrtp,tvb,msg_offset+12,linelen-4,"Data");
- zrtp_msg_data_tree = proto_item_add_subtree(ti,ett_zrtp_msg_data);
- dissect_Hello(tvb,pinfo,zrtp_msg_data_tree);
- } else if (!strncmp(message_type,"HelloACK",8)){
+ if (!strncmp(message_type, "Hello ", 8)) {
+ ti = proto_tree_add_protocol_format(zrtp_msg_tree, proto_zrtp, tvb, msg_offset+12, linelen-4, "Data");
+ zrtp_msg_data_tree = proto_item_add_subtree(ti, ett_zrtp_msg_data);
+ dissect_Hello(tvb, pinfo, zrtp_msg_data_tree);
+ } else if (!strncmp(message_type, "HelloACK", 8)) {
dissect_HelloACK(pinfo);
- } else if (!strncmp(message_type,"Commit ",8)){
- ti = proto_tree_add_protocol_format(zrtp_msg_tree,proto_zrtp,tvb,msg_offset+12,linelen-4,"Data");
- zrtp_msg_data_tree = proto_item_add_subtree(ti,ett_zrtp_msg_data);
- dissect_Commit(tvb,pinfo,zrtp_msg_data_tree);
- } else if (!strncmp(message_type,"DHPart1 ",8)){
- ti = proto_tree_add_protocol_format(zrtp_msg_tree,proto_zrtp,tvb,msg_offset+12,linelen-4,"Data");
- zrtp_msg_data_tree = proto_item_add_subtree(ti,ett_zrtp_msg_data);
- dissect_DHPart(tvb,pinfo,zrtp_msg_data_tree,1);
- } else if (!strncmp(message_type,"DHPart2 ",8)){
- ti = proto_tree_add_protocol_format(zrtp_msg_tree,proto_zrtp,tvb,msg_offset+12,linelen-4,"Data");
- zrtp_msg_data_tree = proto_item_add_subtree(ti,ett_zrtp_msg_data);
- dissect_DHPart(tvb,pinfo,zrtp_msg_data_tree,2);
- } else if (!strncmp(message_type,"Confirm1",8)){
- ti = proto_tree_add_protocol_format(zrtp_msg_tree,proto_zrtp,tvb,msg_offset+12,linelen-4,"Data");
- zrtp_msg_data_tree = proto_item_add_subtree(ti,ett_zrtp_msg_data);
- dissect_Confirm(tvb,pinfo,zrtp_msg_data_tree,1);
- } else if (!strncmp(message_type,"Confirm2",8)){
- ti = proto_tree_add_protocol_format(zrtp_msg_tree,proto_zrtp,tvb,msg_offset+12,linelen-4,"Data");
- zrtp_msg_data_tree = proto_item_add_subtree(ti,ett_zrtp_msg_data);
- dissect_Confirm(tvb,pinfo,zrtp_msg_data_tree,2);
- } else if (!strncmp(message_type,"Conf2ACK",8)){
+ } else if (!strncmp(message_type, "Commit ", 8)) {
+ ti = proto_tree_add_protocol_format(zrtp_msg_tree, proto_zrtp, tvb, msg_offset+12, linelen-4, "Data");
+ zrtp_msg_data_tree = proto_item_add_subtree(ti, ett_zrtp_msg_data);
+ dissect_Commit(tvb, pinfo, zrtp_msg_data_tree);
+ } else if (!strncmp(message_type, "DHPart1 ", 8)) {
+ ti = proto_tree_add_protocol_format(zrtp_msg_tree, proto_zrtp, tvb, msg_offset+12, linelen-4, "Data");
+ zrtp_msg_data_tree = proto_item_add_subtree(ti, ett_zrtp_msg_data);
+ dissect_DHPart(tvb, pinfo, zrtp_msg_data_tree, 1);
+ } else if (!strncmp(message_type, "DHPart2 ", 8)) {
+ ti = proto_tree_add_protocol_format(zrtp_msg_tree, proto_zrtp, tvb, msg_offset+12, linelen-4, "Data");
+ zrtp_msg_data_tree = proto_item_add_subtree(ti, ett_zrtp_msg_data);
+ dissect_DHPart(tvb, pinfo, zrtp_msg_data_tree, 2);
+ } else if (!strncmp(message_type, "Confirm1", 8)) {
+ ti = proto_tree_add_protocol_format(zrtp_msg_tree, proto_zrtp, tvb, msg_offset+12, linelen-4, "Data");
+ zrtp_msg_data_tree = proto_item_add_subtree(ti, ett_zrtp_msg_data);
+ dissect_Confirm(tvb, pinfo, zrtp_msg_data_tree, 1);
+ } else if (!strncmp(message_type, "Confirm2", 8)) {
+ ti = proto_tree_add_protocol_format(zrtp_msg_tree, proto_zrtp, tvb, msg_offset+12, linelen-4, "Data");
+ zrtp_msg_data_tree = proto_item_add_subtree(ti, ett_zrtp_msg_data);
+ dissect_Confirm(tvb, pinfo, zrtp_msg_data_tree, 2);
+ } else if (!strncmp(message_type, "Conf2ACK", 8)) {
dissect_Conf2ACK(pinfo);
- } else if (!strncmp(message_type,"Error ",8)){
- ti = proto_tree_add_protocol_format(zrtp_msg_tree,proto_zrtp,tvb,msg_offset+12,linelen-4,"Data");
- zrtp_msg_data_tree = proto_item_add_subtree(ti,ett_zrtp_msg_data);
- dissect_Error(tvb,pinfo,zrtp_msg_data_tree);
- } else if (!strncmp(message_type,"ErrorACK",8)){
+ } else if (!strncmp(message_type, "Error ", 8)) {
+ ti = proto_tree_add_protocol_format(zrtp_msg_tree, proto_zrtp, tvb, msg_offset+12, linelen-4, "Data");
+ zrtp_msg_data_tree = proto_item_add_subtree(ti, ett_zrtp_msg_data);
+ dissect_Error(tvb, pinfo, zrtp_msg_data_tree);
+ } else if (!strncmp(message_type, "ErrorACK", 8)) {
dissect_ErrorACK(pinfo);
- } else if (!strncmp(message_type,"GoClear ",8)){
- ti = proto_tree_add_protocol_format(zrtp_msg_tree,proto_zrtp,tvb,msg_offset+12,linelen-4,"Data");
- zrtp_msg_data_tree = proto_item_add_subtree(ti,ett_zrtp_msg_data);
- dissect_GoClear(tvb,pinfo,zrtp_msg_data_tree);
- } else if (!strncmp(message_type,"ClearACK",8)){
+ } else if (!strncmp(message_type, "GoClear ", 8)) {
+ ti = proto_tree_add_protocol_format(zrtp_msg_tree, proto_zrtp, tvb, msg_offset+12, linelen-4, "Data");
+ zrtp_msg_data_tree = proto_item_add_subtree(ti, ett_zrtp_msg_data);
+ dissect_GoClear(tvb, pinfo, zrtp_msg_data_tree);
+ } else if (!strncmp(message_type, "ClearACK", 8)) {
dissect_ClearACK(pinfo);
- } else if (!strncmp(message_type,"SASrelay",8)){
- ti = proto_tree_add_protocol_format(zrtp_msg_tree,proto_zrtp,tvb,msg_offset+12,linelen-4,"Data");
- zrtp_msg_data_tree = proto_item_add_subtree(ti,ett_zrtp_msg_data);
- dissect_SASrelay(tvb,pinfo,zrtp_msg_data_tree);
- } else if (!strncmp(message_type,"RelayACK",8)){
+ } else if (!strncmp(message_type, "SASrelay", 8)) {
+ ti = proto_tree_add_protocol_format(zrtp_msg_tree, proto_zrtp, tvb, msg_offset+12, linelen-4, "Data");
+ zrtp_msg_data_tree = proto_item_add_subtree(ti, ett_zrtp_msg_data);
+ dissect_SASrelay(tvb, pinfo, zrtp_msg_data_tree);
+ } else if (!strncmp(message_type, "RelayACK", 8)) {
dissect_RelayACK(pinfo);
- } else if (!strncmp(message_type,"Ping ",8)){
- ti = proto_tree_add_protocol_format(zrtp_msg_tree,proto_zrtp,tvb,msg_offset+12,linelen-4,"Data");
- zrtp_msg_data_tree = proto_item_add_subtree(ti,ett_zrtp_msg_data);
- dissect_Ping(tvb,pinfo,zrtp_msg_data_tree);
- } else if (!strncmp(message_type,"PingACK ",8)){
- ti = proto_tree_add_protocol_format(zrtp_msg_tree,proto_zrtp,tvb,msg_offset+12,linelen-4,"Data");
- zrtp_msg_data_tree = proto_item_add_subtree(ti,ett_zrtp_msg_data);
- dissect_PingACK(tvb,pinfo,zrtp_msg_data_tree);
+ } else if (!strncmp(message_type, "Ping ", 8)) {
+ ti = proto_tree_add_protocol_format(zrtp_msg_tree, proto_zrtp, tvb, msg_offset+12, linelen-4, "Data");
+ zrtp_msg_data_tree = proto_item_add_subtree(ti, ett_zrtp_msg_data);
+ dissect_Ping(tvb, pinfo, zrtp_msg_data_tree);
+ } else if (!strncmp(message_type, "PingACK ", 8)) {
+ ti = proto_tree_add_protocol_format(zrtp_msg_tree, proto_zrtp, tvb, msg_offset+12, linelen-4, "Data");
+ zrtp_msg_data_tree = proto_item_add_subtree(ti, ett_zrtp_msg_data);
+ dissect_PingACK(tvb, pinfo, zrtp_msg_data_tree);
}
- sent_crc = tvb_get_ntohl(tvb,msg_offset+checksum_offset);
- calc_crc = ~crc32c_calculate(tvb_get_ptr(tvb,0,msg_offset+checksum_offset),msg_offset+checksum_offset,CRC32C_PRELOAD);
+ sent_crc = tvb_get_ntohl(tvb, msg_offset+checksum_offset);
+ calc_crc = ~crc32c_calculate(tvb_get_ptr(tvb, 0, msg_offset+checksum_offset), msg_offset+checksum_offset, CRC32C_PRELOAD);
if (sent_crc == calc_crc) {
ti = proto_tree_add_uint_format_value(zrtp_tree, hf_zrtp_checksum, tvb, msg_offset+checksum_offset, 4, sent_crc,
"0x%04x [correct]", sent_crc);
checksum_tree = proto_item_add_subtree(ti, ett_zrtp_checksum);
- ti = proto_tree_add_boolean(checksum_tree, hf_zrtp_checksum_good, tvb, msg_offset+checksum_offset, 4, TRUE);
+ ti = proto_tree_add_boolean(checksum_tree, hf_zrtp_checksum_good, tvb, msg_offset+checksum_offset, 4, TRUE);
PROTO_ITEM_SET_GENERATED(ti);
- ti = proto_tree_add_boolean(checksum_tree, hf_zrtp_checksum_bad, tvb, msg_offset+checksum_offset, 4, FALSE);
+ ti = proto_tree_add_boolean(checksum_tree, hf_zrtp_checksum_bad, tvb, msg_offset+checksum_offset, 4, FALSE);
PROTO_ITEM_SET_GENERATED(ti);
} else {
ti = proto_tree_add_uint_format_value(zrtp_tree, hf_zrtp_checksum, tvb, msg_offset+checksum_offset, 4, sent_crc,
"0x%04x [incorrect, should be 0x%04x]", sent_crc, calc_crc);
checksum_tree = proto_item_add_subtree(ti, ett_zrtp_checksum);
- ti = proto_tree_add_boolean(checksum_tree, hf_zrtp_checksum_good, tvb, msg_offset+checksum_offset, 4, FALSE);
+ ti = proto_tree_add_boolean(checksum_tree, hf_zrtp_checksum_good, tvb, msg_offset+checksum_offset, 4, FALSE);
PROTO_ITEM_SET_GENERATED(ti);
- ti = proto_tree_add_boolean(checksum_tree, hf_zrtp_checksum_bad, tvb, msg_offset+checksum_offset, 4, TRUE);
+ ti = proto_tree_add_boolean(checksum_tree, hf_zrtp_checksum_bad, tvb, msg_offset+checksum_offset, 4, TRUE);
PROTO_ITEM_SET_GENERATED(ti);
}
@@ -488,254 +487,254 @@ dissect_HelloACK(packet_info *pinfo) {
static void
dissect_Ping(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree) {
- unsigned int data_offset=24;
+ unsigned int data_offset = 24;
col_set_str(pinfo->cinfo, COL_INFO, "Ping Packet");
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_ping_version,tvb,data_offset,4,ENC_ASCII|ENC_NA);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_ping_endpointhash,tvb,data_offset+4,8,ENC_BIG_ENDIAN);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_ping_version, tvb, data_offset, 4, ENC_ASCII|ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_ping_endpointhash, tvb, data_offset+4, 8, ENC_BIG_ENDIAN);
}
static void
dissect_PingACK(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree) {
- unsigned int data_offset=24;
+ unsigned int data_offset = 24;
col_set_str(pinfo->cinfo, COL_INFO, "PingACK Packet");
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_ping_version,tvb,data_offset,4,ENC_ASCII|ENC_NA);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_pingack_endpointhash,tvb,data_offset+4,8,ENC_BIG_ENDIAN);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_ping_endpointhash,tvb,data_offset+12,8,ENC_BIG_ENDIAN);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_ping_ssrc,tvb,data_offset+20,4,ENC_BIG_ENDIAN);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_ping_version, tvb, data_offset, 4, ENC_ASCII|ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_pingack_endpointhash, tvb, data_offset+4, 8, ENC_BIG_ENDIAN);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_ping_endpointhash, tvb, data_offset+12, 8, ENC_BIG_ENDIAN);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_ping_ssrc, tvb, data_offset+20, 4, ENC_BIG_ENDIAN);
}
static void
dissect_GoClear(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree) {
- unsigned int data_offset=24;
+ unsigned int data_offset = 24;
col_set_str(pinfo->cinfo, COL_INFO, "GoClear Packet");
/* Now we should clear the SRT(C)P session... */
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_hmac,tvb,data_offset+0,8,ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_hmac, tvb, data_offset+0, 8, ENC_NA);
}
static void
dissect_Error(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree) {
- unsigned int data_offset=24;
+ unsigned int data_offset = 24;
col_set_str(pinfo->cinfo, COL_INFO, "Error Packet");
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_error,tvb,data_offset,4,ENC_BIG_ENDIAN);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_error, tvb, data_offset, 4, ENC_BIG_ENDIAN);
}
static void
-dissect_Confirm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree,int part) {
- unsigned int data_offset=24;
- int linelen;
+dissect_Confirm(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree, int part) {
+ unsigned int data_offset = 24;
+ int linelen;
col_add_fstr(pinfo->cinfo, COL_INFO, (part == 1) ? "Confirm1 Packet" : "Confirm2 Packet");
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_hmac,tvb,data_offset+0,8,ENC_NA);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_cfb,tvb,data_offset+8,16,ENC_NA);
- linelen = tvb_reported_length_remaining(tvb,data_offset+24);
- proto_tree_add_protocol_format(zrtp_tree,proto_zrtp,tvb,data_offset+24,linelen-4,"Encrypted Data");
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_hmac, tvb, data_offset+0, 8, ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_cfb, tvb, data_offset+8, 16, ENC_NA);
+ linelen = tvb_reported_length_remaining(tvb, data_offset+24);
+ proto_tree_add_protocol_format(zrtp_tree, proto_zrtp, tvb, data_offset+24, linelen-4, "Encrypted Data");
}
static void
dissect_SASrelay(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree) {
- unsigned int data_offset=24;
- int linelen;
+ unsigned int data_offset = 24;
+ int linelen;
col_set_str(pinfo->cinfo, COL_INFO, "SASrelay Packet");
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_hmac,tvb,data_offset+0,8,ENC_NA);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_cfb,tvb,data_offset+8,16,ENC_NA);
- linelen = tvb_reported_length_remaining(tvb,data_offset+24);
- proto_tree_add_protocol_format(zrtp_tree,proto_zrtp,tvb,data_offset+24,linelen-4,"Encrypted Data");
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_hmac, tvb, data_offset+0, 8, ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_cfb, tvb, data_offset+8, 16, ENC_NA);
+ linelen = tvb_reported_length_remaining(tvb, data_offset+24);
+ proto_tree_add_protocol_format(zrtp_tree, proto_zrtp, tvb, data_offset+24, linelen-4, "Encrypted Data");
}
static void
-dissect_DHPart(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree,int part) {
- unsigned int msg_offset=12;
- unsigned int data_offset=56;
- int linelen, pvr_len;
+dissect_DHPart(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree, int part) {
+ unsigned int msg_offset = 12;
+ unsigned int data_offset = 56;
+ int linelen, pvr_len;
col_add_fstr(pinfo->cinfo, COL_INFO, (part == 1) ? "DHPart1 Packet" : "DHPart2 Packet");
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_hash_image,tvb,msg_offset+12,32,ENC_NA);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_rs1ID,tvb,data_offset+0,8,ENC_NA);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_rs2ID,tvb,data_offset+8,8,ENC_NA);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_auxs,tvb,data_offset+16,8,ENC_NA);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_pbxs,tvb,data_offset+24,8,ENC_NA);
- linelen = tvb_reported_length_remaining(tvb,data_offset+32);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_hash_image, tvb, msg_offset+12, 32, ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_rs1ID, tvb, data_offset+0, 8, ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_rs2ID, tvb, data_offset+8, 8, ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_auxs, tvb, data_offset+16, 8, ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_pbxs, tvb, data_offset+24, 8, ENC_NA);
+ linelen = tvb_reported_length_remaining(tvb, data_offset+32);
pvr_len = linelen-8-4;
- proto_tree_add_protocol_format(zrtp_tree,proto_zrtp,tvb,data_offset+32,pvr_len,(part==1)?"pvr Data":"pvi Data");
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_hmac,tvb,data_offset+32+pvr_len,8,ENC_NA);
+ proto_tree_add_protocol_format(zrtp_tree, proto_zrtp, tvb, data_offset+32, pvr_len, (part==1) ? "pvr Data" : "pvi Data");
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_hmac, tvb, data_offset+32+pvr_len, 8, ENC_NA);
}
static void
dissect_Commit(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree) {
- unsigned int msg_offset=12;
- unsigned int data_offset=56;
+ unsigned int msg_offset = 12;
+ unsigned int data_offset = 56;
unsigned char value[5];
- int key_type = 0;
+ int key_type = 0;
/*
0 - other type
1 - "Mult"
2 - "Prsh"
*/
- unsigned int offset;
+ unsigned int offset;
col_set_str(pinfo->cinfo, COL_INFO, "Commit Packet");
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_hash_image,tvb,msg_offset+12,32,ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_hash_image, tvb, msg_offset+12, 32, ENC_NA);
/* ZID */
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_zid,tvb,data_offset+0,12,ENC_NA);
- tvb_memcpy(tvb,(void *)value,data_offset+12,4);
- value[4]='\0';
- proto_tree_add_string_format(zrtp_tree,hf_zrtp_msg_hash,tvb,data_offset+12,4,value,
- "Hash: %s",key_to_val(value,4,zrtp_hash_type_vals,"Unknown hash type %s"));
- tvb_memcpy(tvb,(void *)value,data_offset+16,4);
- value[4]='\0';
- proto_tree_add_string_format(zrtp_tree,hf_zrtp_msg_cipher,tvb,data_offset+16,4,value,"Cipher: %s",
- key_to_val(value,4,zrtp_cipher_type_vals,"Unknown cipher type %s"));
- tvb_memcpy(tvb,(void *)value,data_offset+20,4);
- value[4]='\0';
- proto_tree_add_string_format(zrtp_tree,hf_zrtp_msg_at,tvb,data_offset+20,4,value,
- "Auth tag: %s",key_to_val(value,4,zrtp_auth_tag_vals,"Unknown auth tag %s"));
- tvb_memcpy(tvb,(void *)value,data_offset+24,4);
- value[4]='\0';
- proto_tree_add_string_format(zrtp_tree,hf_zrtp_msg_keya,tvb,data_offset+24,4,value,
- "Key agreement: %s",key_to_val(value,4,zrtp_key_agreement_vals,"Unknown key agreement %s"));
-
- if(!strncmp(value, "Mult", 4)){
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_zid, tvb, data_offset+0, 12, ENC_NA);
+ tvb_memcpy(tvb, (void *)value, data_offset+12, 4);
+ value[4] = '\0';
+ proto_tree_add_string_format(zrtp_tree, hf_zrtp_msg_hash, tvb, data_offset+12, 4, value,
+ "Hash: %s", key_to_val(value, 4, zrtp_hash_type_vals, "Unknown hash type %s"));
+ tvb_memcpy(tvb, (void *)value, data_offset+16, 4);
+ value[4] = '\0';
+ proto_tree_add_string_format(zrtp_tree, hf_zrtp_msg_cipher, tvb, data_offset+16, 4, value, "Cipher: %s",
+ key_to_val(value, 4, zrtp_cipher_type_vals, "Unknown cipher type %s"));
+ tvb_memcpy(tvb, (void *)value, data_offset+20, 4);
+ value[4] = '\0';
+ proto_tree_add_string_format(zrtp_tree, hf_zrtp_msg_at, tvb, data_offset+20, 4, value,
+ "Auth tag: %s", key_to_val(value, 4, zrtp_auth_tag_vals, "Unknown auth tag %s"));
+ tvb_memcpy(tvb, (void *)value, data_offset+24, 4);
+ value[4] = '\0';
+ proto_tree_add_string_format(zrtp_tree, hf_zrtp_msg_keya, tvb, data_offset+24, 4, value,
+ "Key agreement: %s", key_to_val(value, 4, zrtp_key_agreement_vals, "Unknown key agreement %s"));
+
+ if(!strncmp(value, "Mult", 4)) {
key_type = 1;
- } else if (!strncmp(value, "Prsh", 4)){
+ } else if (!strncmp(value, "Prsh", 4)) {
key_type = 2;
}
- tvb_memcpy(tvb,(void *)value,data_offset+28,4);
- value[4]='\0';
- proto_tree_add_string_format(zrtp_tree,hf_zrtp_msg_sas,tvb,data_offset+28,4,value,
- "SAS type: %s",key_to_val(value,4,zrtp_sas_type_vals,"Unknown SAS type %s"));
+ tvb_memcpy(tvb, (void *)value, data_offset+28, 4);
+ value[4] = '\0';
+ proto_tree_add_string_format(zrtp_tree, hf_zrtp_msg_sas, tvb, data_offset+28, 4, value,
+ "SAS type: %s", key_to_val(value, 4, zrtp_sas_type_vals, "Unknown SAS type %s"));
- switch(key_type){
+ switch (key_type) {
case 1: /*
- Mult
- */
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_nonce,tvb,data_offset+32,16,ENC_NA);
+ Mult
+ */
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_nonce, tvb, data_offset+32, 16, ENC_NA);
offset = 48;
break;
case 2: /*
- Prsh
- */
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_nonce,tvb,data_offset+32,16,ENC_NA);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_key_id,tvb,data_offset+48,8,ENC_NA);
+ Prsh
+ */
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_nonce, tvb, data_offset+32, 16, ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_key_id, tvb, data_offset+48, 8, ENC_NA);
offset = 56;
break;
default: /*
- other
- */
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_hvi,tvb,data_offset+32, 32, ENC_NA);
+ other
+ */
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_hvi, tvb, data_offset+32, 32, ENC_NA);
offset = 64;
break;
}
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_hmac,tvb,data_offset+offset,8,ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_hmac, tvb, data_offset+offset, 8, ENC_NA);
}
static void
dissect_Hello(tvbuff_t *tvb, packet_info *pinfo, proto_tree *zrtp_tree) {
- proto_item *ti;
- unsigned int msg_offset = 12;
- unsigned int data_offset = 88;
- guint8 val_b;
- unsigned int i;
- unsigned int run_offset;
- unsigned int hc,cc,ac,kc,sc;
- unsigned int vhc,vcc,vac,vkc,vsc;
- unsigned char value[5];
- unsigned char version_str[5];
- proto_tree *tmp_tree;
+ proto_item *ti;
+ unsigned int msg_offset = 12;
+ unsigned int data_offset = 88;
+ guint8 val_b;
+ unsigned int i;
+ unsigned int run_offset;
+ unsigned int hc, cc, ac, kc, sc;
+ unsigned int vhc, vcc, vac, vkc, vsc;
+ unsigned char value[5];
+ unsigned char version_str[5];
+ proto_tree *tmp_tree;
col_set_str(pinfo->cinfo, COL_INFO, "Hello Packet");
- tvb_memcpy(tvb,version_str,msg_offset+12,4);
- version_str[4]='\0';
- if (check_valid_version(version_str) == NULL){
+ tvb_memcpy(tvb, version_str, msg_offset+12, 4);
+ version_str[4] = '\0';
+ if (check_valid_version(version_str) == NULL) {
col_set_str(pinfo->cinfo, COL_INFO, "Unsupported version of ZRTP protocol");
}
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_version,tvb,msg_offset+12,4,ENC_ASCII|ENC_NA);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_client_id,tvb,msg_offset+16,16,ENC_ASCII|ENC_NA);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_hash_image,tvb,msg_offset+32,32,ENC_NA);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_zid,tvb,msg_offset+64,12,ENC_NA);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_sigcap,tvb,data_offset+0,1,ENC_BIG_ENDIAN);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_mitm,tvb,data_offset+0,1,ENC_BIG_ENDIAN);
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_passive,tvb,data_offset+0,1,ENC_BIG_ENDIAN);
-
- val_b = tvb_get_guint8(tvb,data_offset+1);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_version, tvb, msg_offset+12, 4, ENC_ASCII|ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_client_id, tvb, msg_offset+16, 16, ENC_ASCII|ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_hash_image, tvb, msg_offset+32, 32, ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_zid, tvb, msg_offset+64, 12, ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_sigcap, tvb, data_offset+0, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_mitm, tvb, data_offset+0, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_passive, tvb, data_offset+0, 1, ENC_BIG_ENDIAN);
+
+ val_b = tvb_get_guint8(tvb, data_offset+1);
hc = val_b & 0x0F;
vhc = hc;
- val_b = tvb_get_guint8(tvb,data_offset+2);
+ val_b = tvb_get_guint8(tvb, data_offset+2);
cc = val_b & 0xF0;
ac = val_b & 0x0F;
vcc = cc >> 4;
vac = ac;
- val_b = tvb_get_guint8(tvb,data_offset+3);
+ val_b = tvb_get_guint8(tvb, data_offset+3);
kc = val_b & 0xF0;
sc = val_b & 0x0F;
vkc = kc >> 4;
vsc = sc;
- ti=proto_tree_add_uint_format(zrtp_tree,hf_zrtp_msg_hash_count,tvb,data_offset+1,1,hc,"Hash type count = %d",vhc);
- tmp_tree = proto_item_add_subtree(ti,ett_zrtp_msg_hc);
+ ti = proto_tree_add_uint_format(zrtp_tree, hf_zrtp_msg_hash_count, tvb, data_offset+1, 1, hc, "Hash type count = %d", vhc);
+ tmp_tree = proto_item_add_subtree(ti, ett_zrtp_msg_hc);
run_offset = data_offset+4;
- for(i=0;i<vhc;i++){
- tvb_memcpy(tvb,(void *)value,run_offset,4);
- value[4]='\0';
- proto_tree_add_string_format(tmp_tree,hf_zrtp_msg_hash,tvb,run_offset,4,value,
- "Hash[%d]: %s",i,key_to_val(value,4,zrtp_hash_type_vals,"Unknown hash type %s"));
- run_offset+=4;
+ for (i=0; i<vhc; i++) {
+ tvb_memcpy(tvb, (void *)value, run_offset, 4);
+ value[4] = '\0';
+ proto_tree_add_string_format(tmp_tree, hf_zrtp_msg_hash, tvb, run_offset, 4, value,
+ "Hash[%d]: %s", i, key_to_val(value, 4, zrtp_hash_type_vals, "Unknown hash type %s"));
+ run_offset += 4;
}
- ti=proto_tree_add_uint_format(zrtp_tree,hf_zrtp_msg_cipher_count,tvb,data_offset+2,1,cc,"Cipher type count = %d",vcc);
- tmp_tree = proto_item_add_subtree(ti,ett_zrtp_msg_cc);
- for(i=0;i<vcc;i++){
- tvb_memcpy(tvb,(void *)value,run_offset,4);
- value[4]='\0';
- proto_tree_add_string_format(tmp_tree,hf_zrtp_msg_cipher,tvb,run_offset,4,value,"Cipher[%d]: %s",i,
- key_to_val(value,4,zrtp_cipher_type_vals,"Unknown cipher type %s"));
- run_offset+=4;
+ ti = proto_tree_add_uint_format(zrtp_tree, hf_zrtp_msg_cipher_count, tvb, data_offset+2, 1, cc, "Cipher type count = %d", vcc);
+ tmp_tree = proto_item_add_subtree(ti, ett_zrtp_msg_cc);
+ for (i=0; i<vcc; i++) {
+ tvb_memcpy(tvb, (void *)value, run_offset, 4);
+ value[4] = '\0';
+ proto_tree_add_string_format(tmp_tree, hf_zrtp_msg_cipher, tvb, run_offset, 4, value, "Cipher[%d]: %s", i,
+ key_to_val(value, 4, zrtp_cipher_type_vals, "Unknown cipher type %s"));
+ run_offset += 4;
}
- ti=proto_tree_add_uint_format(zrtp_tree,hf_zrtp_msg_authtag_count,tvb,data_offset+2,1,ac,"Auth tag count = %d",vac);
- tmp_tree = proto_item_add_subtree(ti,ett_zrtp_msg_ac);
- for(i=0;i<vac;i++){
- tvb_memcpy(tvb,(void *)value,run_offset,4);
- value[4]='\0';
- proto_tree_add_string_format(tmp_tree,hf_zrtp_msg_at,tvb,run_offset,4,value,
- "Auth tag[%d]: %s",i,key_to_val(value,4,zrtp_auth_tag_vals,"Unknown auth tag %s"));
- run_offset+=4;
+ ti = proto_tree_add_uint_format(zrtp_tree, hf_zrtp_msg_authtag_count, tvb, data_offset+2, 1, ac, "Auth tag count = %d", vac);
+ tmp_tree = proto_item_add_subtree(ti, ett_zrtp_msg_ac);
+ for (i=0; i<vac; i++) {
+ tvb_memcpy(tvb, (void *)value, run_offset, 4);
+ value[4] = '\0';
+ proto_tree_add_string_format(tmp_tree, hf_zrtp_msg_at, tvb, run_offset, 4, value,
+ "Auth tag[%d]: %s", i, key_to_val(value, 4, zrtp_auth_tag_vals, "Unknown auth tag %s"));
+ run_offset += 4;
}
- ti=proto_tree_add_uint_format(zrtp_tree,hf_zrtp_msg_key_count,tvb,data_offset+3,1,kc,"Key agreement type count = %d",vkc);
- tmp_tree = proto_item_add_subtree(ti,ett_zrtp_msg_kc);
- for(i=0;i<vkc;i++){
- tvb_memcpy(tvb,(void *)value,run_offset,4);
- value[4]='\0';
- proto_tree_add_string_format(tmp_tree,hf_zrtp_msg_keya,tvb,run_offset,4,value,
- "Key agreement[%d]: %s",i,key_to_val(value,4,zrtp_key_agreement_vals,"Unknown key agreement %s"));
- run_offset+=4;
+ ti = proto_tree_add_uint_format(zrtp_tree, hf_zrtp_msg_key_count, tvb, data_offset+3, 1, kc, "Key agreement type count = %d", vkc);
+ tmp_tree = proto_item_add_subtree(ti, ett_zrtp_msg_kc);
+ for (i=0; i<vkc; i++) {
+ tvb_memcpy(tvb, (void *)value, run_offset, 4);
+ value[4] = '\0';
+ proto_tree_add_string_format(tmp_tree, hf_zrtp_msg_keya, tvb, run_offset, 4, value,
+ "Key agreement[%d]: %s", i, key_to_val(value, 4, zrtp_key_agreement_vals, "Unknown key agreement %s"));
+ run_offset += 4;
}
- ti=proto_tree_add_uint_format(zrtp_tree,hf_zrtp_msg_sas_count,tvb,data_offset+3,1,sc,"SAS type count = %d",vsc);
- tmp_tree = proto_item_add_subtree(ti,ett_zrtp_msg_sc);
- for(i=0;i<vsc;i++){
- tvb_memcpy(tvb,(void *)value,run_offset,4);
- value[4]='\0';
- proto_tree_add_string_format(tmp_tree,hf_zrtp_msg_sas,tvb,run_offset,4,value,
- "SAS type[%d]: %s",i,key_to_val(value,4,zrtp_sas_type_vals,"Unknown SAS type %s"));
- run_offset+=4;
+ ti = proto_tree_add_uint_format(zrtp_tree, hf_zrtp_msg_sas_count, tvb, data_offset+3, 1, sc, "SAS type count = %d", vsc);
+ tmp_tree = proto_item_add_subtree(ti, ett_zrtp_msg_sc);
+ for (i=0; i<vsc; i++) {
+ tvb_memcpy(tvb, (void *)value, run_offset, 4);
+ value[4] = '\0';
+ proto_tree_add_string_format(tmp_tree, hf_zrtp_msg_sas, tvb, run_offset, 4, value,
+ "SAS type[%d]: %s", i, key_to_val(value, 4, zrtp_sas_type_vals, "Unknown SAS type %s"));
+ run_offset += 4;
}
- proto_tree_add_item(zrtp_tree,hf_zrtp_msg_hmac,tvb,run_offset,8,ENC_NA);
+ proto_tree_add_item(zrtp_tree, hf_zrtp_msg_hmac, tvb, run_offset, 8, ENC_NA);
}
void
@@ -769,15 +768,6 @@ proto_register_zrtp(void)
}
},
- {&hf_zrtp_id,
- {
- "ID", "zrtp.id",
- FT_UINT8, BASE_HEX,
- NULL, 0x0,
- NULL, HFILL
- }
- },
-
{&hf_zrtp_sequence,
{
"Sequence", "zrtp.sequence",