From 6978f7d9c05a2d46c0d117c4a3a38d10b26026a1 Mon Sep 17 00:00:00 2001 From: "E. Almqvist" Date: Thu, 11 Aug 2022 01:18:21 +0200 Subject: [PATCH] Start work on generators --- src/ipv4.rs | 3 +++ src/scanner.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/src/ipv4.rs b/src/ipv4.rs index 1c2fa3c..ea60063 100644 --- a/src/ipv4.rs +++ b/src/ipv4.rs @@ -18,6 +18,9 @@ pub struct IPv4 { pub id: u64, pub ip: [u8; 4], pub ignore: bool, +// pub enum __Generator { +// Start(&'static) +// } } impl IPv4 { diff --git a/src/scanner.rs b/src/scanner.rs index 9e9734d..ebf9c36 100644 --- a/src/scanner.rs +++ b/src/scanner.rs @@ -9,6 +9,7 @@ fn tcp_scan(mut target: ipv4::IPv4, target_port: u16) -> bool { let dest = target.to_socketaddr(target_port).unwrap(); false +// TODO: FIX // if let Ok(res) = TcpStream::connect(dest) { // info!("* Got TCP ack from: {:?} | {:?}", dest, res); // return true;