Wireshark-dev: Re: [Wireshark-dev] asn2wrs.py questions
From: "Anders Broman" <anders.broman@xxxxxxxxxxxx>
Date: Fri, 15 May 2009 16:03:48 +0200
Hi,
It works for me...
C:\wireshark\asn1\acp133>nmake -f makefile.nmake

What errors do you get? Something with CLASS:es?
I thin it was a pain with all the interdependencies of those dissectors.
Regards
Anders
-----Original Message-----
From: wireshark-dev-bounces@xxxxxxxxxxxxx [mailto:wireshark-dev-bounces@xxxxxxxxxxxxx] On Behalf Of Stig Bjørlykke
Sent: den 15 maj 2009 14:17
To: Developer support list for Wireshark
Subject: [Wireshark-dev] asn2wrs.py questions

Hi,

1. SEQUENCE OF Name

When using a SEQUENCE OF (and SEQ OF) the tree item get the same name as the parent (introduced in r26669), which I think is not always correct.  This patch fixes this, does it seem reasonable?

--- tools/asn2wrs.py	(revisjon 28370)
+++ tools/asn2wrs.py	(arbeidskopi)
@@ -985,7 +985,10 @@
                          'modified' : '', 'attr' : {} }
     name = ident.split('/')[-1]
     if len(ident.split('/')) > 1 and name == '_item':  # Sequence/Set of type
-      self.field[ident]['attr']['NAME'] = '"%s"' % ident.split('/')[-2]
+      if len(self.field[ident]['type'].split('/')) > 1:
+        self.field[ident]['attr']['NAME'] = '"%s item"' % ident.split('/')[-2]
+      else:
+        self.field[ident]['attr']['NAME'] = '"%s"' % 
+ self.field[ident]['type']
       self.field[ident]['attr']['ABBREV'] = asn2c(ident.split('/')[-2] + name)
     else:
       self.field[ident]['attr']['NAME'] = '"%s"' % name


2. I'm unable to build acp133.  Anyone able to rebuild this?


--
Stig Bjørlykke
___________________________________________________________________________
Sent via:    Wireshark-dev mailing list <wireshark-dev@xxxxxxxxxxxxx>
Archives:    http://www.wireshark.org/lists/wireshark-dev
Unsubscribe: https://wireshark.org/mailman/options/wireshark-dev
             mailto:wireshark-dev-request@xxxxxxxxxxxxx?subject=unsubscribe