From Graeme Lunt:
[obnox/wireshark/wip.git] / asn1 / pres / pres.cnf
1 # pres.cnf
2 # pres conformation file
3
4 # $Id$
5
6 #.MODULE_IMPORT
7
8 #.EXPORTS
9
10 #.PDU
11
12 #.NO_EMIT
13
14 #.TYPE_RENAME
15 CPA-PPDU/normal-mode-parameters T_CPA_PPDU_normal_mode_parameters
16 CPR-PPDU/normal-mode-parameters T_CPR_PPDU_normal_mode_parameters       
17 ARU-PPDU/normal-mode-parameters T_ARU_PPDU_normal_mode_parameters
18
19 #.FIELD_RENAME
20 ARU-PPDU/normal-mode-parameters aRU_PPDU_normal_mode_parameters
21 CPA-PPDU/normal-mode-parameters cPU_PPDU_normal_mode_parameters
22 CPR-PPDU/normal-mode-parameters cPR_PPDU_normal_mode_parameters
23
24 ARU-PPDU/x400-mode-parameters aRU_PPDU_x400_mode_parameters
25 CPR-PPDU/x400-mode-parameters cPU_PPDU_x400_mode_parameters
26 CPA-PPDU/x410-mode-parameters cPR_PPDU_x400_mode_parameters
27
28 ARP-PPDU/provider-reason aRU_PPDU_provider-reason
29 CPR-PPDU/normal-mode-parameters/provider-reason cPR_PPDU__provider-reason
30
31 #.FN_BODY OPEN
32 /* FIX ME*/
33
34 #.FN_BODY PDV-list/presentation-data-values/single-ASN1-type
35
36  tvbuff_t       *next_tvb;
37  char *oid; 
38
39         oid=find_oid_by_pres_ctx_id(pinfo, presentation_context_identifier);
40         if(oid){
41                 next_tvb = tvb_new_subset(tvb, offset, -1, -1);
42                 call_ber_oid_callback(oid, next_tvb, offset, pinfo, global_tree);
43         } else {
44                 proto_tree_add_text(tree, tvb, offset, -1,"dissector is not available");
45                 %(DEFAULT_BODY)s        
46         }
47
48
49 #.FN_PARS Abstract_syntax_name
50  VAL_PTR = abstract_syntax_name_oid
51
52 #.FN_PARS Presentation_context_identifier
53  VAL_PTR = &presentation_context_identifier
54
55 #.FN_FTR Context-list/_item
56         register_ctx_id_and_oid(pinfo, presentation_context_identifier, abstract_syntax_name_oid);
57 #.END