pub struct HuginnNetTcp<'a> {
pub matcher: Option<SignatureMatcher<'a>>,
/* private fields */
}
Expand description
A TCP-focused passive fingerprinting analyzer.
The HuginnNetTcp
struct handles TCP packet analysis for OS fingerprinting,
MTU detection, and uptime calculation using p0f-style methodologies.
Fields§
§matcher: Option<SignatureMatcher<'a>>
Implementations§
Source§impl<'a> HuginnNetTcp<'a>
impl<'a> HuginnNetTcp<'a>
Sourcepub fn new(
database: Option<&'a Database>,
max_connections: usize,
) -> Result<Self, HuginnNetTcpError>
pub fn new( database: Option<&'a Database>, max_connections: usize, ) -> Result<Self, HuginnNetTcpError>
Sourcepub fn analyze_network(
&mut self,
interface_name: &str,
sender: Sender<TcpAnalysisResult>,
cancel_signal: Option<Arc<AtomicBool>>,
) -> Result<(), HuginnNetTcpError>
pub fn analyze_network( &mut self, interface_name: &str, sender: Sender<TcpAnalysisResult>, cancel_signal: Option<Arc<AtomicBool>>, ) -> Result<(), HuginnNetTcpError>
Analyzes network traffic from a live network interface for TCP packets.
§Parameters
interface_name
: The name of the network interface to capture from.sender
: A channel sender to send analysis results.cancel_signal
: Optional atomic boolean to signal cancellation.
§Returns
A Result
indicating success or failure.
Auto Trait Implementations§
impl<'a> Freeze for HuginnNetTcp<'a>
impl<'a> RefUnwindSafe for HuginnNetTcp<'a>
impl<'a> Send for HuginnNetTcp<'a>
impl<'a> Sync for HuginnNetTcp<'a>
impl<'a> Unpin for HuginnNetTcp<'a>
impl<'a> UnwindSafe for HuginnNetTcp<'a>
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