new H.282 (RDC) and H.283 (LCT) dissectors
[obnox/wireshark/wip.git] / asn1 / h283 / h283.cnf
1 # h283.cnf
2 # H.283 conformation file
3 # 2007  Tomas Kukosa
4
5 # $Id$
6
7 #.OPT
8 PER
9 ALIGNED
10 #.END
11
12 #.PDU_NEW
13 LCTPDU
14 #.END
15
16 #.FN_PARS LCTPDU/pduType 
17   VAL_PTR = &pdu_type
18 #.FN_HDR
19   gint32 pdu_type = -1;
20   const gchar *p = NULL;
21 #.FN_FTR
22   p = match_strval(pdu_type, VALS(h283_T_pduType_vals));
23   if (!info_is_set && p && check_col(actx->pinfo->cinfo, COL_INFO)) {
24     col_set_str(actx->pinfo->cinfo, COL_INFO, p);
25     info_is_set = TRUE;
26   }
27 #.END
28
29 #.FN_PARS RDCData/dataType 
30   VAL_PTR = &data_type
31 #.FN_HDR
32   gint32 data_type = -1;
33   const gchar *p = NULL;
34 #.FN_FTR
35   p = match_strval(data_type, VALS(h283_T_dataType_vals));
36   if (!info_is_set && p && check_col(actx->pinfo->cinfo, COL_INFO)) {
37     col_add_fstr(actx->pinfo->cinfo, COL_INFO, "RDCData/%s", p);
38     info_is_set = TRUE;
39   }
40 #.END
41
42 #.FN_PARS LCTMessage 
43   VAL_PTR = &msg_type
44 #.FN_HDR
45   gint32 msg_type = -1;
46   const gchar *p = NULL;
47 #.FN_FTR
48   p = match_strval(msg_type, VALS(h283_LCTMessage_vals));
49   if (!info_is_set && p && check_col(actx->pinfo->cinfo, COL_INFO)) {
50     col_add_fstr(actx->pinfo->cinfo, COL_INFO, "LCTMessage/%s", p);
51     info_is_set = TRUE;
52   }
53 #.END
54
55 #.FN_PARS LCTRequest 
56   VAL_PTR = &msg_type
57 #.FN_HDR
58   gint32 msg_type = -1;
59   const gchar *p = NULL;
60 #.FN_FTR
61   p = match_strval(msg_type, VALS(h283_LCTRequest_vals));
62   if (!info_is_set && p && check_col(actx->pinfo->cinfo, COL_INFO)) {
63     col_add_fstr(actx->pinfo->cinfo, COL_INFO, "LCTRequest/%s", p);
64     info_is_set = TRUE;
65   }
66 #.END
67
68 #.FN_PARS LCTResponse 
69   VAL_PTR = &msg_type
70 #.FN_HDR
71   gint32 msg_type = -1;
72   const gchar *p = NULL;
73 #.FN_FTR
74   p = match_strval(msg_type, VALS(h283_LCTResponse_vals));
75   if (!info_is_set && p && check_col(actx->pinfo->cinfo, COL_INFO)) {
76     col_add_fstr(actx->pinfo->cinfo, COL_INFO, "LCTResponse/%s", p);
77     info_is_set = TRUE;
78   }
79 #.END
80
81 #.FN_PARS LCTIndication 
82   VAL_PTR = &msg_type
83 #.FN_HDR
84   gint32 msg_type = -1;
85   const gchar *p = NULL;
86 #.FN_FTR
87   p = match_strval(msg_type, VALS(h283_LCTIndication_vals));
88   if (!info_is_set && p && check_col(actx->pinfo->cinfo, COL_INFO)) {
89     col_add_fstr(actx->pinfo->cinfo, COL_INFO, "LCTIndication/%s", p);
90     info_is_set = TRUE;
91   }
92 #.END
93
94 #.FN_BODY RDCData/dataType/rdcPDU  VAL_PTR = &next_tvb
95   tvbuff_t *next_tvb = NULL;
96
97 %(DEFAULT_BODY)s
98   if (next_tvb && tvb_length(next_tvb)) {
99     call_dissector((rdc_pdu_handle)?rdc_pdu_handle:data_handle, next_tvb, %(ACTX)s->pinfo, proto_tree_get_root(tree));
100   }
101   info_is_set = TRUE;
102 #.END
103
104 #.FN_BODY LCTResponse/deviceListResp  VAL_PTR = &next_tvb
105   tvbuff_t *next_tvb = NULL;
106
107 %(DEFAULT_BODY)s
108   if (next_tvb && tvb_length(next_tvb)) {
109     call_dissector((rdc_device_list_handle)?rdc_device_list_handle:data_handle, next_tvb, %(ACTX)s->pinfo, tree);
110   }
111 #.END
112
113 #.TYPE_ATTR
114 RDCData/dataType/rdcPDU     TYPE = FT_UINT32 DISPLAY = BASE_DEC
115 LCTResponse/deviceListResp  TYPE = FT_UINT32 DISPLAY = BASE_DEC
116 #.END
117