aboutsummaryrefslogtreecommitdiffstats
path: root/tools/asn2wrs.py
diff options
context:
space:
mode:
authorPascal Quantin <pascal.quantin@gmail.com>2013-05-27 20:26:49 +0000
committerPascal Quantin <pascal.quantin@gmail.com>2013-05-27 20:26:49 +0000
commit0ee4d0a00abd69e6479a55c12425c92cdf916d71 (patch)
treec72f8bc0048460e22297128f141079a1862d98b7 /tools/asn2wrs.py
parent38d9a87a49d690db0f3fb8aaa4ca40909713ead4 (diff)
Postfix FT_NONE fields with "_element" string to reduce number of incompatible filters in ASN.1 dissectors
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2402 svn path=/trunk/; revision=49599
Diffstat (limited to 'tools/asn2wrs.py')
-rwxr-xr-xtools/asn2wrs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/asn2wrs.py b/tools/asn2wrs.py
index 1eb613773b..faedbfd2c7 100755
--- a/tools/asn2wrs.py
+++ b/tools/asn2wrs.py
@@ -1575,7 +1575,10 @@ class EthCtx:
else:
blurb = '"%s"' % (t)
attr = self.eth_hf[f]['attr'].copy()
- attr['ABBREV'] = '"%s.%s"' % (self.proto, attr['ABBREV'])
+ if attr['TYPE'] == 'FT_NONE':
+ attr['ABBREV'] = '"%s.%s_element"' % (self.proto, attr['ABBREV'])
+ else:
+ attr['ABBREV'] = '"%s.%s"' % (self.proto, attr['ABBREV'])
if 'BLURB' not in attr:
attr['BLURB'] = blurb
fx.write(' { &%s,\n' % (self.eth_hf[f]['fullname']))