aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/h245
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-11-06 21:36:24 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-11-06 21:36:24 +0000
commita53e0d1b5f54e94f06405c4ee111d143e599a98e (patch)
treeb3d2722a893761b7cfdab62cc27bb6b963eec8e0 /asn1/h245
parent0e4ea8980bd8af6af3e87dcb287770d24253c512 (diff)
"Dissect Profile and Level" and "Object Parameter" for ISO/IEC 14496-2 Capability.
svn path=/trunk/; revision=26714
Diffstat (limited to 'asn1/h245')
-rw-r--r--asn1/h245/h245.cnf51
1 files changed, 51 insertions, 0 deletions
diff --git a/asn1/h245/h245.cnf b/asn1/h245/h245.cnf
index 719728e344..d5abdf40e9 100644
--- a/asn1/h245/h245.cnf
+++ b/asn1/h245/h245.cnf
@@ -792,6 +792,57 @@ if (h245_pi != NULL)
dissector_try_string(gef_content_dissector_table, gefx->key, value_tvb, %(ACTX)s->pinfo, %(TREE)s);
}
#.END
+#.FN_BODY ParameterValue/unsignedMax VAL_PTR = &value
+ guint32 value;
+ guint8 *buf;
+ tvbuff_t *value_tvb;
+ gef_ctx_t *gefx;
+
+%(DEFAULT_BODY)s
+ gefx = gef_ctx_get(actx->private_data);
+ if (gefx) {
+ buf = ep_alloc(sizeof(guint16));
+ phtons(buf, value);
+ value_tvb = tvb_new_real_data(buf, sizeof(guint16), sizeof(guint16));
+ tvb_set_child_real_data_tvbuff(tvb, value_tvb);
+ /* DEBUG */ /*proto_tree_add_text(tree, tvb, offset>>3, 0, "*** DEBUG dissector_try_string: %%s", gefx->key);*/
+ dissector_try_string(gef_content_dissector_table, gefx->key, value_tvb, %(ACTX)s->pinfo, %(TREE)s);
+ }
+#.END
+#.FN_BODY ParameterValue/unsigned32Min VAL_PTR = &value
+ guint32 value;
+ guint8 *buf;
+ tvbuff_t *value_tvb;
+ gef_ctx_t *gefx;
+
+%(DEFAULT_BODY)s
+ gefx = gef_ctx_get(actx->private_data);
+ if (gefx) {
+ buf = ep_alloc(sizeof(guint32));
+ phtonl(buf, value);
+ value_tvb = tvb_new_real_data(buf, sizeof(guint32), sizeof(guint32));
+ tvb_set_child_real_data_tvbuff(tvb, value_tvb);
+ /* DEBUG */ /*proto_tree_add_text(tree, tvb, offset>>3, 0, "*** DEBUG dissector_try_string: %%s", gefx->key);*/
+ dissector_try_string(gef_content_dissector_table, gefx->key, value_tvb, %(ACTX)s->pinfo, %(TREE)s);
+ }
+#.END
+#.FN_BODY ParameterValue/unsigned32Max VAL_PTR = &value
+ guint32 value;
+ guint8 *buf;
+ tvbuff_t *value_tvb;
+ gef_ctx_t *gefx;
+
+%(DEFAULT_BODY)s
+ gefx = gef_ctx_get(actx->private_data);
+ if (gefx) {
+ buf = ep_alloc(sizeof(guint32));
+ phtonl(buf, value);
+ value_tvb = tvb_new_real_data(buf, sizeof(guint32), sizeof(guint32));
+ tvb_set_child_real_data_tvbuff(tvb, value_tvb);
+ /* DEBUG */ /*proto_tree_add_text(tree, tvb, offset>>3, 0, "*** DEBUG dissector_try_string: %%s", gefx->key);*/
+ dissector_try_string(gef_content_dissector_table, gefx->key, value_tvb, %(ACTX)s->pinfo, %(TREE)s);
+ }
+#.END
#.FN_BODY ParameterValue/octetString VAL_PTR = &value_tvb
tvbuff_t *value_tvb;
gef_ctx_t *gefx;