diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-09-23 07:39:38 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-09-23 07:39:38 +0000 |
commit | 68eaa50d96465e5bfb9706bf6d7c5461df4e7aa5 (patch) | |
tree | 5bddc987d9a2733cafeb812c15dbc8beb4951fd6 /epan/dissectors/packet-acse.c | |
parent | 8af47c7c37a360105496db755e93b30d7630fcb4 (diff) |
Show Abort source in info column.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34202 f5534014-38df-0310-8fa8-9805f1628bb7
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; } |