/* 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" },
};
/* 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" },
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;
}
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;
}
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);
};
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 */
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);
{ &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
}
},
{ &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
}
},
x=2;
}
/* Maybe we should display the hexadecimal value ? */
- /* g_snprintf(buffer, sizeof(buffer), "%s (0X%x)", match_strval( index2pdut( i ), vals_pdu_type), index2pdut(i) );*/
+ /* g_snprintf(buffer, sizeof(buffer), "%s (0X%x)", match_strval( index2pdut( i ), wsp_vals_pdu_type), index2pdut(i) );*/
add_table_entry( sp,
- match_strval(index2pdut(i), vals_pdu_type), /* or buffer, */
+ match_strval(index2pdut(i), wsp_vals_pdu_type), /* or buffer, */
x,
pos,
0
gtk_window_set_destroy_with_parent (GTK_WINDOW(sp->win), TRUE);
sp->hash = g_hash_table_new( g_int_hash, g_int_equal);
- for (i=0 ; vals_status[i].strptr ; i++ )
+ for (i=0 ; wsp_vals_status[i].strptr ; i++ )
{
gint *key;
sc=g_malloc( sizeof(wsp_status_code_t) );
key=g_malloc( sizeof(gint) );
- sc->name=vals_status[i].strptr;
+ sc->name=wsp_vals_status[i].strptr;
sc->packets=0;
sc->widget=NULL;
sc->sp = sp;
- *key=vals_status[i].value;
+ *key=wsp_vals_status[i].value;
g_hash_table_insert(
sp->hash,
key,
sp = g_malloc( sizeof(wspstat_t) );
sp->hash = g_hash_table_new( g_int_hash, g_int_equal);
- for (i=0 ; vals_status[i].strptr ; i++ )
+ for (i=0 ; wsp_vals_status[i].strptr ; i++ )
{
gint *key;
sc=g_malloc( sizeof(wsp_status_code_t) );
key=g_malloc( sizeof(gint) );
sc->packets=0;
- sc->name=vals_status[i].strptr;
- *key=vals_status[i].value;
+ sc->name=wsp_vals_status[i].strptr;
+ *key=wsp_vals_status[i].value;
g_hash_table_insert(
sp->hash,
key,
for (i=0;i<sp->num_pdus; i++)
{
sp->pdu_stats[i].packets=0;
- sp->pdu_stats[i].type = match_strval( index2pdut( i ), vals_pdu_type) ;
+ sp->pdu_stats[i].type = match_strval( index2pdut( i ), wsp_vals_pdu_type) ;
}
error_string = register_tap_listener(