aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorkukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7>2007-05-15 12:50:13 +0000
committerkukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7>2007-05-15 12:50:13 +0000
commit1b5d1322a7dcc60b27bb937c3eb8a5e433bd7b4d (patch)
tree55e5e933c4a02d09c25c9b781a5df5510840a1f2 /tools
parentaff34ebf1623c748400336bb349f55cbcf787528 (diff)
fix crash if C enum for ENUMERATED type is created
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21786 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tools')
-rwxr-xr-xtools/asn2wrs.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/asn2wrs.py b/tools/asn2wrs.py
index 01a8cd8683..d76ca4af64 100755
--- a/tools/asn2wrs.py
+++ b/tools/asn2wrs.py
@@ -3563,6 +3563,11 @@ class EnumeratedType (Type):
out += ectx.eth_vals(tname, vals)
return out
+ def reg_enum_vals(self, tname, ectx):
+ vals = self.get_vals_etc(ectx)[0]
+ for (val, id) in vals:
+ ectx.eth_reg_value(id, self, val, ethname=ectx.eth_enum_item(tname, id))
+
def eth_type_enum(self, tname, ectx):
out = '\n'
vals = self.get_vals_etc(ectx)[0]