aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-ranap.c
diff options
context:
space:
mode:
authoretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2005-10-25 20:29:50 +0000
committeretxrab <etxrab@f5534014-38df-0310-8fa8-9805f1628bb7>2005-10-25 20:29:50 +0000
commit06072b04b4cf8d8b9c747fb7408d7885d5f80e22 (patch)
tree70ac4be6636688c0fcaa5e058710cf4a45a6969e /epan/dissectors/packet-ranap.c
parent9a9e7c24123a1f819a16dd58a9792d50cc47f136 (diff)
As there are more Procedure codes the hueristics need to be updated.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@16315 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-ranap.c')
-rw-r--r--epan/dissectors/packet-ranap.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/epan/dissectors/packet-ranap.c b/epan/dissectors/packet-ranap.c
index 470c1cbf7e..73760bc47e 100644
--- a/epan/dissectors/packet-ranap.c
+++ b/epan/dissectors/packet-ranap.c
@@ -1,6 +1,6 @@
/* Do not modify this file. */
/* It is created automatically by the ASN.1 to Ethereal dissector compiler */
-/* ./packet-ranap.c */
+/* .\packet-ranap.c */
/* ../../tools/asn2eth.py -X -e -p ranap -c ranap.cnf -s packet-ranap-template ranap.asn */
/* Input file: packet-ranap-template.c */
@@ -59,7 +59,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;
@@ -10732,7 +10733,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);