Searched refs:IFF_TUN (Results 1 – 8 of 8) sorted by relevance
123 ifr->ifr_flags |= IFF_TUN; in parse_args()125 if (ifr->ifr_flags & IFF_TUN) { in parse_args()254 if (flags & IFF_TUN) in print_flags()269 flags &= ~(IFF_TUN|IFF_TAP|IFF_NO_PI|IFF_ONE_QUEUE|IFF_VNET_HDR); in print_flags()
26 #define TUN_TUN_DEV IFF_TUN61 #define IFF_TUN 0x0001 macro
16 from lansim.pyiftun import IFF_TAP, IFF_TUN77 IFF_TUN: "tun%d",82 def __init__(self, mode=pyiftun.IFF_TUN, name=None, tundev='/dev/net/tun'):
30 tun = tuntap.TunTap(tuntap.IFF_TUN, name="faketun%d")31 self.assertEqual(tun.mode, tuntap.IFF_TUN)
53 ifr.ifr_flags = IFF_TUN; in tun_alloc()
63 PyModule_AddIntMacro(m, IFF_TUN); in _init_linux_if_tun_h()
107 struct ifreq ifr = {.ifr_flags = IFF_TUN}; in android_hook()