Skip to content

fix: decode ECN codepoint 0b11 as CongestionExperienced#35

Open
thomaseizinger wants to merge 1 commit into
oxidecomputer:mainfrom
firezone:claude/ip-packet-ingot-refactor-3wzbin
Open

fix: decode ECN codepoint 0b11 as CongestionExperienced#35
thomaseizinger wants to merge 1 commit into
oxidecomputer:mainfrom
firezone:claude/ip-packet-ingot-refactor-3wzbin

Conversation

@thomaseizinger

Copy link
Copy Markdown

Ecn::from_network and Ecn::try_from both mapped the wire value 3 (CE, "Congestion Experienced") to Ecn::Capable0, silently collapsing the CE marking into ECT(1) on the next serialisation and dropping the congestion signal. Decode it to the existing Ecn::CongestionExperienced variant instead so all four RFC 3168 codepoints round-trip.

@thomaseizinger
thomaseizinger force-pushed the claude/ip-packet-ingot-refactor-3wzbin branch 2 times, most recently from cebbfb2 to be8cca2 Compare July 17, 2026 04:44
@thomaseizinger

Copy link
Copy Markdown
Author

@FelixMcFelix Could you take a look at this please?

@FelixMcFelix FelixMcFelix left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good; thanks for the catch here.

@FelixMcFelix

Copy link
Copy Markdown
Collaborator

@thomaseizinger I think CI will pass once you rebase on/merge main, if you could do so please?

`Ecn::from_network` and `Ecn::try_from` both mapped the wire value 3
(CE, "Congestion Experienced") to `Ecn::Capable0`, silently collapsing
the CE marking into ECT(1) on the next serialisation and dropping the
congestion signal. Decode it to the existing `Ecn::CongestionExperienced`
variant instead so all four RFC 3168 codepoints round-trip.
@thomaseizinger
thomaseizinger force-pushed the claude/ip-packet-ingot-refactor-3wzbin branch from be8cca2 to e63b00f Compare July 24, 2026 22:36
@thomaseizinger

Copy link
Copy Markdown
Author

@thomaseizinger I think CI will pass once you rebase on/merge main, if you could do so please?

Done! Rebased onto latest main.

@thomaseizinger

Copy link
Copy Markdown
Author

At patch-release with these changes in it would be much appreciated 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants