aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-wsp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-05-08 14:15:02 -0700
committerGuy Harris <guy@alum.mit.edu>2016-05-08 21:15:43 +0000
commitd4339c6fbdc3a44d9002afa0d007a4f3683d5694 (patch)
tree659cae2362cfd75cb95f6ba655a04fb04016fdfc /epan/dissectors/packet-wsp.c
parentb9368fcdb8226ff55365e85a71b0a581faf8c6c6 (diff)
Remove the MIBenum stuff from the WAP code.
MIBenum values are from an IANA registry, not a WAP specification; add <epan/iana_charsets.h> to declare the MIBenum -> Wireshark encoding mapper routine and the value_string_ext for MIBenum values, and epan/iana_charsets.c to define them. Change-Id: I6d9c82cd011bd5211c688322e6423de38e161f41 Reviewed-on: https://code.wireshark.org/review/15298 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dissectors/packet-wsp.c')
-rw-r--r--epan/dissectors/packet-wsp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-wsp.c b/epan/dissectors/packet-wsp.c
index 650e07201d..bef60dcc67 100644
--- a/epan/dissectors/packet-wsp.c
+++ b/epan/dissectors/packet-wsp.c
@@ -46,6 +46,7 @@
#include <epan/to_str.h>
#include <epan/expert.h>
#include <epan/conversation.h>
+#include <epan/iana_charsets.h>
#include <wsutil/str_util.h>
@@ -1752,7 +1753,7 @@ wkh_accept_x_q_header_func(proto_tree *tree, tvbuff_t *tvb, guint32 hdr_start, p
* | ( Value-length ( Token-text | Integer-value ) [ Q-value ] )
*/
wkh_accept_x_q_header(accept_charset, "Accept-Charset",
- &wap_mib_enum_vals_character_sets_ext, "character set")
+ &mibenum_vals_character_sets_ext, "character set")
/*
* Accept-language-value =
* Short-integer
@@ -3342,7 +3343,7 @@ wkh_tod_value_header(openwave_x_up_proxy_tod,
/* Openwave accept_x_q header */
wkh_accept_x_q_header(openwave_x_up_proxy_trans_charset,
"x-up-proxy-trans-charset",
- &wap_mib_enum_vals_character_sets_ext, "character set")
+ &mibenum_vals_character_sets_ext, "character set")
/* Openwave content type header */
static guint32
@@ -3525,7 +3526,7 @@ parameter (proto_tree *tree, packet_info *pinfo, proto_item *ti, tvbuff_t *tvb,
case 0x01: /* WSP 1.1 encoding - Charset: Well-known-charset */
get_integer_value(val, tvb, offset, val_len, ok);
if (ok) {
- val_str = val_to_str_ext(val, &wap_mib_enum_vals_character_sets_ext,
+ val_str = val_to_str_ext(val, &mibenum_vals_character_sets_ext,
"<Unknown character set Identifier %u>");
proto_tree_add_string(tree, hf_parameter_charset,
tvb, offset, val_len, val_str);