Home
last modified time | relevance | path

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

12

/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/openssh/openbsd-compat/
Dport-tun.c74 ifr.ifr_flags = IFF_TAP; in sys_tun_open()
77 ifr.ifr_flags = IFF_TUN; in sys_tun_open()
80 ifr.ifr_flags |= IFF_NO_PI; in sys_tun_open()
177 if ((ifr.ifr_flags & IFF_UP) == 0) { in sys_tun_open()
178 ifr.ifr_flags |= IFF_UP; in sys_tun_open()
/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()
Ddriver_bsd.c311 drv->flags = ifr.ifr_flags; in bsd_ctrl_iface()
314 if (ifr.ifr_flags & IFF_UP) in bsd_ctrl_iface()
316 ifr.ifr_flags |= IFF_UP; in bsd_ctrl_iface()
318 if (!(ifr.ifr_flags & IFF_UP)) in bsd_ctrl_iface()
320 ifr.ifr_flags &= ~IFF_UP; in bsd_ctrl_iface()
329 drv->flags = ifr.ifr_flags; in bsd_ctrl_iface()
/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/libpcap/
Dfad-gifc.c313 if (ifrflags.ifr_flags & IFF_BROADCAST) { in pcap_findalldevs_interfaces()
352 if (ifrflags.ifr_flags & IFF_POINTOPOINT) { in pcap_findalldevs_interfaces()
419 ifrflags.ifr_flags, get_flags_func, in pcap_findalldevs_interfaces()
Dpcap-netmap.c159 ifr.ifr_flags = *if_flags & 0xffff; in pcap_netmap_ioctl()
185 *if_flags = ifr.ifr_flags & 0xffff; in pcap_netmap_ioctl()
Dpcap-linux.c990 ifr.ifr_flags |= IFF_UP|IFF_RUNNING;
1262 if (ifr.ifr_flags & IFF_PROMISC) {
1267 ifr.ifr_flags &= ~IFF_PROMISC;
1320 if (ifr.ifr_flags & IFF_UP) {
1321 oldflags = ifr.ifr_flags;
1322 ifr.ifr_flags &= ~IFF_UP;
1349 ifr.ifr_flags = oldflags;
2367 if (find_or_add_if(devlistp, name, ifrflags.ifr_flags,
6041 if (ifr.ifr_flags & IFF_UP) {
6042 oldflags = ifr.ifr_flags;
[all …]
/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/toybox/toys/pending/
Darping.c64 if (!(req.ifr_flags & IFF_UP)) return; in get_interface()
217 if (!(ifr.ifr_flags & IFF_UP) && !(toys.optflags & FLAG_q)) in arping_main()
219 if ((ifr.ifr_flags & (IFF_NOARP | IFF_LOOPBACK)) in arping_main()
/external/honggfuzz/examples/linux_kernel_ip/
Dtun.c74 ifr.ifr_flags = IFF_TUN | IFF_NO_PI | IFF_NOFILTER; in main()
135 ifr.ifr_flags |= (IFF_UP | IFF_RUNNING); in main()
/external/toybox/toys/net/
Dtunctl.c45 ifr->ifr_flags = ((toys.optflags&FLAG_T) ? IFF_TUN : IFF_TAP)|IFF_NO_PI;
Difconfig.c120 flags = ifre.ifr_flags; in display_ifconfig()
539 ifre.ifr_flags &= ~(rev ? on : off); in ifconfig_main()
540 ifre.ifr_flags |= (rev ? off : on); in ifconfig_main()
/external/android-clat/
Dtun.c54 ifr.ifr_flags = IFF_TUN; in tun_alloc()
/external/autotest/client/deps/fakemodem/src/
Dfakenet.c41 ifr.ifr_flags = IFF_TAP; in tun_alloc()
/external/curl/lib/
Dif2ip.h73 #define ifr_flags ifr_ifru.ifru_flags /* flags */ macro
/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/honggfuzz/libhfcommon/
Dns.c112 ifr.ifr_flags |= (IFF_UP | IFF_RUNNING); in nsIfaceUp()
/external/ltp/testcases/network/packet/
Dfanout01.c83 ifr.ifr_flags &= ~(short)IFF_UP; in run()
/external/ppp/pppd/
Dsys-solaris.c444 fl = ifr.ifr_flags; in get_first_ethernet()
1776 ifr.ifr_flags |= IFF_UP;
1801 ifr.ifr_flags &= ~IFF_UP;
1996 && (ifr.ifr_flags & IFF_POINTOPOINT) == 0) {
1997 ifr.ifr_flags |= IFF_POINTOPOINT;
2186 if ((ifreq.ifr_flags &
2444 if ((ifreq.ifr_flags & (IFF_UP|IFF_POINTOPOINT|IFF_LOOPBACK))
/external/libcups/cups/
Dgetifaddrs.c132 temp->ifa_flags = request.ifr_flags; in _cups_getifaddrs()
/external/iproute2/include/uapi/linux/
Dif.h260 #define ifr_flags ifr_ifru.ifru_flags /* flags */ macro
/external/kernel-headers/original/uapi/linux/
Dif.h262 #define ifr_flags ifr_ifru.ifru_flags /* flags */ macro

12