diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
commit | e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch) | |
tree | 68cb5ef9081156392f1dd62a00c6ccc1451b93df /epan/dissectors/asn1/h283/h283.cnf | |
parent | Initial commit. (diff) | |
download | wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip |
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'epan/dissectors/asn1/h283/h283.cnf')
-rw-r--r-- | epan/dissectors/asn1/h283/h283.cnf | 115 |
1 files changed, 115 insertions, 0 deletions
diff --git a/epan/dissectors/asn1/h283/h283.cnf b/epan/dissectors/asn1/h283/h283.cnf new file mode 100644 index 00000000..0f7577cc --- /dev/null +++ b/epan/dissectors/asn1/h283/h283.cnf @@ -0,0 +1,115 @@ +# h283.cnf +# H.283 conformation file +# 2007 Tomas Kukosa + +#.OPT +PER +ALIGNED +#.END + +#.PDU +LCTPDU +#.END + +#.FN_PARS LCTPDU/pduType + VAL_PTR = &pdu_type +#.FN_HDR + gint32 pdu_type = -1; + const gchar *p = NULL; +#.FN_FTR + p = try_val_to_str(pdu_type, VALS(h283_T_pduType_vals)); + if (!info_is_set && p ) { + col_set_str(actx->pinfo->cinfo, COL_INFO, p); + info_is_set = TRUE; + } +#.END + +#.FN_PARS RDCData/dataType + VAL_PTR = &data_type +#.FN_HDR + gint32 data_type = -1; + const gchar *p = NULL; +#.FN_FTR + p = try_val_to_str(data_type, VALS(h283_T_dataType_vals)); + if (!info_is_set && p ) { + col_add_fstr(actx->pinfo->cinfo, COL_INFO, "RDCData/%s", p); + info_is_set = TRUE; + } +#.END + +#.FN_PARS LCTMessage + VAL_PTR = &msg_type +#.FN_HDR + gint32 msg_type = -1; + const gchar *p = NULL; +#.FN_FTR + p = try_val_to_str(msg_type, VALS(h283_LCTMessage_vals)); + if (!info_is_set && p ) { + col_add_fstr(actx->pinfo->cinfo, COL_INFO, "LCTMessage/%s", p); + info_is_set = TRUE; + } +#.END + +#.FN_PARS LCTRequest + VAL_PTR = &msg_type +#.FN_HDR + gint32 msg_type = -1; + const gchar *p = NULL; +#.FN_FTR + p = try_val_to_str(msg_type, VALS(h283_LCTRequest_vals)); + if (!info_is_set && p ) { + col_add_fstr(actx->pinfo->cinfo, COL_INFO, "LCTRequest/%s", p); + info_is_set = TRUE; + } +#.END + +#.FN_PARS LCTResponse + VAL_PTR = &msg_type +#.FN_HDR + gint32 msg_type = -1; + const gchar *p = NULL; +#.FN_FTR + p = try_val_to_str(msg_type, VALS(h283_LCTResponse_vals)); + if (!info_is_set && p ) { + col_add_fstr(actx->pinfo->cinfo, COL_INFO, "LCTResponse/%s", p); + info_is_set = TRUE; + } +#.END + +#.FN_PARS LCTIndication + VAL_PTR = &msg_type +#.FN_HDR + gint32 msg_type = -1; + const gchar *p = NULL; +#.FN_FTR + p = try_val_to_str(msg_type, VALS(h283_LCTIndication_vals)); + if (!info_is_set && p ) { + col_add_fstr(actx->pinfo->cinfo, COL_INFO, "LCTIndication/%s", p); + info_is_set = TRUE; + } +#.END + +#.FN_BODY RDCData/dataType/rdcPDU VAL_PTR = &next_tvb + tvbuff_t *next_tvb = NULL; + +%(DEFAULT_BODY)s + if (next_tvb && tvb_reported_length(next_tvb)) { + call_dissector((rdc_pdu_handle)?rdc_pdu_handle:data_handle, next_tvb, %(ACTX)s->pinfo, proto_tree_get_root(tree)); + } + info_is_set = TRUE; +#.END + +#.FN_BODY LCTResponse/deviceListResp VAL_PTR = &next_tvb + tvbuff_t *next_tvb = NULL; + +%(DEFAULT_BODY)s + if (next_tvb && tvb_reported_length(next_tvb)) { + call_dissector((rdc_device_list_handle)?rdc_device_list_handle:data_handle, next_tvb, %(ACTX)s->pinfo, tree); + } +#.END + +#.TYPE_ATTR +RDCData/dataType/rdcPDU TYPE = FT_UINT32 DISPLAY = BASE_DEC +LCTResponse/deviceListResp TYPE = FT_UINT32 DISPLAY = BASE_DEC +#.END + |