Home
last modified time | relevance | path

Searched refs:IFF_TUN (Results 1 – 8 of 8) sorted by relevance

/linux/tools/include/uapi/linux/
H A Dif_tun.h27 #define TUN_TUN_DEV IFF_TUN
66 #define IFF_TUN 0x0001 macro
/linux/include/uapi/linux/
H A Dif_tun.h27 #define TUN_TUN_DEV IFF_TUN
66 #define IFF_TUN 0x0001 macro
/linux/Documentation/networking/
H A Dtuntap.rst103 /* Flags: IFF_TUN - TUN device (no Ethernet headers)
108 ifr.ifr_flags = IFF_TUN;
157 /* Flags: IFF_TUN - TUN device (no Ethernet headers)
H A Dphonet.rst70 requires IFF_TUN mode, _without_ the IFF_NO_PI flag. In this case,
/linux/drivers/net/
H A Dtun.c1313 case IFF_TUN: in tun_net_initialize()
1823 case IFF_TUN: in tun_get_user()
2652 return tun->flags & (TUN_FEATURES | IFF_PERSIST | IFF_TUN | IFF_TAP); in tun_flags()
2720 if ((ifr->ifr_flags & IFF_TUN) && dev->netdev_ops == &tun_netdev_ops) in tun_set_iff()
2769 if (ifr->ifr_flags & IFF_TUN) { in tun_set_iff()
2771 flags |= IFF_TUN; in tun_set_iff()
3073 return put_user(IFF_TUN | IFF_TAP | IFF_NO_CARRIER | in __tun_chr_ioctl()
3532 case IFF_TUN: in tun_get_drvinfo()
/linux/tools/testing/selftests/bpf/
H A Dnetwork_helpers.c583 ifr.ifr_flags = IFF_NO_PI | (need_mac ? IFF_TAP : IFF_TUN); in open_tuntap()
/linux/tools/testing/selftests/net/
H A Dtun.c735 flags = (variant->is_tap ? IFF_TAP : IFF_TUN) | IFF_VNET_HDR | in FIXTURE_SETUP()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtc_redirect.c1096 ifr.ifr_flags = IFF_TUN | IFF_NO_PI; in tun_open()