2026-01-14 09:53:01 -05:00
|
|
|
use log::{debug, info};
|
|
|
|
|
mod config;
|
2026-01-13 07:57:47 -05:00
|
|
|
mod device_finders;
|
|
|
|
|
|
2026-01-13 15:48:17 -05:00
|
|
|
#[tokio::main]
|
|
|
|
|
async fn main() {
|
2026-01-14 09:53:01 -05:00
|
|
|
env_logger::init();
|
|
|
|
|
info!("Starting up oott");
|
2026-01-13 07:57:47 -05:00
|
|
|
|
2026-01-15 11:19:33 -05:00
|
|
|
let devices = device_finders::arp::find("wlp1s0").await;
|
2026-01-14 09:53:01 -05:00
|
|
|
|
|
|
|
|
info!("Done with ARP probes");
|
2026-01-15 11:19:33 -05:00
|
|
|
info!("Found {} online devices", devices.iter().count());
|
2026-01-13 07:57:47 -05:00
|
|
|
for device in devices.iter() {
|
2026-01-15 11:19:33 -05:00
|
|
|
info!("Device found {}", device);
|
2026-01-13 07:57:47 -05:00
|
|
|
}
|
2026-01-14 09:53:01 -05:00
|
|
|
info!("Exiting");
|
2026-01-13 07:57:47 -05:00
|
|
|
}
|