Skip to content

Add IpHeadersSlice and IpSlice::header()#136

Open
xyzzyz wants to merge 1 commit intoJulianSchmid:masterfrom
xyzzyz:amichalik/ipheaders-from-slice
Open

Add IpHeadersSlice and IpSlice::header()#136
xyzzyz wants to merge 1 commit intoJulianSchmid:masterfrom
xyzzyz:amichalik/ipheaders-from-slice

Conversation

@xyzzyz
Copy link
Contributor

@xyzzyz xyzzyz commented Feb 22, 2026

Introduce IpHeadersSlice as an enum over Ipv4HeaderSlice and Ipv6HeaderSlice, with convenience accessors and conversion to IpHeaders.

Add IpSlice::header() to that returns IpHeadersSlice. Add IpSlice::to_header that returns IpHeaders

Introduce IpHeadersSlice as an enum over Ipv4HeaderSlice and Ipv6HeaderSlice, with convenience accessors and conversion to IpHeaders. Add IpSlice::header() to expose base IP header slices, export the new net module, and extend tests with unit and proptest coverage for conversion consistency and round-trip invariants.
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.

1 participant