Struct p0f_api::P0fResponse
[−]
[src]
pub struct P0fResponse { pub first_seen: i64, pub last_seen: i64, pub total_conn: u32, pub uptime: Duration, pub uptime_mod_days: u32, pub last_nat: i64, pub last_chg: i64, pub distance: i16, pub bad_sw: u8, pub os_match_q: u8, pub os_name: String, pub os_flavor: String, pub http_name: String, pub http_flavor: String, pub link_type: String, pub language: String, }
Rustified p0f api response.
Fields
first_seen: i64
First seen - seconds from UNIX_EPOCH.
last_seen: i64
Last seen - seconds from UNIX_EPOCH.
total_conn: u32
Total connections seen.
uptime: Duration
Last uptime.
uptime_mod_days: u32
Uptime modulo (days).
last_nat: i64
NAT / LB last detected - seconds from UNIX_EPOCH.
last_chg: i64
OS chg last detected - seconds from UNIX_EPOCH.
distance: i16
System distance.
bad_sw: u8
Host is lying about U-A / Server.
NOTE: If User-Agent is not present at all, this value stays at 0.
1
means OS difference (possibly due to proxying).2
means an outright mismatch.
os_match_q: u8
Match quality.
os_name: String
Name of detected OS.
os_flavor: String
Flavor of detected OS.
http_name: String
Name of detected HTTP app.
http_flavor: String
Flavor of detected HTTP app.
link_type: String
Link type.
language: String
Language.
Methods
impl P0fResponse
[src]
fn os_match_fuzzy(&self) -> bool
Returns true
if Match quality has P0F_MATCH_FUZZY
flag set
(e.g., TTL or DF difference).
fn os_match_generic(&self) -> bool
Returns true
if Match quality has P0F_MATCH_GENERIC
flag set
(generic signature).
fn os_difference(&self) -> bool
Returns true if there is an OS difference (bad_sw
>= 1).
NOTE: This will ever return true
only if p0f encountered some http software headers.
fn os_mismatch(&self) -> bool
Returns true if there's an OS difference (bad_sw
>= 2).
NOTE: This will ever return true
only if p0f encountered some http software headers.
Trait Implementations
impl Clone for P0fResponse
[src]
fn clone(&self) -> P0fResponse
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more