Home
last modified time | relevance | path

Searched refs:TUNSETIFF (Results 1 – 14 of 14) sorted by relevance

/linux/tools/include/uapi/linux/
H A Dif_tun.h34 #define TUNSETIFF _IOW('T', 202, int) macro
65 /* TUNSETIFF ifr flags */
/linux/include/uapi/linux/
H A Dif_tun.h34 #define TUNSETIFF _IOW('T', 202, int) macro
65 /* TUNSETIFF ifr flags */
70 /* Used in TUNSETIFF to bring up tun/tap without carrier */
/linux/Documentation/networking/
H A Dtuntap.rst112 if( (err = ioctl(fd, TUNSETIFF, (void *) &ifr)) < 0 ){
135 queues, TUNSETIFF with the same device name must be called many times with
169 err = ioctl(fd, TUNSETIFF, (void *)&ifr);
187 enabled by default after it was created through TUNSETIFF.
/linux/tools/testing/selftests/net/
H A Dtun.c57 err = ioctl(fd, TUNSETIFF, (void *) &ifr); in tun_alloc()
59 fprintf(stderr, "can't TUNSETIFF: %s\n", strerror(errno)); in tun_alloc()
H A Dskf_net_off.c70 ret = ioctl(fd, TUNSETIFF, &ifr); in tun_open()
72 error(1, ret, "ioctl TUNSETIFF"); in tun_open()
H A Dtap.c216 if (ioctl(fd, TUNSETIFF, &ifr, sizeof(ifr)) < 0) in opentap()
/linux/tools/virtio/
H A Dvhost_net_test.c77 e = ioctl(fd, TUNSETIFF, &ifr); in tun_alloc()
79 perror("ioctl[TUNSETIFF]"); in tun_alloc()
/linux/arch/xtensa/platforms/iss/
H A Dnetwork.c175 err = simc_ioctl(fd, TUNSETIFF, &ifr); in tuntap_open()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector.c579 ret = ioctl(fd, TUNSETIFF, &ifr); in create_tap()
H A Dtc_redirect.c1100 err = ioctl(fd, TUNSETIFF, &ifr); in tun_open()
1101 if (!ASSERT_OK(err, "ioctl TUNSETIFF")) in tun_open()
/linux/arch/um/drivers/
H A Dvector_user.c149 err = ioctl(fd, TUNSETIFF, (void *) &ifr); in create_tap_fd()
/linux/tools/testing/selftests/bpf/
H A Dnetwork_helpers.c581 err = ioctl(fd, TUNSETIFF, &ifr); in open_tuntap()
582 if (!ASSERT_OK(err, "ioctl(TUNSETIFF)")) { in open_tuntap()
/linux/drivers/net/
H A Dtun.c3053 if (cmd == TUNSETIFF || cmd == TUNSETQUEUE || in __tun_chr_ioctl()
3063 * TUNSETIFF. in __tun_chr_ioctl()
3078 if (cmd == TUNSETIFF) { in __tun_chr_ioctl()
3342 case TUNSETIFF: in tun_chr_compat_ioctl()
H A Dtap.c931 case TUNSETIFF: in tap_ioctl()