Show EMM and ESM causes in the Info column

Change-Id: I2e3be18e997d6be0b250fbd8e664779d0d2a8228
Reviewed-on: https://code.wireshark.org/review/1666
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
Martin Mathieson 2014-05-16 17:19:17 +01:00 committed by Evan Huus
parent 0a249087c3
commit ba3c0d7c4d
1 changed files with 10 additions and 0 deletions

View File

@ -958,10 +958,15 @@ de_emm_cause(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_,
gchar *add_string _U_, int string_len _U_)
{
guint32 curr_offset;
guint8 cause;
curr_offset = offset;
cause = tvb_get_guint8(tvb, curr_offset);
proto_tree_add_item(tree, hf_nas_eps_emm_cause, tvb, curr_offset, 1, ENC_BIG_ENDIAN);
col_append_fstr(pinfo->cinfo, COL_INFO, " (%s)",
val_to_str_ext_const(cause, &nas_eps_emm_cause_values_ext, "Unknown"));
curr_offset++;
return curr_offset-offset;
@ -2543,10 +2548,15 @@ de_esm_cause(tvbuff_t *tvb, proto_tree *tree, packet_info *pinfo _U_,
gchar *add_string _U_, int string_len _U_)
{
guint32 curr_offset;
guint8 cause;
curr_offset = offset;
cause = tvb_get_guint8(tvb, curr_offset);
proto_tree_add_item(tree, hf_nas_eps_esm_cause, tvb, curr_offset, 1, ENC_BIG_ENDIAN);
col_append_fstr(pinfo->cinfo, COL_INFO, " (%s)",
val_to_str_ext_const(cause, &nas_eps_esm_cause_vals_ext, "Unknown"));
curr_offset++;
return(curr_offset - offset);