Fixed value string names in field array when NO_PROT_PREFIX option is used
authorkukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 5 Jan 2005 07:09:06 +0000 (07:09 +0000)
committerkukosa <kukosa@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 5 Jan 2005 07:09:06 +0000 (07:09 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12949 f5534014-38df-0310-8fa8-9805f1628bb7

tools/asn2eth.py

index 79c0f9d9eb179440105a5803fb35198b64a59ec1..381bb765d50f74162ec810f22caab2d3663c7cef 100644 (file)
@@ -555,14 +555,14 @@ class EthCtx:
                               'attr' : {}, 
                               'ref' : [t]}
         self.eth_type[nm]['attr'].update(self.conform.use_item('ETYPE_ATTR', nm))
-        if self.type[t]['attr'].get('STRINGS') == '$$':
-          self.eth_type[nm]['attr']['STRINGS'] = 'VALS(%s)' % (self.eth_vals_nm(nm))
       self.type[t]['ethname'] = nm
       if (not self.eth_type[nm]['export'] and self.type[t]['export']):  # new export
         self.eth_export_ord.append(nm)
       self.eth_type[nm]['export'] |= self.type[t]['export']
       self.eth_type[nm]['user_def'] &= self.type[t]['user_def']
       self.eth_type[nm]['no_emit'] &= self.type[t]['no_emit']
+      if self.type[t]['attr'].get('STRINGS') == '$$':
+        self.eth_type[nm]['attr']['STRINGS'] = 'VALS(%s)' % (self.eth_vals_nm(nm))
     for t in self.eth_type_ord:
       bits = self.eth_type[t]['val'].eth_named_bits()
       if (bits):