Home
last modified time | relevance | path

Searched refs:TunTapInterface (Results 1 – 4 of 4) sorted by relevance

/smoltcp-0.9.1/src/phy/
Dtuntap_interface.rs12 pub struct TunTapInterface { struct
18 impl AsRawFd for TunTapInterface { implementation
24 impl TunTapInterface { implementation
30 pub fn new(name: &str, medium: Medium) -> io::Result<TunTapInterface> { in new() argument
34 Ok(TunTapInterface { in new()
42 impl Device for TunTapInterface { implementation
Dmod.rs131 pub use self::tuntap_interface::TunTapInterface;
/smoltcp-0.9.1/examples/
Dutils.rs16 use smoltcp::phy::TunTapInterface;
100 pub fn parse_tuntap_options(matches: &mut Matches) -> TunTapInterface { in parse_tuntap_options() argument
104 (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()
/smoltcp-0.9.1/
DREADME.md196 Enable `smoltcp::phy::RawSocket` and `smoltcp::phy::TunTapInterface`, respectively.