Repository navigation
Commit 66317ed
committed
fix(internet): correct post-rebase IGMPv3 verification failures
Full-suite verification after the IGMPv3 sibling-class rebase (previous two
commits) found four real issues the squashed merge introduced or left
unresolved:
- `pcapkit/protocols/data/__init__.py` and `.../schema/__init__.py`: the
top-level `__all__` lists still carried a duplicate `'IGMP'` entry plus
the old single-class design's names (`IGMP_GroupAddressMessage`,
`IGMP_GroupBody`, etc.), which no longer exist. Replaced with the sibling
names (`IGMPv3`, `IGMPv3_Query`, `IGMPv3_Report`, `IGMPv3_GroupRecord`,
and the schema equivalents).
- `pcapkit/protocols/internet/igmpv3.py`: import block was isort-dirty
under the project's actual `-l100 -ppcapkit` Makefile flags.
- `tests/project/test_rfc_constants_one_home_1739_unit.py`: the new
`_classify` literal `12` (IGMPv3's minimum extended-Query length)
coincidentally matches `AH_HEADER_LEN`/`TCP_DATA_OFFSET_OCTET`/
`GENERIC_BLOCK_MINIMUM`; added an `UNRELATED` entry explaining why.
- `tests/protocols/internet/test_igmp_unit.py`: `test_refusals_name_the_version_refused`
used an 8-octet *Report* fixture to probe IGMPv3's rejection path, but a
Report type isn't Query-shaped at all, so IGMPv3's schema selector
refuses it with "unsupported message type" rather than the `read()`-level
"is not an IGMPv3 message" message the test expected. Switched to an
8-octet *Query* fixture, which is the shape all three versions actually
share.
Verified: `tests/protocols/internet/test_igmp_unit.py` (66 tests, 231
subtests), `tests/const/` + `tests/vendor/` + `test_dispatch_registry_unit.py`
(588 tests, 26811 subtests), `tests/corekit/test_schema_roundtrip_unit.py` +
`tests/project/` (2137 passed, 80 skipped, 0 failed, 11528 subtests) all
clean.1 parent 0e3ed56 commit 66317ed
5 files changed
Lines changed: 17 additions & 8 deletions
File tree
- pcapkit/protocols
- data
- internet
- schema
- tests
- project
- protocols/internet
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
80 | 80 | | |
81 | 81 | | |
82 | 82 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | 83 | | |
87 | 84 | | |
88 | 85 | | |
| |||
148 | 145 | | |
149 | 146 | | |
150 | 147 | | |
151 | | - | |
| 148 | + | |
152 | 149 | | |
153 | 150 | | |
154 | 151 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
58 | 57 | | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
85 | 84 | | |
86 | 85 | | |
87 | 86 | | |
88 | | - | |
| 87 | + | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
377 | 383 | | |
378 | 384 | | |
379 | 385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
| 335 | + | |
335 | 336 | | |
336 | 337 | | |
337 | 338 | | |
338 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
339 | 345 | | |
340 | | - | |
| 346 | + | |
341 | 347 | | |
342 | 348 | | |
343 | 349 | | |
| |||
0 commit comments