aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/h245/h245.cnf
diff options
context:
space:
mode:
Diffstat (limited to 'asn1/h245/h245.cnf')
-rw-r--r--asn1/h245/h245.cnf15
1 files changed, 5 insertions, 10 deletions
diff --git a/asn1/h245/h245.cnf b/asn1/h245/h245.cnf
index c9d5d507a0..8d8038b862 100644
--- a/asn1/h245/h245.cnf
+++ b/asn1/h245/h245.cnf
@@ -769,8 +769,7 @@ if (h245_pi != NULL)
if (gefx) {
buf = ep_alloc(sizeof(guint8));
buf[0] = value;
- value_tvb = tvb_new_real_data(buf, sizeof(guint8), sizeof(guint8));
- tvb_set_child_real_data_tvbuff(tvb, value_tvb);
+ value_tvb = tvb_new_child_real_data(tvb, buf, sizeof(guint8), sizeof(guint8));
/* 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);
}
@@ -786,8 +785,7 @@ if (h245_pi != NULL)
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);
+ value_tvb = tvb_new_child_real_data(tvb, buf, sizeof(guint16), sizeof(guint16));
/* 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);
}
@@ -803,8 +801,7 @@ if (h245_pi != NULL)
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);
+ value_tvb = tvb_new_child_real_data(tvb, buf, sizeof(guint16), sizeof(guint16));
/* 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);
}
@@ -820,8 +817,7 @@ if (h245_pi != NULL)
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);
+ value_tvb = tvb_new_child_real_data(tvb, buf, sizeof(guint32), sizeof(guint32));
/* 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);
}
@@ -837,8 +833,7 @@ if (h245_pi != NULL)
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);
+ value_tvb = tvb_new_child_real_data(tvb, buf, sizeof(guint32), sizeof(guint32));
/* 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);
}