diff options
author | Pascal Quantin <pascal@wireshark.org> | 2021-04-01 22:21:00 +0200 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-04-01 20:49:43 +0000 |
commit | 51170b91d24c75e09cce93d10f25f649331e01d8 (patch) | |
tree | c6ffb5388b86b52a09f96632e2024041a31b51ff /tools/asn2wrs.py | |
parent | 352b555b7cdfea6fd072a3c0a5dac58347e7b655 (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-x | tools/asn2wrs.py | 2 |
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 |