what is going on uhhhhhh
This commit is contained in:
@@ -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"]);
|
||||
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
//! this is purely experimental. im not doing ts no mo
|
||||
|
||||
// hallo
|
||||
use std::{
|
||||
collections::{HashMap, HashSet},
|
||||
|
||||
Reference in New Issue
Block a user