pub enum Ttl {
Value(u8),
Distance(u8, u8),
Guess(u8),
Bad(u8),
}
Expand description
Time To Live (TTL) representation used for OS fingerprinting and network distance calculation
Variants§
Value(u8)
Raw TTL value when we don’t have enough context to determine initial TTL Contains the observed TTL value from the IP header
Distance(u8, u8)
TTL with calculated network distance First u8 is the observed TTL value Second u8 is the estimated number of hops (distance = initial_ttl - observed_ttl)
Guess(u8)
TTL value that’s been guessed based on common OS initial values Contains the estimated initial TTL (e.g., 64 for Linux, 128 for Windows)
Bad(u8)
Invalid or problematic TTL value Contains the raw TTL value that was deemed invalid (e.g., 0)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Ttl
Auto Trait Implementations§
impl Freeze for Ttl
impl RefUnwindSafe for Ttl
impl Send for Ttl
impl Sync for Ttl
impl Unpin for Ttl
impl UnwindSafe for Ttl
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