aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-06-07 07:44:36 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2004-06-07 07:44:36 +0000
commitc4c61d62a519d3d6f30efd4d7a9183cc4ac923cd (patch)
treedcd2a6b93a7d21fcba4696572d0b702cbaab2580
parent4a0a8b7e72424ee27fbbb0aa534eff64b59bff9b (diff)
update to the asn1 compiler.
Do not output the value definitions for enumerated integers twice. the c compiler doesnt like when the same symbol is declared twice. svn path=/trunk/; revision=11124
-rw-r--r--tools/asn2eth.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/tools/asn2eth.py b/tools/asn2eth.py
index 9e6f46ffdd..bfa0bd53bc 100644
--- a/tools/asn2eth.py
+++ b/tools/asn2eth.py
@@ -5,7 +5,7 @@
# ASN.1 to Ethereal dissector compiler
# 2004 Tomas Kukosa
#
-# $Id: asn2eth.py,v 1.5 2004/06/04 11:28:04 sahlberg Exp $
+# $Id: asn2eth.py,v 1.6 2004/06/07 07:44:36 sahlberg Exp $
#
"""ASN.1 to Ethereal PER dissector compiler"""
@@ -2215,11 +2215,6 @@ class IntegerType (Type):
def eth_type_fn(self, proto, tname, ectx):
out = '\n'
- vals = []
- if (self.named_list):
- for e in (self.named_list):
- vals.append((int(e.val), e.ident))
- out += ectx.eth_vals(tname, vals)
out += ectx.eth_type_fn_hdr(tname)
if (ectx.Ber()):
body = ectx.eth_fn_call('dissect_ber_integer' + ectx.pvp(), ret='offset',