aboutsummaryrefslogtreecommitdiffstats
path: root/asn1
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-12-12 00:09:05 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-12-12 00:09:05 +0000
commite9bd26c0d00a61318079d51f7fffd1b26bc4135c (patch)
tree0425d5f513779d39ea018e3162526c1d5faf818b /asn1
parent718c4f1ef2008b4a87cf869f2511c9d68b022b11 (diff)
update h248 to use the new integer dissector phasing out useage ofg the old dissector so we later can switch over.
svn path=/trunk/; revision=12719
Diffstat (limited to 'asn1')
-rwxr-xr-xasn1/h248/Makefile5
-rw-r--r--asn1/h248/packet-h248-template.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/asn1/h248/Makefile b/asn1/h248/Makefile
new file mode 100755
index 0000000000..ea3dd6355f
--- /dev/null
+++ b/asn1/h248/Makefile
@@ -0,0 +1,5 @@
+
+../../epan/dissectors/packet-h248.c : ../../tools/asn2eth.py MEGACO.asn packet-h248-template.c packet-h248-template.h h248.cnf
+ python ../../tools/asn2eth.py -X -b -k -e -p h248 -c h248.cnf -s packet-h248-template MEGACO.asn
+ cp packet-h248.* ../../epan/dissectors
+
diff --git a/asn1/h248/packet-h248-template.c b/asn1/h248/packet-h248-template.c
index 7488d774cc..1910a02407 100644
--- a/asn1/h248/packet-h248-template.c
+++ b/asn1/h248/packet-h248-template.c
@@ -272,7 +272,7 @@ dissect_h248_annex_C_PDU(gboolean implicit_tag, tvbuff_t *tvb, packet_info *pinf
dissect_nsap(new_tvb, 0,tvb_length_remaining(new_tvb, 0), tree);
break;
case 0x9001: /* TMR */
- offset = dissect_ber_integer(pinfo, tree, tvb, offset, hf_h248_package_annex_C_TMR, NULL);
+ offset = dissect_ber_integer_new(FALSE, pinfo, tree, tvb, offset, hf_h248_package_annex_C_TMR, NULL);
break;
case 0x9023: /* User Service Information */
offset = dissect_ber_octet_string(implicit_tag, pinfo, tree, tvb, offset, hf_h248_package_annex_C_USI, &new_tvb);
@@ -304,7 +304,7 @@ guint offset=0;
proto_tree_add_text(tree, tvb, 0, tvb_length_remaining(tvb, offset), "H.248: Dissector for Package/ID:0x%04x not implemented (yet).", name_major);
break;
case 0x001e: /* Bearer Characteristics Q.1950 Annex A */
- offset = dissect_ber_integer(pinfo, tree, tvb, offset, hf_h248_package_bcp_BNCChar_PDU, NULL);
+ offset = dissect_ber_integer_new(FALSE, pinfo, tree, tvb, offset, hf_h248_package_bcp_BNCChar_PDU, NULL);
break;
case 0x0021: /* Generic Bearer Connection Q.1950 Annex A */
proto_tree_add_text(tree, tvb, 0, tvb_length_remaining(tvb, offset), "H.248: Dissector for Package/ID:0x%04x not implemented (yet).", name_major);