net_util: make constructor fields match struct
Statisfies nightly clippy. Signed-off-by: Gaelan Steele <gbs@canishe.com>
This commit is contained in:
parent
7a18e247f4
commit
d72d7fd93c
1 changed files with 1 additions and 1 deletions
|
|
@ -190,7 +190,7 @@ impl Tap {
|
|||
return Err(Error::ConfigureTap(IoError::last_os_error()));
|
||||
}
|
||||
|
||||
let tap = Tap { if_name, tap_file };
|
||||
let tap = Tap { tap_file, if_name };
|
||||
let offload_flags =
|
||||
net_gen::TUN_F_CSUM | net_gen::TUN_F_UFO | net_gen::TUN_F_TSO4 | net_gen::TUN_F_TSO6;
|
||||
let vnet_hdr_size = vnet_hdr_len() as i32;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue