aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rtse.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2010-06-10 13:06:08 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2010-06-10 13:06:08 +0000
commit1a0c847c8c42c7b1ba51852435c668a07dea58ad (patch)
tree6b42ed06444f438aa7f805e2adad5930a4cbc8da /epan/dissectors/packet-rtse.c
parent933ca0bdfdc3aded7766a13bb05e36d2c932eb4c (diff)
Display RefuseReason in Info column.
svn path=/trunk/; revision=33206
Diffstat (limited to 'epan/dissectors/packet-rtse.c')
-rw-r--r--epan/dissectors/packet-rtse.c20
1 files changed, 17 insertions, 3 deletions
diff --git a/epan/dissectors/packet-rtse.c b/epan/dissectors/packet-rtse.c
index f3022db3e1..64a277e706 100644
--- a/epan/dissectors/packet-rtse.c
+++ b/epan/dissectors/packet-rtse.c
@@ -503,8 +503,16 @@ static const value_string rtse_RefuseReason_vals[] = {
static int
dissect_rtse_RefuseReason(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_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
- NULL);
+#line 137 "rtse.cnf"
+ int reason = -1;
+
+ offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
+ &reason);
+
+
+ if(reason != -1)
+ col_append_fstr(actx->pinfo->cinfo, COL_INFO, " (%s)", val_to_str(reason, rtse_RefuseReason_vals, "reason(%d)"));
+
return offset;
}
@@ -553,9 +561,15 @@ static const ber_sequence_t RTORJapdu_set[] = {
int
dissect_rtse_RTORJapdu(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_set(implicit_tag, actx, tree, tvb, offset,
+#line 129 "rtse.cnf"
+ col_append_fstr(actx->pinfo->cinfo, COL_INFO, "Refuse");
+
+ offset = dissect_ber_set(implicit_tag, actx, tree, tvb, offset,
RTORJapdu_set, hf_index, ett_rtse_RTORJapdu);
+
+
+
return offset;
}