diff options
author | kukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-05-15 12:50:13 +0000 |
---|---|---|
committer | kukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7> | 2007-05-15 12:50:13 +0000 |
commit | 1b5d1322a7dcc60b27bb937c3eb8a5e433bd7b4d (patch) | |
tree | 55e5e933c4a02d09c25c9b781a5df5510840a1f2 /tools | |
parent | aff34ebf1623c748400336bb349f55cbcf787528 (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-x | tools/asn2wrs.py | 5 |
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] |