diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2014-05-16 17:19:17 +0100 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-05-16 22:17:45 +0000 |
commit | ba3c0d7c4d5fa71413587cbe62e555f5f4545fdd (patch) | |
tree | a2d5104f581329bde7750ee12a35f4e2123e397c /epan/dissectors/packet-nas_eps.c | |
parent | 0a249087c311feacf693144372ec038938c47415 (diff) |
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>
Diffstat (limited to 'epan/dissectors/packet-nas_eps.c')
-rw-r--r-- | epan/dissectors/packet-nas_eps.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/epan/dissectors/packet-nas_eps.c b/epan/dissectors/packet-nas_eps.c index 8c386a5e79..55c9ebee40 100644 --- a/epan/dissectors/packet-nas_eps.c +++ b/epan/dissectors/packet-nas_eps.c @@ -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); |