Searched refs:TunTapInterface (Results 1 – 4 of 4) sorted by relevance
12 pub struct TunTapInterface { struct18 impl AsRawFd for TunTapInterface { implementation24 impl TunTapInterface { implementation30 pub fn new(name: &str, medium: Medium) -> io::Result<TunTapInterface> { in new() argument34 Ok(TunTapInterface { in new()42 impl Device for TunTapInterface { implementation
131 pub use self::tuntap_interface::TunTapInterface;
16 use smoltcp::phy::TunTapInterface;100 pub fn parse_tuntap_options(matches: &mut Matches) -> TunTapInterface { in parse_tuntap_options() argument104 (Some(tun), None) => TunTapInterface::new(&tun, Medium::Ip).unwrap(), in parse_tuntap_options()105 (None, Some(tap)) => TunTapInterface::new(&tap, Medium::Ethernet).unwrap(), in parse_tuntap_options()
196 Enable `smoltcp::phy::RawSocket` and `smoltcp::phy::TunTapInterface`, respectively.