summaryrefslogtreecommitdiff
path: root/tools/wireshark_gen.py
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2012-11-13 13:20:39 +0000
committerMichael Mann <mmann78@netscape.net>2012-11-13 13:20:39 +0000
commit7d39afa6f8a46a23186c781369a1923e2a7fc645 (patch)
tree2379b9fdc4792aa38a2dfc75938571949d3b96d7 /tools/wireshark_gen.py
parent3a830bfe2085e6271fefefba6658687b9944d9d8 (diff)
downloadwireshark-7d39afa6f8a46a23186c781369a1923e2a7fc645.tar.gz
Use proto_tree_add_<signed integer> functions for signed giop datatypes
svn path=/trunk/; revision=46021
Diffstat (limited to 'tools/wireshark_gen.py')
-rwxr-xr-xtools/wireshark_gen.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/wireshark_gen.py b/tools/wireshark_gen.py
index f81af3e2ce..1fa46c6a29 100755
--- a/tools/wireshark_gen.py
+++ b/tools/wireshark_gen.py
@@ -13,7 +13,7 @@
# is "C". It will generate code to use the GIOP/IIOP get_CDR_XXX API.
#
# Please see packet-giop.h in Wireshark distro for API description.
-# Wireshark is available at http://www.wiresharl.org/
+# Wireshark is available at http://www.wireshark.org/
#
# Omniidl is part of the OmniOrb distribution, and is available at
# http://www.uk.research.att.com/omniORB/omniORB.html
@@ -2114,13 +2114,13 @@ break;"""
proto_tree_add_uint(tree, hf_@hfname@, tvb, *offset-4, 4, get_CDR_ulong(tvb,offset,stream_is_big_endian, boundary));
"""
template_get_CDR_short = """\
-proto_tree_add_uint(tree, hf_@hfname@, tvb, *offset-2, 2, get_CDR_short(tvb,offset,stream_is_big_endian, boundary));
+proto_tree_add_int(tree, hf_@hfname@, tvb, *offset-2, 2, get_CDR_short(tvb,offset,stream_is_big_endian, boundary));
"""
template_get_CDR_void = """\
/* Function returns void */
"""
template_get_CDR_long = """\
-proto_tree_add_uint(tree, hf_@hfname@, tvb, *offset-4, 4, get_CDR_long(tvb,offset,stream_is_big_endian, boundary));
+proto_tree_add_int(tree, hf_@hfname@, tvb, *offset-4, 4, get_CDR_long(tvb,offset,stream_is_big_endian, boundary));
"""
template_get_CDR_ushort = """\
proto_tree_add_uint(tree, hf_@hfname@, tvb, *offset-2, 2, get_CDR_ushort(tvb,offset,stream_is_big_endian, boundary));
@@ -2132,7 +2132,7 @@ proto_tree_add_float(tree, hf_@hfname@, tvb, *offset-4, 4, get_CDR_float(tvb,off
proto_tree_add_double(tree, hf_@hfname@, tvb, *offset-8, 8, get_CDR_double(tvb,offset,stream_is_big_endian, boundary));
"""
template_get_CDR_longlong = """\
-proto_tree_add_uint64(tree, hf_@hfname@, tvb, *offset-8, 8, get_CDR_long_long(tvb,offset,stream_is_big_endian, boundary));
+proto_tree_add_int64(tree, hf_@hfname@, tvb, *offset-8, 8, get_CDR_long_long(tvb,offset,stream_is_big_endian, boundary));
"""
template_get_CDR_ulonglong = """\
proto_tree_add_uint64(tree, hf_@hfname@, tvb, *offset-8, 8, get_CDR_ulong_long(tvb,offset,stream_is_big_endian, boundary));