TunInterfaceOptions -> TunOptions
This commit is contained in:
parent
f20f56062c
commit
d3882bd008
6 changed files with 13 additions and 13 deletions
|
|
@ -12,7 +12,7 @@ use log::info;
|
|||
|
||||
use libc::in6_ifreq;
|
||||
|
||||
use super::{ifname_to_string, string_to_ifname, TunInterfaceOptions};
|
||||
use super::{ifname_to_string, string_to_ifname, TunOptions};
|
||||
|
||||
mod sys;
|
||||
|
||||
|
|
@ -24,11 +24,11 @@ pub struct TunInterface {
|
|||
impl TunInterface {
|
||||
#[throws]
|
||||
pub fn new() -> TunInterface {
|
||||
Self::new_with_options(TunInterfaceOptions::new())?
|
||||
Self::new_with_options(TunOptions::new())?
|
||||
}
|
||||
|
||||
#[throws]
|
||||
pub(crate) fn new_with_options(options: TunInterfaceOptions) -> TunInterface {
|
||||
pub(crate) fn new_with_options(options: TunOptions) -> TunInterface {
|
||||
let file = OpenOptions::new()
|
||||
.read(true)
|
||||
.write(true)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue