diff options
author | kukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-09-19 07:35:05 +0000 |
---|---|---|
committer | kukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7> | 2005-09-19 07:35:05 +0000 |
commit | 5819875392478d143f9e74f9b0d75d9f07498b49 (patch) | |
tree | 99d59e6b507c3f160706f06cbbe3f11319a52696 /tools | |
parent | 1ce62a2e94eecd86a957d8fb41403bec5b305aa7 (diff) |
remove unused parameter 'name' from dissect_per_choice()
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@15861 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/asn2eth.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/asn2eth.py b/tools/asn2eth.py index 1fb71fb15b..6beff7d5fb 100755 --- a/tools/asn2eth.py +++ b/tools/asn2eth.py @@ -2527,7 +2527,6 @@ class ChoiceType (Type): def eth_type_default_pars(self, ectx, tname): pars = Type.eth_type_default_pars(self, ectx, tname) pars['TABLE'] = '%(TNAME)s_choice' - pars['CHOICE_NAME'] = '"%(TNAME)s"' return pars def eth_type_default_table(self, ectx, tname): @@ -2606,12 +2605,12 @@ class ChoiceType (Type): elif (ectx.NPer()): body = ectx.eth_fn_call('dissect_%(ER)s_choice', ret='offset', par=(('%(TVB)s', '%(OFFSET)s', '%(PINFO)s', '%(TREE)s', '%(HF_INDEX)s', 'item', 'private_data'), - ('%(ETT_INDEX)s', '%(TABLE)s', '%(CHOICE_NAME)s',), + ('%(ETT_INDEX)s', '%(TABLE)s',), ('%(VAL_PTR)s',),)) elif (ectx.OPer()): body = ectx.eth_fn_call('dissect_%(ER)s_choice', ret='offset', par=(('%(TVB)s', '%(OFFSET)s', '%(PINFO)s', '%(TREE)s', '%(HF_INDEX)s'), - ('%(ETT_INDEX)s', '%(TABLE)s', '%(CHOICE_NAME)s',), + ('%(ETT_INDEX)s', '%(TABLE)s',), ('%(VAL_PTR)s',),)) else: body = '#error Can not decode %s' % (tname) @@ -4533,7 +4532,7 @@ asn2eth [-h|?] [-d dbg] [-b] [-p proto] [-c conform_file] [-e] input_file -O dir : output directory -c conform_file : conformation file -e : create conformation file for exported types - -s template : single file output (templete is input file without .c/.h extension) + -s template : single file output (template is input file without .c/.h extension) -k : keep intermediate files though single file output is used input_file : input ASN.1 file |