diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2010-09-23 07:39:38 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2010-09-23 07:39:38 +0000 |
commit | c403378c3627a7bed1d0422c2de023ebed0575ab (patch) | |
tree | 5bddc987d9a2733cafeb812c15dbc8beb4951fd6 /epan/dissectors/packet-acse.c | |
parent | de68ad306615e1e75546234892a57e7f05bbbd9c (diff) |
Show Abort source in info column.
svn path=/trunk/; revision=34202
Diffstat (limited to 'epan/dissectors/packet-acse.c')
-rw-r--r-- | epan/dissectors/packet-acse.c | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/epan/dissectors/packet-acse.c b/epan/dissectors/packet-acse.c index 8580346c0f..f2b3db57da 100644 --- a/epan/dissectors/packet-acse.c +++ b/epan/dissectors/packet-acse.c @@ -1273,7 +1273,6 @@ dissect_acse_Release_response_reason(gboolean implicit_tag _U_, tvbuff_t *tvb _U - return offset; } @@ -1320,8 +1319,17 @@ static const value_string acse_ABRT_source_vals[] = { static int dissect_acse_ABRT_source(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { - offset = dissect_ber_constrained_integer(implicit_tag, actx, tree, tvb, offset, - 0U, 1U, hf_index, NULL); +#line 131 "acse.cnf" + int source = -1; + + offset = dissect_ber_constrained_integer(implicit_tag, actx, tree, tvb, offset, + 0U, 1U, hf_index, &source); + + + if(source != -1) + col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (%s)", val_to_str(source, acse_ABRT_source_vals, "source(%d)")); + + return offset; } @@ -1368,9 +1376,15 @@ dissect_acse_ABRT_apdu_U(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offse static int dissect_acse_ABRT_apdu(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) { - offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset, +#line 126 "acse.cnf" + col_append_fstr(actx->pinfo->cinfo, COL_INFO, "Abort"); + + offset = dissect_ber_tagged_type(implicit_tag, actx, tree, tvb, offset, hf_index, BER_CLASS_APP, 4, TRUE, dissect_acse_ABRT_apdu_U); + + + return offset; } |