diff options
author | Bill Meier <wmeier@newsguy.com> | 2010-10-10 20:45:19 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2010-10-10 20:45:19 +0000 |
commit | 09d718f723cba7c9c59807b1cb4d00ac31100e4d (patch) | |
tree | 4d68f4ac99deff384646f495202491aa10f40e57 /epan | |
parent | 4ae8d2530043b4e300504fd0f71c7a4a0e52d611 (diff) |
Rename vals_status & vals_pdu_type to wsp_vals_status & wsp_vals_pdu_type
svn path=/trunk/; revision=34463
Diffstat (limited to 'epan')
-rw-r--r-- | epan/dissectors/packet-wsp.c | 18 | ||||
-rw-r--r-- | epan/dissectors/packet-wsp.h | 8 | ||||
-rw-r--r-- | epan/libwireshark.def | 4 |
3 files changed, 15 insertions, 15 deletions
diff --git a/epan/dissectors/packet-wsp.c b/epan/dissectors/packet-wsp.c index 0822c74f72..c3aca3142f 100644 --- a/epan/dissectors/packet-wsp.c +++ b/epan/dissectors/packet-wsp.c @@ -353,7 +353,7 @@ static dissector_handle_t media_handle; /* Handle for WBXML-encoded UAPROF dissector */ static dissector_handle_t wbxml_uaprof_handle; -const value_string vals_pdu_type[] = { +const value_string wsp_vals_pdu_type[] = { { 0x00, "Reserved" }, { 0x01, "Connect" }, { 0x02, "ConnectReply" }, @@ -421,7 +421,7 @@ const value_string vals_pdu_type[] = { }; /* The WSP status codes are inherited from the HTTP status codes */ -const value_string vals_status[] = { +const value_string wsp_vals_status[] = { /* 0x00 - 0x0F Reserved */ { 0x10, "100 Continue" }, @@ -2343,7 +2343,7 @@ wkh_allow(proto_tree *tree, tvbuff_t *tvb, guint32 hdr_start, packet_info *pinfo tvb_ensure_bytes_exist(tvb, hdr_start, offset - hdr_start); ti = proto_tree_add_string(tree, hf_hdr_allow, tvb, hdr_start, offset - hdr_start, - val_to_str(val_id & 0x7F, vals_pdu_type, + val_to_str(val_id & 0x7F, wsp_vals_pdu_type, "<Unknown WSP method 0x%02X>")); ok = TRUE; } @@ -2370,7 +2370,7 @@ wkh_public(proto_tree *tree, tvbuff_t *tvb, guint32 hdr_start, packet_info *pinf tvb_ensure_bytes_exist(tvb, hdr_start, offset - hdr_start); ti = proto_tree_add_string(tree, hf_hdr_public, tvb, hdr_start, offset - hdr_start, - val_to_str(val_id & 0x7F, vals_pdu_type, + val_to_str(val_id & 0x7F, wsp_vals_pdu_type, "<Unknown WSP method 0x%02X>")); ok = TRUE; } @@ -4986,7 +4986,7 @@ dissect_wsp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, if (check_col(pinfo->cinfo, COL_INFO)) { col_append_fstr(pinfo->cinfo, COL_INFO, "WSP %s (0x%02x)", - val_to_str (pdut, vals_pdu_type, "Unknown PDU type (0x%02x)"), + val_to_str (pdut, wsp_vals_pdu_type, "Unknown PDU type (0x%02x)"), pdut); }; @@ -5010,7 +5010,7 @@ dissect_wsp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, tvb, 0, -1, bo_little_endian); wsp_tree = proto_item_add_subtree(proto_ti, ett_wsp); proto_item_append_text(proto_ti, ", Method: %s (0x%02x)", - val_to_str (pdut, vals_pdu_type, "Unknown (0x%02x)"), + val_to_str (pdut, wsp_vals_pdu_type, "Unknown (0x%02x)"), pdut); /* Add common items: only TID and PDU Type */ @@ -5230,7 +5230,7 @@ dissect_wsp_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, guint8 reply_status = tvb_get_guint8(tvb, offset); const char *reply_status_str; - reply_status_str = val_to_str (reply_status, vals_status, "(Unknown response status)"); + reply_status_str = val_to_str (reply_status, wsp_vals_status, "(Unknown response status)"); if (tree) { ti = proto_tree_add_item (wsp_tree, hf_wsp_header_status, tvb, offset, 1, bo_little_endian); @@ -6035,7 +6035,7 @@ proto_register_wsp(void) { &hf_wsp_header_pdu_type, { "PDU Type", "wsp.pdu_type", - FT_UINT8, BASE_HEX, VALS( vals_pdu_type ), 0x00, + FT_UINT8, BASE_HEX, VALS( wsp_vals_pdu_type ), 0x00, NULL, HFILL } }, @@ -6105,7 +6105,7 @@ proto_register_wsp(void) { &hf_wsp_header_status, { "Status", "wsp.reply.status", - FT_UINT8, BASE_HEX, VALS( vals_status ), 0x00, + FT_UINT8, BASE_HEX, VALS( wsp_vals_status ), 0x00, "Reply Status", HFILL } }, diff --git a/epan/dissectors/packet-wsp.h b/epan/dissectors/packet-wsp.h index e93cc0741c..4d772f86d1 100644 --- a/epan/dissectors/packet-wsp.h +++ b/epan/dissectors/packet-wsp.h @@ -37,11 +37,11 @@ extern const value_string vals_wsp_reason_codes[]; /* * the following allows TAP code access to the messages - * without having to duplicate it. With MSVC and a + * without having to duplicate it. With MSVC and a * libwireshark.dll, we need a special declaration. */ -WS_VAR_IMPORT const value_string vals_pdu_type[]; -WS_VAR_IMPORT const value_string vals_status[]; +WS_VAR_IMPORT const value_string wsp_vals_pdu_type[]; +WS_VAR_IMPORT const value_string wsp_vals_status[]; /* * exported functionality */ @@ -54,7 +54,7 @@ guint32 add_content_type (proto_tree *tree, tvbuff_t *tvb, /* statistics */ typedef struct _wsp_info_value_t /* see README.tapping and tap-wspstat.c */ { - gint status_code; + gint status_code; guint8 pdut; } wsp_info_value_t; #endif /* packet-wsp.h */ diff --git a/epan/libwireshark.def b/epan/libwireshark.def index 7bd3877a0d..5ae9783a4e 100644 --- a/epan/libwireshark.def +++ b/epan/libwireshark.def @@ -1139,13 +1139,13 @@ val_to_str val_to_str_const val_to_str_ext val_to_str_ext_const -vals_pdu_type DATA -vals_status DATA value_is_in_range write_prefs ws_strdup_escape_underscore ws_strdup_unescape_underscore wslua_plugin_list DATA +wsp_vals_pdu_type DATA +wsp_vals_status DATA wtap_nstime_to_sec xml_escape xml_get_attrib |