mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-14 04:28:21 +00:00
fix: remove netdevice crate usage
This commit is contained in:
parent
5383927684
commit
a0b8572089
1 changed files with 2 additions and 2 deletions
|
@ -196,7 +196,7 @@ fn main() {
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
};
|
};
|
||||||
if iface.flags & (netdevice::IFF_UP.bits() as u32) == 0 {
|
if !iface.is_up() {
|
||||||
error!("specified interface is DOWN");
|
error!("specified interface is DOWN");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -286,7 +286,7 @@ fn main() {
|
||||||
let (mut tx, mut rx) = get_channel(masscanned.iface.unwrap());
|
let (mut tx, mut rx) = get_channel(masscanned.iface.unwrap());
|
||||||
loop {
|
loop {
|
||||||
/* check if network interface is still up */
|
/* check if network interface is still up */
|
||||||
if masscanned.iface.unwrap().flags & (netdevice::IFF_UP.bits() as u32) == 0 {
|
if !masscanned.iface.unwrap().is_up() {
|
||||||
error!("interface is DOWN - aborting");
|
error!("interface is DOWN - aborting");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue