aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-hicp.c
diff options
context:
space:
mode:
authorJoão Valverde <j@v6e.pt>2021-11-30 02:53:49 +0000
committerJoão Valverde <j@v6e.pt>2021-12-03 04:35:56 +0000
commit19dcb725b61e384f665ad4b955f3b78f63e626d9 (patch)
tree57befb0e933a566cefc32447df49397189939d75 /epan/dissectors/packet-hicp.c
parent7e99bbf32b73f3dd09c0ee6c1d3ac02a7e988f61 (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-hicp.c')
-rw-r--r--epan/dissectors/packet-hicp.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/epan/dissectors/packet-hicp.c b/epan/dissectors/packet-hicp.c
index a3da0b6d82..48f8cfcc16 100644
--- a/epan/dissectors/packet-hicp.c
+++ b/epan/dissectors/packet-hicp.c
@@ -242,127 +242,127 @@ proto_register_hicp(void)
static hf_register_info hf[] = {
{ &hf_hicp_cmd,
{ "Command", "hicp.cmd",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_proto_version,
{ "Protocol version", "hicp.protoversion",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_fb_type,
{ "Fieldbus type", "hicp.fbtype",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_module_version,
{ "Module version", "hicp.moduleversion",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_mac,
{ "MAC address", "hicp.mac",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_ip,
{ "IP address", "hicp.ip",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_sn,
{ "Subnet mask", "hicp.sn",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_gw,
{ "Gateway address", "hicp.gw",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_dhcp,
{ "DHCP", "hicp.dhcp",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_pswd_required,
{ "Password", "hicp.pswdrequired",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_hn,
{ "Hostname", "hicp.hn",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_dns1,
{ "Primary DNS address", "hicp.dns1",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_dns2,
{ "Secondary DNS", "hicp.dns2",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_ext,
{ "Extended commands supported", "hicp.ext",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_pswd,
{ "Password", "hicp.pswd",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_new_pswd,
{ "New password", "hicp.newpswd",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_new_mac,
{ "New MAC address", "hicp.newmac",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_status,
{ "Status", "hicp.status",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_error,
{ "Error", "hicp.error",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_target,
{ "Target", "hicp.target",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
},
{ &hf_hicp_src,
{ "Source", "hicp.src",
- FT_STRINGZ, STR_ASCII,
+ FT_STRINGZ, BASE_NONE,
NULL, 0x0,
NULL, HFILL }
}