pub struct TcpIndexKey {
pub ip_version_key: IpVersion,
pub olayout_key: String,
pub pclass_key: PayloadSize,
}
Expand description
Index key for TCP signatures, used to optimize database lookups.
This key is generated from a tcp::Signature
and combines several
of its most discriminative fields to allow for a fast initial filtering
of potential matches in the signature database. The goal is to quickly
narrow down the search space before performing more detailed and costly
distance calculations.
The fields included are chosen for their balance of providing good discrimination while not being overly specific to avoid missing matches due to minor variations (which are handled by the distance calculation).
Fields§
§ip_version_key: IpVersion
§olayout_key: String
§pclass_key: PayloadSize
Trait Implementations§
Source§impl Clone for TcpIndexKey
impl Clone for TcpIndexKey
Source§fn clone(&self) -> TcpIndexKey
fn clone(&self) -> TcpIndexKey
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 TcpIndexKey
impl Debug for TcpIndexKey
Source§impl Hash for TcpIndexKey
impl Hash for TcpIndexKey
Source§impl PartialEq for TcpIndexKey
impl PartialEq for TcpIndexKey
impl Eq for TcpIndexKey
impl IndexKey for TcpIndexKey
impl StructuralPartialEq for TcpIndexKey
Auto Trait Implementations§
impl Freeze for TcpIndexKey
impl RefUnwindSafe for TcpIndexKey
impl Send for TcpIndexKey
impl Sync for TcpIndexKey
impl Unpin for TcpIndexKey
impl UnwindSafe for TcpIndexKey
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