diff options
author | Tomas Kukosa <tomas.kukosa@siemens.com> | 2007-11-02 08:34:12 +0000 |
---|---|---|
committer | Tomas Kukosa <tomas.kukosa@siemens.com> | 2007-11-02 08:34:12 +0000 |
commit | 475ec209ceed8be8ee260ba0004e65ea1f7977f6 (patch) | |
tree | fa26bd2909eec4a20b519d95659e7f37537bf959 /asn1/h501 | |
parent | 9b3c5f9f037073007063eb1912eac38582f3f1ab (diff) |
display message type in the info column
svn path=/trunk/; revision=23338
Diffstat (limited to 'asn1/h501')
-rw-r--r-- | asn1/h501/h501.cnf | 11 | ||||
-rw-r--r-- | asn1/h501/packet-h501-template.c | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/asn1/h501/h501.cnf b/asn1/h501/h501.cnf index 9083d06d92..f25111de91 100644 --- a/asn1/h501/h501.cnf +++ b/asn1/h501/h501.cnf @@ -15,3 +15,14 @@ ALIGNED #.PDU_NEW Message #.END + +#.FN_PARS MessageBody + VAL_PTR = &msg_type +#.FN_HDR + gint32 msg_type = -1; + const gchar *p = NULL; +#.FN_FTR + p = match_strval(msg_type, VALS(h501_MessageBody_vals)); + if (p && check_col(actx->pinfo->cinfo, COL_INFO)) + col_set_str(actx->pinfo->cinfo, COL_INFO, p); +#.END diff --git a/asn1/h501/packet-h501-template.c b/asn1/h501/packet-h501-template.c index e08a045b12..49a77c313b 100644 --- a/asn1/h501/packet-h501-template.c +++ b/asn1/h501/packet-h501-template.c @@ -79,7 +79,7 @@ dissect_h501_pdu(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree *h501_tree = NULL; if (check_col(pinfo->cinfo, COL_PROTOCOL)) - col_set_str(pinfo->cinfo, COL_PROTOCOL, PNAME); + col_set_str(pinfo->cinfo, COL_PROTOCOL, PSNAME); ti = proto_tree_add_item(tree, proto_h501, tvb, 0, -1, FALSE); h501_tree = proto_item_add_subtree(ti, ett_h501); |