diff options
author | João Valverde <j@v6e.pt> | 2021-11-30 02:53:49 +0000 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2021-12-03 04:35:56 +0000 |
commit | 19dcb725b61e384f665ad4b955f3b78f63e626d9 (patch) | |
tree | 57befb0e933a566cefc32447df49397189939d75 /epan/dissectors/packet-messageanalyzer.c | |
parent | 7e99bbf32b73f3dd09c0ee6c1d3ac02a7e988f61 (diff) |
epan: Remove STR_ASCII and STR_UNICODE
These display bases work to replace unprintable characters so the
name is a misnomer. In addition they are the same option and this
display behaviour is not something that is configurable.
This does not affect encodings because all our internal text strings
need to be valid UTF-8 and the source encoding is specified using
ENC_*.
Remove the assertion for valid UTF-8 in proto.c because
tvb_get_*_string() must return a valid UTF-8 string, always, and we
don't need to assert that, it is expensive.
Diffstat (limited to 'epan/dissectors/packet-messageanalyzer.c')
-rw-r--r-- | epan/dissectors/packet-messageanalyzer.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/epan/dissectors/packet-messageanalyzer.c b/epan/dissectors/packet-messageanalyzer.c index 821f1524a9..3b97ab871c 100644 --- a/epan/dissectors/packet-messageanalyzer.c +++ b/epan/dissectors/packet-messageanalyzer.c @@ -1234,7 +1234,7 @@ void proto_register_message_analyzer(void) }, { &hf_ma_wfp_capture_auth_process_path, { "Payload Length", "message_analyzer.wfp_capture.auth.process_path", - FT_UINT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_UINT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, }; @@ -1245,7 +1245,7 @@ void proto_register_message_analyzer(void) }, { &hf_etw_wfp_capture_driver_name, { "Driver Name", "etw.wfp_capture.driver_name", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_wfp_capture_major_version, { "Major Version", "etw.wfp_capture.major_version", @@ -1269,11 +1269,11 @@ void proto_register_message_analyzer(void) }, { &hf_etw_wfp_capture_driver_error_message, { "Driver Name", "etw.wfp_capture.driver_error_message", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_wfp_capture_callout_error_message, { "Driver Name", "etw.wfp_capture.callout_error_message", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_wfp_capture_nt_status, { "NT Status", "etw.wfp_capture.nt_status", @@ -1316,15 +1316,15 @@ void proto_register_message_analyzer(void) }, { &hf_etw_ndis_source_port_name, { "Source port name", "etw.ndis.source_port_name", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_ndis_source_nic_name, { "Source NIC name", "etw.ndis.source_nic_name", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_ndis_source_nic_type, { "Source NIC type", "etw.ndis.source_nic_type", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_ndis_destination_count, { "Destination count", "etw.ndis.destination_count", @@ -1336,15 +1336,15 @@ void proto_register_message_analyzer(void) }, { &hf_etw_ndis_destination_port_name, { "Destination port name", "etw.ndis.destination_port_name", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_ndis_destination_nic_name, { "Destination NIC name", "etw.ndis.destination_nic_name", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_ndis_destination_nic_type, { "Destination NIC type", "etw.ndis.destination_nic_type", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_ndis_oob_data_size, { "OOB data size", "etw.ndis.oob_data_size", @@ -1360,19 +1360,19 @@ void proto_register_message_analyzer(void) }, { &hf_etw_ndis_friendly_name, { "Friendly name", "etw.ndis.friendly_name", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_ndis_unique_name, { "Unique name", "etw.ndis.unique_name", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_ndis_service_name, { "Service name", "etw.ndis.service_name", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_ndis_version, { "Version", "etw.ndis.version", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_ndis_media_type, { "Media types", "etw.ndis.media_type", @@ -1436,15 +1436,15 @@ void proto_register_message_analyzer(void) }, { &hf_etw_ndis_param_str, { "Param String", "etw.ndis.param_str", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_ndis_description, { "Description", "etw.ndis.description", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_ndis_source_name, { "Source name", "etw.ndis.source_name", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_ndis_if_index, { "IfIndex", "etw.ndis.if_index", @@ -1460,7 +1460,7 @@ void proto_register_message_analyzer(void) }, { &hf_etw_ndis_layer_name, { "Layer name", "etw.ndis.layer_name", - FT_STRING, STR_UNICODE, NULL, 0x0, NULL, HFILL } + FT_STRING, BASE_NONE, NULL, 0x0, NULL, HFILL } }, { &hf_etw_ndis_keyword, { "Keyword", "etw.ndis.keyword", |