what is going on uhhhhhh

This commit is contained in:
lda
2025-12-02 16:54:09 +07:00 Unverified
parent c3486527de
commit 2cb65d7ee6
6 changed files with 59 additions and 11 deletions
+2 -2
View File
@@ -19,9 +19,9 @@
// prefix seems to be a cidr. both 6 and 4 works. idfk dog
use super::AddrInfo;
use super::AddrOutput;
pub async fn get(dev: Option<&str>) -> anyhow::Result<Vec<AddrInfo>> {
pub async fn get(dev: Option<&str>) -> anyhow::Result<Vec<AddrOutput>> {
let mut cmd = tokio::process::Command::new("ip");
cmd.args(["-j", "address", "show"]);
+5 -2
View File
@@ -10,6 +10,10 @@ use super::{NUDState, NeighborItem};
// i think ill write tokio::process every time tho (for this if let thing) because iterate through all ts youll have to as str and all the hooplas.
// it all turns to live osstr tho so ts just for my own sanity
// thiserror? anyhow
// what is vro sayin
// ahh. instead of using [wakey::utils::cmd::exec_command] which is ass we jus write everything out. so i dont have to .as_str() so often.
pub async fn get(
ip: Option<IpAddr>,
dev: Option<&str>,
@@ -23,8 +27,7 @@ pub async fn get(
};
if let Some(dev) = dev {
cmd.arg("dev");
cmd.arg(dev);
cmd.args(["dev", dev]);
}
for nud in nud {
cmd.arg("nud");
+2
View File
@@ -1,3 +1,5 @@
//! this is purely experimental. im not doing ts no mo
// hallo
use std::{
collections::{HashMap, HashSet},