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 - seconds from UNIX_EPOCH.

Last seen - seconds from UNIX_EPOCH.

Total connections seen.

Last uptime.

Uptime modulo (days).

NAT / LB last detected - seconds from UNIX_EPOCH.

OS chg last detected - seconds from UNIX_EPOCH.

System distance.

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.

Match quality.

Name of detected OS.

Flavor of detected OS.

Name of detected HTTP app.

Flavor of detected HTTP app.

Link type.

Language.

Methods

impl P0fResponse
[src]

Returns true if Match quality has P0F_MATCH_FUZZY flag set (e.g., TTL or DF difference).

Returns true if Match quality has P0F_MATCH_GENERIC flag set (generic signature).

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.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for P0fResponse
[src]

Formats the value using the given formatter.