diff options
author | Martin Mathieson <martin.mathieson@keysight.com> | 2023-01-18 10:37:53 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2023-01-20 12:47:59 +0000 |
commit | be51acfffbc320f2458a41cf920b6bbb03565691 (patch) | |
tree | eede14962998de95ad38eff1957dce68a43280b9 /tools | |
parent | 5f63989ee0b3d77d2b484ae712ac370f84a3ba68 (diff) |
Fix some issues seen by tools/check_typed_item_calls.py
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/check_typed_item_calls.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/check_typed_item_calls.py b/tools/check_typed_item_calls.py index 55be59a16d..bcd5a1a0d3 100755 --- a/tools/check_typed_item_calls.py +++ b/tools/check_typed_item_calls.py @@ -37,7 +37,7 @@ errors_found = 0 def name_has_one_of(name, substring_list): for word in substring_list: - if name.find(word) != -1: + if name.lower().find(word) != -1: return True return False @@ -274,8 +274,8 @@ known_non_contiguous_fields = { 'wlan.fixed.capabilities.cfpoll.sta', 'stun.type.class', 'bssgp.csg_id', 'tiff.t6.unused', 'artnet.ip_prog_reply.unused', 'telnet.auth.mod.enc', 'osc.message.midi.bender', 'btle.data_header.rfu', - 'stun.type.method' # figure 3 in rfc 5389 - + 'stun.type.method', # figure 3 in rfc 5389 + 'tds.done.status' # covers all bits in bitset } ################################################################################################## @@ -399,6 +399,9 @@ class Item: # Do see non-contiguous bits often for these.. if name_has_one_of(self.hf, ['reserved', 'unknown']): return + if name_has_one_of(self.label, ['reserved', 'unknown']): + return + # Walk past any l.s. 0 bits n = 0 |