aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-h245.c
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2005-11-14 13:05:17 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2005-11-14 13:05:17 +0000
commit97584210fbdae40c98945ef0463de134079e4841 (patch)
treeda1aa097c8ac572bced369fbd6e317d2bdd19346 /epan/dissectors/packet-h245.c
parentf4e55c11550f20e60a485b83b33e0ce0b777726a (diff)
improvements in value constraint support
- NO_BOUND is defined instead of usage -1 - negative bound is handled properly for INTEGER svn path=/trunk/; revision=16505
Diffstat (limited to 'epan/dissectors/packet-h245.c')
-rw-r--r--epan/dissectors/packet-h245.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/dissectors/packet-h245.c b/epan/dissectors/packet-h245.c
index b3bf878401..631d95fcb9 100644
--- a/epan/dissectors/packet-h245.c
+++ b/epan/dissectors/packet-h245.c
@@ -2344,7 +2344,7 @@ dissect_h245_T_data(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tre
tvbuff_t *next_tvb = NULL;
offset = dissect_per_octet_string(tvb, offset, pinfo, tree, hf_index,
- -1, -1, &next_tvb);
+ NO_BOUND, NO_BOUND, &next_tvb);
if (next_tvb && tvb_length(next_tvb)) {
call_dissector((nsp_handle)?nsp_handle:data_handle, next_tvb, pinfo, tree);
@@ -5077,7 +5077,7 @@ static int dissect_t84(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree
static int
dissect_h245_OCTET_STRING(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, proto_tree *tree, int hf_index) {
offset = dissect_per_octet_string(tvb, offset, pinfo, tree, hf_index,
- -1, -1, NULL);
+ NO_BOUND, NO_BOUND, NULL);
return offset;
}
@@ -18983,11 +18983,11 @@ void proto_register_h245(void) {
"TransparencyParameters/presentationOrder", HFILL }},
{ &hf_h245_offset_x,
{ "offset-x", "h245.offset_x",
- FT_UINT32, BASE_DEC, NULL, 0,
+ FT_INT32, BASE_DEC, NULL, 0,
"TransparencyParameters/offset-x", HFILL }},
{ &hf_h245_offset_y,
{ "offset-y", "h245.offset_y",
- FT_UINT32, BASE_DEC, NULL, 0,
+ FT_INT32, BASE_DEC, NULL, 0,
"TransparencyParameters/offset-y", HFILL }},
{ &hf_h245_scale_x,
{ "scale-x", "h245.scale_x",