This repository was archived by the owner on Nov 20, 2025. It is now read-only.
Fixed
- PR#20 changed
EtherTypeandIpProtofrom enums to scoped constants to avoid UB in the presence of invalid/corrupt data that didn't match a variant. Also removed a bunch of theIpProtovariants as most will never be used, and since it's now scoped constants users can provide their own constants without needing them in the lib themselves. Resolved #19. - PR#23 added sanity checks to avoid subtraction underflow if the user provides wildly out of range offsets and/or slices to
Packetmethods. - PR#23 fixed a bug in
Packet::array_at_offsetwhere the offset was incorrect ifheadwas not 0. - PR#23 added a check in
UdpHeader::parse_packetto ensure the UDP length matches the packet buffer length.
Changed
- PR#22 removed the
Index/Mutimpls fromXskProducer/Consumeras they were unneccessary fluff in favor of much simpler internal methods. - PR#23 changed
data_offsetanddata_lengthto justdata, a range that is convertible to/fromstd::ops::Range<usize>.data_lengthis now a method that just returnsdata.end - data.start.