aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-acse.c
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2009-12-19 14:27:17 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2009-12-19 14:27:17 +0000
commit0041d498ac0496c1a2928d4cc63b1cbaf6888821 (patch)
treed47b7484a55863d47e0717d6b53795537f35f9b6 /epan/dissectors/packet-acse.c
parentfb56cceeb7cfa9bf3c48f75f83234e2ac0046b46 (diff)
Regenerate with SIZE constraints checking.
svn path=/trunk/; revision=31322
Diffstat (limited to 'epan/dissectors/packet-acse.c')
-rw-r--r--epan/dissectors/packet-acse.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/epan/dissectors/packet-acse.c b/epan/dissectors/packet-acse.c
index 8d15401b4f..0d02848557 100644
--- a/epan/dissectors/packet-acse.c
+++ b/epan/dissectors/packet-acse.c
@@ -1,7 +1,7 @@
/* Do not modify this file. */
/* It is created automatically by the ASN.1 to Wireshark dissector compiler */
/* packet-acse.c */
-/* ../../tools/asn2wrs.py -b -e -p acse -c ./acse.cnf -s ./packet-acse-template -D . acse.asn */
+/* ../../tools/asn2wrs.py -b -e -C -p acse -c ./acse.cnf -s ./packet-acse-template -D . acse.asn */
/* Input file: packet-acse-template.c */
@@ -868,8 +868,8 @@ dissect_acse_Syntactic_context_list(gboolean implicit_tag _U_, tvbuff_t *tvb _U_
static int
dissect_acse_ASOI_identifier(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
- NULL);
+ offset = dissect_ber_constrained_integer(implicit_tag, actx, tree, tvb, offset,
+ 1U, 128U, hf_index, NULL);
return offset;
}
@@ -896,8 +896,8 @@ static const ber_sequence_t ASOI_tag_sequence_of[1] = {
static int
dissect_acse_ASOI_tag(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_sequence_of(implicit_tag, actx, tree, tvb, offset,
- ASOI_tag_sequence_of, hf_index, ett_acse_ASOI_tag);
+ offset = dissect_ber_constrained_sequence_of(implicit_tag, actx, tree, tvb, offset,
+ 0, 7, ASOI_tag_sequence_of, hf_index, ett_acse_ASOI_tag);
return offset;
}
@@ -996,8 +996,8 @@ static const value_string acse_Associate_result_vals[] = {
static int
dissect_acse_Associate_result(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
- NULL);
+ offset = dissect_ber_constrained_integer(implicit_tag, actx, tree, tvb, offset,
+ 0U, 2U, hf_index, NULL);
return offset;
}
@@ -1025,8 +1025,8 @@ static const value_string acse_T_acse_service_user_vals[] = {
static int
dissect_acse_T_acse_service_user(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
- NULL);
+ offset = dissect_ber_constrained_integer(implicit_tag, actx, tree, tvb, offset,
+ 0U, 14U, hf_index, NULL);
return offset;
}
@@ -1042,8 +1042,8 @@ static const value_string acse_T_acse_service_provider_vals[] = {
static int
dissect_acse_T_acse_service_provider(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
- NULL);
+ offset = dissect_ber_constrained_integer(implicit_tag, actx, tree, tvb, offset,
+ 0U, 2U, hf_index, NULL);
return offset;
}
@@ -1301,8 +1301,8 @@ static const value_string acse_ABRT_source_vals[] = {
static int
dissect_acse_ABRT_source(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_, asn1_ctx_t *actx _U_, proto_tree *tree _U_, int hf_index _U_) {
- offset = dissect_ber_integer(implicit_tag, actx, tree, tvb, offset, hf_index,
- NULL);
+ offset = dissect_ber_constrained_integer(implicit_tag, actx, tree, tvb, offset,
+ 0U, 1U, hf_index, NULL);
return offset;
}