-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Inquiry Regarding Mutable Packet Types After Recent Updates
I'm currently in the process of updating my codebase to incorporate the latest changes in the library. Could you clarify whether the Mutable*Packet types (e.g., MutableEthernetPacket) are still available but perhaps relocated or renamed, or if they have been entirely removed?
In prior versions, I depended extensively on mutable packet structures for layered parsing and modification. For instance, I would start with a MutableEthernetPacket and, based on conditional logic, narrow it down to more specific subtypes by extracting and mutating the payload—something akin to MutableIPv4Packet::from(ethernet.payload_mut()) (this is pseudocode reconstructed from memory and may not be precise). Importantly, any modifications made within these narrowed subtypes would propagate back to the parent packet, enabling seamless chaining of operations across layers.
Is this pattern of chaining mutable packet types while progressively narrowing them still supported in the current implementation? If not, what alternative approaches would you recommend for achieving similar mutable, layered packet manipulation?