aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/ranap
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2005-10-25 20:29:50 +0000
committerAnders Broman <anders.broman@ericsson.com>2005-10-25 20:29:50 +0000
commitc8d3cd483ba3d10713525d87bf2e79c0b026e052 (patch)
tree70ac4be6636688c0fcaa5e058710cf4a45a6969e /asn1/ranap
parent12198e77ee83539f218b43bc1236ef6a72f5e23f (diff)
downloadwireshark-c8d3cd483ba3d10713525d87bf2e79c0b026e052.tar.gz
wireshark-c8d3cd483ba3d10713525d87bf2e79c0b026e052.tar.bz2
wireshark-c8d3cd483ba3d10713525d87bf2e79c0b026e052.zip
As there are more Procedure codes the hueristics need to be updated.
svn path=/trunk/; revision=16315
Diffstat (limited to 'asn1/ranap')
-rw-r--r--asn1/ranap/packet-ranap-template.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/asn1/ranap/packet-ranap-template.c b/asn1/ranap/packet-ranap-template.c
index b52b12963f..4613002060 100644
--- a/asn1/ranap/packet-ranap-template.c
+++ b/asn1/ranap/packet-ranap-template.c
@@ -52,7 +52,8 @@
offset=(offset&0xfffffff8)+8; \
}
-
+/* Higest Ranap_ProcedureCode_value, use in heuristics */
+#define RANAP_MAX_PC 42
/* Initialize the protocol and registered fields */
int proto_ranap = -1;
@@ -1095,7 +1096,7 @@ dissect_sccp_ranap_heur(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (tvb_length(tvb) < 4) { return FALSE; }
if (tvb_get_guint8(tvb, LENGTH_OFFSET) != (tvb_length(tvb) - 4)) { return FALSE; }
temp = tvb_get_guint8(tvb, MSG_TYPE_OFFSET);
- if (temp > 28) { return FALSE; }
+ if (temp > RANAP_MAX_PC) { return FALSE; }
dissect_ranap(tvb, pinfo, tree);