i want to ping the ipv4 internet
Plan
for i in 0..=255 {
for j in 0..=255 {
for k in 0..=255 {
for l in 0..=255 {
let ip_addr = format!("{}.{}.{}.{}", i, j, k, l)
let time_to_response: Optional<Duration> = ping(ip_addr);
match time_to_response {
Some(time) => {
// write to sqlite
},
None => {
// just move on
}
}
}
}
}
}
But that'll take a while. There are