Repository navigation
fix(ipx)!: keep the octets past the IPX Length field as captured (#1433) - #1435
Merged
Merged
Conversation
Ethernet hands IPX the whole rest of its frame, but IPX reads only its Packet Length, so the octets past it (most often minimum-frame padding) were in no info and from_data dropped them: a padded 60-octet frame rebuilt as 44. - schema: add a length-less trailer PayloadField after the payload - read(): record it as info.trailer, only when non-empty - make(trailer=): write it after the packet, outside the Packet Length - _make_data(): round-trip it BREAKING: IPX info gains a trailer key on padded frames.
Owner
Author
|
Verdict: GOOD TO GO at
|
Contributor
|
Coverage: 89.45% (unit tier, Python 3.14,
Per-file detail: the |
This was referenced Oct 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Searched for similar pull requests
Followed the coding style (
make pylint,make mypy,make isort): ran mypy and pylint on the three IPX files only; mypy is clean, and pylint adds only the existing stub-signature warningsmake testpasses, and a test case covers the change: ran the modules listed belowChangelog entry: N/A, centralised in docs(changelog): shared 1.5.0 changelog — long-lived, merges last (#610, #616, #617, #618, #620) #657
fix: corrects a defectCloses #1433
This is the IPX counterpart of #1431 and has the same shape, without depending on it. The schema gains a length-less
trailerPayloadFieldafter the payload.read()keeps it asinfo.traileronly when it is non-empty.make(trailer=)writes it after the packet and leaves it out of the Packet Length, and_make_dataround-trips it. Breaking:infogains a key on padded frames.trailer16 BtrailerTests: the new
tests/protocols/internet/test_ipx_trailer_kept_unit.pypasses 4 tests and 4 subtests. Without the fix, 2 tests and 2 subtests fail. The other IPX modules, everytests/protocols/linkmodule,tests/project(404 passed, 1 skipped) and theprotocols/internetleg (580 tests, OK) all pass. Per-frameinfofor everyexamples/captures/file is identical before and after.