summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2008-11-01 22:28:56 +0000
committerAnders Broman <anders.broman@ericsson.com>2008-11-01 22:28:56 +0000
commit7ce0cd961e76ba84639236970a4eb9bd65e28657 (patch)
treeb25b962e947f184857701c8c1d5b73a4d713003b
parent1cab8c9743c2d310c4876f02e0af9e42a19b2b9d (diff)
downloadwireshark-7ce0cd961e76ba84639236970a4eb9bd65e28657.tar.gz
From Pascal Quantin:
ASN.1: display the real name of SEQUENCE/TYPE OF parameters svn path=/trunk/; revision=26669
-rwxr-xr-xtools/asn2wrs.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/asn2wrs.py b/tools/asn2wrs.py
index ddcbbfa116..15ae1acacf 100755
--- a/tools/asn2wrs.py
+++ b/tools/asn2wrs.py
@@ -959,8 +959,8 @@ class EthCtx:
self.field[ident] = {'type' : type, 'idx' : idx, 'impl' : impl, 'pdu' : pdu,
'modified' : '', 'attr' : {} }
name = ident.split('/')[-1]
- if len(ident.split('/')) > 1 and name == '_item': # Sequnce/Set of type
- self.field[ident]['attr']['NAME'] = '"Item"'
+ if len(ident.split('/')) > 1 and name == '_item': # Sequence/Set of type
+ self.field[ident]['attr']['NAME'] = '"%s"' % ident.split('/')[-2]
self.field[ident]['attr']['ABBREV'] = asn2c(ident.split('/')[-2] + name)
else:
self.field[ident]['attr']['NAME'] = '"%s"' % name