2026-01-20 14:28:31 -05:00
|
|
|
use log::{debug, info};
|
2026-01-19 19:03:08 -05:00
|
|
|
|
2026-01-14 09:53:01 -05:00
|
|
|
mod config;
|
2026-01-19 19:03:08 -05:00
|
|
|
mod db;
|
2026-01-13 07:57:47 -05:00
|
|
|
mod device_finders;
|
2026-01-19 12:45:52 -05:00
|
|
|
mod mac_vendor_finder;
|
2026-01-13 07:57:47 -05:00
|
|
|
|
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-20 14:28:31 -05:00
|
|
|
let db_conn = db::init_db();
|
2026-01-19 12:45:52 -05:00
|
|
|
|
2026-01-20 14:28:31 -05:00
|
|
|
let devices = device_finders::arp::find("eno1").await.unwrap();
|
2026-01-14 09:53:01 -05:00
|
|
|
|
2026-01-20 14:28:31 -05:00
|
|
|
info!("Done with ARP probes");
|
|
|
|
|
info!("Found {} online devices", devices.iter().count());
|
|
|
|
|
|
|
|
|
|
// mac_vendor_finder.populate_vendors(&devices);
|
|
|
|
|
|
|
|
|
|
for device in devices.iter() {
|
|
|
|
|
debug!("Device found {}", device);
|
|
|
|
|
}
|
2026-01-19 12:45:52 -05:00
|
|
|
|
2026-01-14 09:53:01 -05:00
|
|
|
info!("Exiting");
|
2026-01-13 07:57:47 -05:00
|
|
|
}
|