aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/x411/packet-x411-template.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-12-02 22:01:00 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2005-12-02 22:01:00 +0000
commit7efbafb6e5962180e48f33b6c5247f576b33792e (patch)
tree51c9337d2acd63c6954c4f05ef4ce85513c11b10 /asn1/x411/packet-x411-template.c
parente93abb66695db90b0ef65e749f92f49aad9518c0 (diff)
from Stig B:
I have made a small change in packet-x411-template.c to make the X. 411 message heading in CDT look like in COTP. svn path=/trunk/; revision=16657
Diffstat (limited to 'asn1/x411/packet-x411-template.c')
-rw-r--r--asn1/x411/packet-x411-template.c21
1 files changed, 19 insertions, 2 deletions
diff --git a/asn1/x411/packet-x411-template.c b/asn1/x411/packet-x411-template.c
index 9ae134a121..3d29f17662 100644
--- a/asn1/x411/packet-x411-template.c
+++ b/asn1/x411/packet-x411-template.c
@@ -97,9 +97,26 @@ call_x411_oid_callback(char *base_oid, tvbuff_t *tvb, int offset, packet_info *p
/*
* Dissect X411 MTS APDU
*/
-int dissect_x411_mts_apdu (tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
+int
+dissect_x411_mts_apdu (tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
{
- return dissect_x411_MTS_APDU (FALSE, tvb, 0, pinfo, parent_tree, hf_x411_MTS_APDU_PDU);
+ proto_item *item=NULL;
+ proto_tree *tree=NULL;
+
+ /* save parent_tree so subdissectors can create new top nodes */
+ top_tree=parent_tree;
+
+ if(parent_tree){
+ item = proto_tree_add_item(parent_tree, proto_x411, tvb, 0, -1, FALSE);
+ tree = proto_item_add_subtree(item, ett_x411);
+ }
+
+ if (check_col(pinfo->cinfo, COL_PROTOCOL))
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "P1");
+ if (check_col(pinfo->cinfo, COL_INFO))
+ col_set_str(pinfo->cinfo, COL_INFO, "Transfer");
+
+ return dissect_x411_MTS_APDU (FALSE, tvb, 0, pinfo, tree, hf_x411_MTS_APDU_PDU);
}
/*