Home
last modified time | relevance | path

Searched refs:ifr_flags (Results 1 – 25 of 55) sorted by relevance

123

/external/iproute2/ip/
Diptuntap.c55 ifr->ifr_flags |= IFF_TUN_EXCL; in tap_add_ioctl()
115 ifr->ifr_flags |= IFF_NO_PI; in parse_args()
121 if (ifr->ifr_flags & IFF_TAP) { in parse_args()
125 ifr->ifr_flags |= IFF_TUN; in parse_args()
127 if (ifr->ifr_flags & IFF_TUN) { in parse_args()
131 ifr->ifr_flags |= IFF_TAP; in parse_args()
170 ifr->ifr_flags &= ~IFF_NO_PI; in parse_args()
172 ifr->ifr_flags |= IFF_ONE_QUEUE; in parse_args()
174 ifr->ifr_flags |= IFF_VNET_HDR; in parse_args()
176 ifr->ifr_flags |= IFF_MULTI_QUEUE; in parse_args()
[all …]
/external/cronet/net/third_party/quiche/src/quiche/quic/qbone/bonnet/
Dtun_device.cc72 if_request.ifr_flags = IFF_UP; in Up()
88 if_request.ifr_flags = 0; in Down()
111 if_request.ifr_flags = IFF_MULTI_QUEUE | IFF_NO_PI; in OpenDevice()
113 if_request.ifr_flags |= IFF_TAP; in OpenDevice()
115 if_request.ifr_flags |= IFF_TUN; in OpenDevice()
Dtun_device_test.cc63 EXPECT_EQ(IFF_TUN | IFF_MULTI_QUEUE | IFF_NO_PI, ifr->ifr_flags); in SetInitExpectations()
93 EXPECT_TRUE(ifr->ifr_flags & IFF_UP); in ExpectUp()
109 EXPECT_FALSE(ifr->ifr_flags & IFF_UP); in ExpectDown()
/external/wpa_supplicant_8/src/drivers/
Dlinux_ioctl.c38 if (ifr.ifr_flags & IFF_UP) in linux_set_iface_flags()
40 ifr.ifr_flags |= IFF_UP; in linux_set_iface_flags()
42 if (!(ifr.ifr_flags & IFF_UP)) in linux_set_iface_flags()
44 ifr.ifr_flags &= ~IFF_UP; in linux_set_iface_flags()
77 return !!(ifr.ifr_flags & IFF_UP); in linux_iface_up()
Ddriver_wired_common.c53 *flags = ifr.ifr_flags & 0xffff; in driver_wired_get_ifflags()
71 ifr.ifr_flags = flags & 0xffff; in driver_wired_set_ifflags()
/external/autotest/client/deps/lansim/src/py/
Dtuntap.py138 ifr_name, ifr_flags = unpack_struct_ifreq(ifs, 'ifr_flags')
139 return ifr_flags
145 ifr_name, ifr_flags = unpack_struct_ifreq(ifs, 'ifr_flags')
146 return ifr_flags
/external/wpa_supplicant_8/src/ap/
Dvlan_ifconfig.c42 ifr.ifr_flags |= IFF_UP; in ifconfig_helper()
44 ifr.ifr_flags &= ~IFF_UP; in ifconfig_helper()
/external/ltp/testcases/kernel/syscalls/bind/
Dbind06.c79 ifr.ifr_flags = 0; in run()
81 ifr.ifr_flags = IFF_UP; in run()
/external/autotest/client/profilers/powertop/src/
Dethernet.c74 if (ifr.ifr_flags & (IFF_UP | IFF_RUNNING)) { in activate_WOL_suggestion()
115 if (ifr.ifr_flags & (IFF_UP | IFF_RUNNING)) { in suggest_WOL_off()
/external/libpcap/
Dfad-gifc.c307 if (ifrflags.ifr_flags & IFF_BROADCAST) { in pcap_findalldevs_interfaces()
346 if (ifrflags.ifr_flags & IFF_POINTOPOINT) { in pcap_findalldevs_interfaces()
413 ifrflags.ifr_flags, get_flags_func, in pcap_findalldevs_interfaces()
Dpcap-netmap.c158 ifr.ifr_flags = *if_flags & 0xffff; in pcap_netmap_ioctl()
184 *if_flags = ifr.ifr_flags & 0xffff; in pcap_netmap_ioctl()
/external/libwebsockets/lib/misc/
Dgetifaddrs.c144 (*end)->ifa_flags = (unsigned int)ifreq.ifr_flags; in getifaddrs2()
151 if (ifreq.ifr_flags & IFF_BROADCAST) { in getifaddrs2()
156 } else if (ifreq.ifr_flags & IFF_POINTOPOINT) { in getifaddrs2()
/external/cronet/net/third_party/quiche/src/quiche/quic/masque/
Dmasque_utils.cc67 ifr.ifr_flags = IFF_TUN | IFF_NO_PI; in CreateTunInterface()
123 ifr.ifr_flags |= (IFF_UP | IFF_RUNNING); in CreateTunInterface()
/external/toybox/toys/pending/
Darping.c64 if (!(req.ifr_flags & IFF_UP)) return; in get_interface()
216 if (!(ifr.ifr_flags & IFF_UP) && !(toys.optflags & FLAG_q)) in arping_main()
218 if ((ifr.ifr_flags & (IFF_NOARP | IFF_LOOPBACK)) in arping_main()
/external/toybox/toys/net/
Dtunctl.c45 ifr->ifr_flags = ((toys.optflags&FLAG_T) ? IFF_TUN : IFF_TAP)|IFF_NO_PI;
Difconfig.c121 flags = ifre.ifr_flags; in display_ifconfig()
544 ifre.ifr_flags &= ~(rev ? on : off); in ifconfig_main()
545 ifre.ifr_flags |= (rev ? off : on); in ifconfig_main()
/external/autotest/client/deps/fakemodem/src/
Dfakenet.c41 ifr.ifr_flags = IFF_TAP; in tun_alloc()
/external/ot-br-posix/src/utils/
Dinfra_link_selector.cpp223 …state = (ifReq.ifr_flags & IFF_UP) ? ((ifReq.ifr_flags & IFF_RUNNING) ? kUpAndRunning : kUp) : kDo… in QueryInfraLinkState()
/external/curl/lib/
Dif2ip.h83 #define ifr_flags ifr_ifru.ifru_flags /* flags */ macro
/external/ltp/testcases/network/packet/
Dfanout01.c67 ifr.ifr_flags &= ~(short)IFF_UP; in run()
/external/ltp/testcases/kernel/syscalls/setsockopt/
Dsetsockopt05.c47 ifr.ifr_flags = IFF_UP; in setup()
/external/iputils/
Drdisc.c1162 if ((ifreq.ifr_flags & IFF_UP) == 0) in initifs()
1164 if (ifreq.ifr_flags & IFF_LOOPBACK) in initifs()
1166 if ((ifreq.ifr_flags & (IFF_MULTICAST|IFF_BROADCAST|IFF_POINTOPOINT)) == 0) in initifs()
1172 interfaces[i].flags = ifreq.ifr_flags; in initifs()
1179 if (ifreq.ifr_flags & IFF_POINTOPOINT) { in initifs()
1201 if (ifreq.ifr_flags & IFF_BROADCAST) { in initifs()
/external/ltp/testcases/kernel/uevents/
Duevent02.c98 .ifr_flags = IFF_TUN, in generate_tun_uevents()
/external/musl/include/net/
Dif.h102 #define ifr_flags ifr_ifru.ifru_flags macro
/external/ltp/testcases/kernel/pty/
Dpty04.c262 ifreq.ifr_flags |= IFF_UP | IFF_RUNNING; in open_netdev()
266 if (!(ifreq.ifr_flags & IFF_UP)) in open_netdev()

123