mirror of
https://github.com/ivre/masscanned.git
synced 2025-10-02 06:38: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;
|
||||
};
|
||||
if iface.flags & (netdevice::IFF_UP.bits() as u32) == 0 {
|
||||
if !iface.is_up() {
|
||||
error!("specified interface is DOWN");
|
||||
return;
|
||||
}
|
||||
|
@ -286,7 +286,7 @@ fn main() {
|
|||
let (mut tx, mut rx) = get_channel(masscanned.iface.unwrap());
|
||||
loop {
|
||||
/* 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");
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue