Skip to content

Commit fc80fb1

Browse files
committed
test(project): excuse IGMPv3's 16-bit record-count bound in the constants sweep
#2662 range-checks num_group_records against 0xFFFF, the Number of Group Records field's maximum (RFC 3376 section 4.2.1), which the one-home sweep read as a copy of IP_MAX_LENGTH. Key it in NOT_A_COPY by its exact expression.
1 parent 0add177 commit fc80fb1

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎tests/project/test_rfc_constants_one_home_1739_unit.py‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,9 @@
249249
'record header length',
250250
('pcapkit/protocols/internet/icmp.py', 'version == 6'):
251251
'ICMPv6, the ICMP of IP version 6 (:rfc:`4443`), not the Next Header offset',
252+
('pcapkit/protocols/internet/igmpv3.py', 'len(record_list) <= num_group_records <= 65535'):
253+
"the 16-bit Number of Group Records field's maximum (:rfc:`3376#section-4.2.1`), not an "
254+
'IP total length',
252255
('pcapkit/protocols/internet/ip.py', 'version == 6'):
253256
'the IP version number, not the Next Header offset',
254257
('pcapkit/protocols/internet/ipv6.py', "schema.hextet['version'] != 6"):

0 commit comments

Comments
 (0)