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