aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/h225
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2007-12-28 10:42:44 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2007-12-28 10:42:44 +0000
commit7529f334379c34ca3b5e906b31879a8f5944a8de (patch)
tree3bb0fa787a1066c5bc2b5a3afc519403a65b014a /asn1/h225
parentcec1f884e98d111ed384cf1ec395e44620ad4964 (diff)
downloadwireshark-7529f334379c34ca3b5e906b31879a8f5944a8de.tar.gz
wireshark-7529f334379c34ca3b5e906b31879a8f5944a8de.tar.bz2
wireshark-7529f334379c34ca3b5e906b31879a8f5944a8de.zip
support for additionally SIZE constrained Typereference
the support is only semiautomated as this feature does not occur very often use this feature for the TBCD-STRING in the H.225 dissector svn path=/trunk/; revision=23958
Diffstat (limited to 'asn1/h225')
-rw-r--r--asn1/h225/h225.cnf15
1 files changed, 15 insertions, 0 deletions
diff --git a/asn1/h225/h225.cnf b/asn1/h225/h225.cnf
index 510bd74b23..21b309cec3 100644
--- a/asn1/h225/h225.cnf
+++ b/asn1/h225/h225.cnf
@@ -697,6 +697,21 @@ H221NonStandard/manufacturerCode VAL_PTR = &manufacturerCode
#=== end of GEF =========================================================================
+# TBCD-STRING is additionally constrained
+# parameter stack is used for passing this constraint
+
+#.FN_HDR TBCD-STRING
+ int min_len, max_len;
+ gboolean has_extension;
+
+ get_size_constraint_from_stack(actx, "TBCD_STRING", &min_len, &max_len, &has_extension);
+#.FN_PARS TBCD-STRING
+MIN_VAL = min_len
+MAX_VAL = max_len
+EXT = has_extension
+#.END
+
+
#.TYPE_ATTR
H221NonStandard/t35CountryCode TYPE = FT_UINT32 DISPLAY = BASE_DEC STRINGS = VALS(T35CountryCode_vals)
TransportAddress/ipAddress/ip TYPE = FT_IPv4 DISPLAY = BASE_NONE STRINGS = NULL