HomeSort by relevance Sort by last modified time
    Searched refs:pyiftun (Results 1 - 2 of 2) sorted by null

  /external/autotest/client/deps/lansim/src/
pyiftun_unittest.py 8 """Simple tests to validate that pyiftun is compiled and installed."""
16 from lansim import pyiftun
20 from lansim import pyiftun
21 self.assertTrue(hasattr(pyiftun, 'TUNSETIFF'))
  /external/autotest/client/deps/lansim/src/py/
tuntap.py 10 from lansim import pyiftun
16 from lansim.pyiftun import IFF_TAP, IFF_TUN
34 IFNAMSIZ_FMT = str(pyiftun.IFNAMSIZ) + 's'
82 def __init__(self, mode=pyiftun.IFF_TUN, name=None, tundev='/dev/net/tun'):
88 pyiftun.IFF_*.
95 tun_type = mode & pyiftun.TUN_TYPE_MASK
112 ifs = fcntl.ioctl(fd, pyiftun.TUNSETIFF,
129 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCGIFMTU,
136 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCGIFFLAGS,
143 ifs = fcntl.ioctl(self._sock, pyiftun.SIOCSIFFLAGS
    [all...]

Completed in 491 milliseconds