pub enum IpReconstructionPattern {
OutOfContext,
TwoBytesWithLastIp(u16),
FourBytesWithLastIp(u32),
SixBytesExtended(u64),
SixBytesWithLastIp(u64),
EightBytes(u64),
}Expand description
Pattern for IP reconstruction
You can use utility function reconstruct_ip_and_update_last
to use this enumerate.
Variants§
OutOfContext
None, IP is out of context
TwoBytesWithLastIp(u16)
IP Payload[15:0]
FourBytesWithLastIp(u32)
IP Payload[31:0]
SixBytesExtended(u64)
IP Payload[47:0], the upper 2 bytes are guaranteed to be cleared
SixBytesWithLastIp(u64)
IP Payload[47:0], the upper 2 bytes are guaranteed to be cleared
EightBytes(u64)
IP Payload[63:0]
Trait Implementations§
Source§impl Clone for IpReconstructionPattern
impl Clone for IpReconstructionPattern
Source§fn clone(&self) -> IpReconstructionPattern
fn clone(&self) -> IpReconstructionPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IpReconstructionPattern
impl Debug for IpReconstructionPattern
Source§impl Display for IpReconstructionPattern
impl Display for IpReconstructionPattern
impl Copy for IpReconstructionPattern
Auto Trait Implementations§
impl Freeze for IpReconstructionPattern
impl RefUnwindSafe for IpReconstructionPattern
impl Send for IpReconstructionPattern
impl Sync for IpReconstructionPattern
impl Unpin for IpReconstructionPattern
impl UnwindSafe for IpReconstructionPattern
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more