From e308e7c4de81c2ff7159e444b865ac59de4faa2b Mon Sep 17 00:00:00 2001 From: Pascal Quantin Date: Wed, 18 Jun 2014 18:09:58 +0200 Subject: Update ASN.1 source files with the API changes done in g021e7af Change-Id: I52ecfccbce423206242e3cf99401a8c9e1655d88 Reviewed-on: https://code.wireshark.org/review/2385 Reviewed-by: Pascal Quantin --- asn1/ranap/ranap.cnf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'asn1/ranap/ranap.cnf') diff --git a/asn1/ranap/ranap.cnf b/asn1/ranap/ranap.cnf index 20710c68bc..58267e8dd3 100644 --- a/asn1/ranap/ranap.cnf +++ b/asn1/ranap/ranap.cnf @@ -198,7 +198,7 @@ MAX_VAL = asn1_param_get_integer(%(ACTX)s,"upperBound") && actx->pinfo->sccp_info->data.co.assoc && ! actx->pinfo->sccp_info->data.co.assoc->calling_party ) { - guint len = tvb_length(imsi_tvb); + guint len = tvb_captured_length(imsi_tvb); guint8* bytes = (guint8 *)tvb_memdup(wmem_packet_scope(),imsi_tvb,0,len); actx->pinfo->sccp_info->data.co.assoc->calling_party = @@ -222,7 +222,7 @@ MAX_VAL = asn1_param_get_integer(%(ACTX)s,"upperBound") %(DEFAULT_BODY)s - if ((rrc_message_tvb)&&(tvb_length(rrc_message_tvb)!=0)&&(glbl_dissect_container)){ + if ((rrc_message_tvb)&&(tvb_captured_length(rrc_message_tvb)!=0)&&(glbl_dissect_container)){ switch(ProtocolIE_ID){ case id_Source_ToTarget_TransparentContainer: /* INTEGER ::= 61 */ /* 9.2.1.30a Source to Target Transparent Container @@ -310,7 +310,7 @@ MAX_VAL = asn1_param_get_integer(%(ACTX)s,"upperBound") # TransportLayerAddress ::= BIT STRING (SIZE (1..160, ...)) # Asume 4 bytes used in case of IPv4 /* Get the length */ - tvb_len = tvb_length(parameter_tvb); + tvb_len = tvb_captured_length(parameter_tvb); subtree = proto_item_add_subtree(actx->created_item, ett_ranap_TransportLayerAddress); if (tvb_len==4){ /* IPv4 */ -- cgit v1.2.1