diff options
author | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-12-02 22:01:00 +0000 |
---|---|---|
committer | Ronnie Sahlberg <ronnie_sahlberg@ozemail.com.au> | 2005-12-02 22:01:00 +0000 |
commit | 7efbafb6e5962180e48f33b6c5247f576b33792e (patch) | |
tree | 51c9337d2acd63c6954c4f05ef4ce85513c11b10 /asn1 | |
parent | e93abb66695db90b0ef65e749f92f49aad9518c0 (diff) | |
download | wireshark-7efbafb6e5962180e48f33b6c5247f576b33792e.tar.gz wireshark-7efbafb6e5962180e48f33b6c5247f576b33792e.tar.bz2 wireshark-7efbafb6e5962180e48f33b6c5247f576b33792e.zip |
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')
-rw-r--r-- | asn1/x411/packet-x411-template.c | 21 |
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); } /* |