diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2011-11-29 19:22:35 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2011-11-29 19:22:35 +0000 |
commit | 557a841313ad254113984cdc58466ab668bfb9eb (patch) | |
tree | a0ccd03403ca683ad0a31f97e21549def68b878c /tools | |
parent | 4904586292fcf10ce5b95e178c714a4abb37af87 (diff) |
From c.David via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6527
corba dissector generator improvement
Patch 1 : field names is used in dissection instead of "enum value" which is not clear
From me :
Regenerate GIOP Plugins
svn path=/trunk/; revision=40037
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/wireshark_gen.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/wireshark_gen.py b/tools/wireshark_gen.py index 8572757ffa..c3844aed63 100755 --- a/tools/wireshark_gen.py +++ b/tools/wireshark_gen.py @@ -1095,7 +1095,7 @@ class wireshark_gen_C: def get_CDR_enum(self,pn,type): #self.st.out(self.template_get_CDR_enum, varname=pn) sname = self.namespace(type.unalias(), "_") - self.st.out(self.template_get_CDR_enum_symbolic, valstringarray=sname) + self.st.out(self.template_get_CDR_enum_symbolic, valstringarray=sname,varname=pn) self.addvar(self.c_u_octet4) @@ -1933,7 +1933,7 @@ seq = NULL; u_octet4 = get_CDR_enum(tvb,offset,stream_is_big_endian, boundary); if (tree) { - proto_tree_add_text(tree,tvb,*offset-4,4,"Enum value = %u (%s)",u_octet4,val_to_str(u_octet4,@valstringarray@,"Unknown Enum Value")); + proto_tree_add_text(tree,tvb,*offset-4,4,"@varname@ = %u (%s)",u_octet4,val_to_str(u_octet4,@valstringarray@,"Unknown Enum Value")); } """ template_get_CDR_string = """\ |