aboutsummaryrefslogtreecommitdiffstats
path: root/tools/asn2wrs.py
diff options
context:
space:
mode:
authorPascal Quantin <pascal@wireshark.org>2021-04-01 22:21:00 +0200
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-04-01 20:49:43 +0000
commit51170b91d24c75e09cce93d10f25f649331e01d8 (patch)
treec6ffb5388b86b52a09f96632e2024041a31b51ff /tools/asn2wrs.py
parent352b555b7cdfea6fd072a3c0a5dac58347e7b655 (diff)
asn2wrs.py: prevent adding several times BASE_VAL64_STRING
Fixes ITS dissector generation from ASN.1 description
Diffstat (limited to 'tools/asn2wrs.py')
-rwxr-xr-xtools/asn2wrs.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/asn2wrs.py b/tools/asn2wrs.py
index 19d58d7687..f2696f6193 100755
--- a/tools/asn2wrs.py
+++ b/tools/asn2wrs.py
@@ -713,7 +713,7 @@ class EthCtx:
else:
attr.update(self.type[t]['attr'])
attr.update(self.eth_type[self.type[t]['ethname']]['attr'])
- if attr['STRINGS'].startswith('VALS64('):
+ if attr['STRINGS'].startswith('VALS64(') and '|BASE_VAL64_STRING' not in attr['DISPLAY']:
attr['DISPLAY'] += '|BASE_VAL64_STRING'
#print " ", attr
return attr