diff options
author | Anders Broman <anders.broman@ericsson.com> | 2005-09-04 09:00:01 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2005-09-04 09:00:01 +0000 |
commit | bc4b6481b473f64f20cb5d1c013b79eced4ddef5 (patch) | |
tree | 152a1b64148ecf3fcafc4ba2c62b3d2995bb278e /asn1/acse/acse.cnf | |
parent | 60eb171f7a761439d460096853dcb0a9d91b535a (diff) |
From Graeme Lunt:
Basically the changes are:
a) [pres] make the find_oid_by_[pres_]ctx_id (I changed the name to make it more specific) non-static so it can be called from other dissectors (see acse.cnf changes). I also call it from RTSE and ROS dissectors
b) [acse] remove (#ifdef NOT_NEEDED) the oid lookup table and any reference to acse_handle - as these are no longer needed
c) [acse] register the acse dissector on 2.2.1.0.1
with some modifications: -#ifdef:ed code removed
- renamed aco -> pco
svn path=/trunk/; revision=15678
Diffstat (limited to 'asn1/acse/acse.cnf')
-rw-r--r-- | asn1/acse/acse.cnf | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/asn1/acse/acse.cnf b/asn1/acse/acse.cnf index 92d038e7d7..34b5c79526 100644 --- a/asn1/acse/acse.cnf +++ b/asn1/acse/acse.cnf @@ -76,10 +76,19 @@ ACRQ-apdu/aSO-context-name aCRQ_aSO_context_name hf_index, object_identifier_id); #.FN_BODY EXTERNAL/indirect-reference + char *oid; offset = dissect_ber_integer(FALSE, pinfo, tree, tvb, offset, hf_acse_indirect_reference, &indir_ref); + /* look up the indirect reference */ + if(oid = find_oid_by_pres_ctx_id(pinfo, indir_ref)) { + strcpy(object_identifier_id, oid); + } + + if(session) + session->pres_ctx_id = indir_ref; + #.FN_BODY EXTERNAL/encoding/single-ASN1-type offset=call_ber_oid_callback(object_identifier_id, tvb, offset, pinfo, top_tree); |