pub struct Flow {Show 21 fields
pub id: Option<u32>,
pub origin: Option<IpTuple>,
pub reply: Option<IpTuple>,
pub proto_info: Option<ProtoInfo>,
pub counter_origin: Option<Counter>,
pub counter_reply: Option<Counter>,
pub timeout: Option<Duration>,
pub status: Option<Vec<String>>,
pub entry_use: Option<u32>,
pub zone: Option<u16>,
pub mark: Option<u32>,
pub mark_mask: Option<u32>,
pub timestamp: Option<Timestamp>,
pub status_mask: Option<u32>,
pub helper: Option<Helper>,
pub nat_src: Option<Nat>,
pub seq_adj_orig: Option<SeqAdj>,
pub seq_adj_repl: Option<SeqAdj>,
pub sec_ctx: Option<SecCtx>,
pub sec_mark: Option<u32>,
pub exp: Option<Exp>,
}
Expand description
The Flow
type contains all the information of a connection dumped from the
conntrack table. Note that the Flow
type can be used to support multiple
extended formats as well to allow for expansions on the library. Thus, all
fields will be optional to support the various formats/options/configs
that can be set by the linux kernel.
Fields§
§id: Option<u32>
Unique id assigned to this conntrack entry.
origin: Option<IpTuple>
The origin of the network traffic, containing the src
address and sport
, the dst
address and dport
, and protocol information.
reply: Option<IpTuple>
The reply of the network traffic, containing the src
address and sport
, the dst
address and dport
, and protocol information.
proto_info: Option<ProtoInfo>
Metadata specific to the protocol being used to facilitate the network transfer.
counter_origin: Option<Counter>
Byte and packet counter data relative to the traffic origin. Enable with sysctl -w net.netfilter.nf_conntrack_acct=1
counter_reply: Option<Counter>
Byte and packet counter data relative to the traffic reply. Enable with sysctl -w net.netfilter.nf_conntrack_acct=1
timeout: Option<Duration>
Duration until conntrack entry is invalidated; reset to initial value when connection sees a new packet. Default TCP connection timeout is 5 days.
status: Option<Vec<String>>
Contains the status values parsed into the various status flags, represented as strings.
entry_use: Option<u32>
Use is a reference count for the connection used internally for garbage collection.
zone: Option<u16>
§mark: Option<u32>
§mark_mask: Option<u32>
§timestamp: Option<Timestamp>
§status_mask: Option<u32>
§helper: Option<Helper>
§nat_src: Option<Nat>
§seq_adj_orig: Option<SeqAdj>
§seq_adj_repl: Option<SeqAdj>
§sec_ctx: Option<SecCtx>
§sec_mark: Option<u32>
§exp: Option<Exp>