aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/ranap
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2012-05-10 01:08:50 +0000
committerGuy Harris <guy@alum.mit.edu>2012-05-10 01:08:50 +0000
commit27286517f7b72b4669caa7a4be56a3fc1c58bdb7 (patch)
tree5a6c1be89801e5d0c52b8d22258e2dcd0b84b656 /asn1/ranap
parent47cd41dbda948fd105468393a9ec8bc2c28e8b17 (diff)
Get rid of remaining Booleans-as-encoding-arguments in
proto_tree_add_item() calls. Also, fix a call for IPv4 addresses to use ENC_BIG_ENDIAN (yes, we do support ENC_LITTLE_ENDIAN for IPv4 addresses - at least one protocol apparently puts IPv4 addresses out byte-swapped!). svn path=/trunk/; revision=42531
Diffstat (limited to 'asn1/ranap')
-rw-r--r--asn1/ranap/ranap.cnf4
1 files changed, 2 insertions, 2 deletions
diff --git a/asn1/ranap/ranap.cnf b/asn1/ranap/ranap.cnf
index 2c9efd3227..bcbda1aa90 100644
--- a/asn1/ranap/ranap.cnf
+++ b/asn1/ranap/ranap.cnf
@@ -315,7 +315,7 @@ MAX_VAL = asn1_param_get_integer(%(ACTX)s,"upperBound")
subtree = proto_item_add_subtree(actx->created_item, ett_ranap_TransportLayerAddress);
if (tvb_len==4){
/* IPv4 */
- proto_tree_add_item(subtree, hf_ranap_transportLayerAddress_ipv4, parameter_tvb, 0, tvb_len, ENC_NA);
+ proto_tree_add_item(subtree, hf_ranap_transportLayerAddress_ipv4, parameter_tvb, 0, tvb_len, ENC_BIG_ENDIAN);
}
if (tvb_len==16){
/* IPv6 */
@@ -337,7 +337,7 @@ MAX_VAL = asn1_param_get_integer(%(ACTX)s,"upperBound")
if (!parameter_tvb)
return offset;
- proto_tree_add_item(tree, saved_hf, parameter_tvb, 0, 4, FALSE);
+ proto_tree_add_item(tree, saved_hf, parameter_tvb, 0, 4, ENC_BIG_ENDIAN);
#.FN_HDR SourceRNC-ToTargetRNC-TransparentContainer
/* If SourceRNC-ToTargetRNC-TransparentContainer is called trough