Searched refs:tun_attach (Results 1 – 2 of 2) sorted by relevance
| /linux/tools/testing/selftests/net/ |
| H A D | tun.c | 125 static int tun_attach(int fd, char *dev) in tun_attach() function 532 EXPECT_EQ(tun_attach(self->fd, self->ifname), 0); in TEST_F() 539 EXPECT_EQ(tun_attach(self->fd, self->ifname), 0); in TEST_F()
|
| /linux/drivers/net/ |
| H A D | tun.c | 690 static int tun_attach(struct tun_struct *tun, struct file *file, in tun_attach() function 940 err = tun_attach(tun, tun->file, false, ifr->ifr_flags & IFF_NAPI, in tun_net_init() 2732 err = tun_attach(tun, file, ifr->ifr_flags & IFF_NOFILTER, in tun_set_iff() 2962 ret = tun_attach(tun, file, false, tun->flags & IFF_NAPI, in tun_set_queue()
|