Home
last modified time | relevance | path

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

12

/external/iproute2/ip/
Diptuntap.c54 ifr->ifr_flags |= IFF_TUN_EXCL; in tap_add_ioctl()
113 ifr->ifr_flags |= IFF_NO_PI; in parse_args()
119 if (ifr->ifr_flags & IFF_TAP) { in parse_args()
123 ifr->ifr_flags |= IFF_TUN; in parse_args()
125 if (ifr->ifr_flags & IFF_TUN) { in parse_args()
129 ifr->ifr_flags |= IFF_TAP; in parse_args()
166 ifr->ifr_flags &= ~IFF_NO_PI; in parse_args()
168 ifr->ifr_flags |= IFF_ONE_QUEUE; in parse_args()
170 ifr->ifr_flags |= IFF_VNET_HDR; in parse_args()
200 if (!(ifr.ifr_flags & TUN_TYPE_MASK)) { in do_add()
Diplink.c629 if ((ifr.ifr_flags^flags)&mask) { in do_chflags()
630 ifr.ifr_flags &= ~mask; in do_chflags()
631 ifr.ifr_flags |= mask&flags; in do_chflags()
/external/wpa_supplicant_8/src/drivers/
Dlinux_ioctl.c37 if (ifr.ifr_flags & IFF_UP) in linux_set_iface_flags()
39 ifr.ifr_flags |= IFF_UP; in linux_set_iface_flags()
41 if (!(ifr.ifr_flags & IFF_UP)) in linux_set_iface_flags()
43 ifr.ifr_flags &= ~IFF_UP; in linux_set_iface_flags()
76 return !!(ifr.ifr_flags & IFF_UP); in linux_iface_up()
Ddriver_wired.c444 *flags = ifr.ifr_flags & 0xffff; in wpa_driver_wired_get_ifflags()
462 ifr.ifr_flags = flags & 0xffff; in wpa_driver_wired_set_ifflags()
Ddriver_bsd.c273 if (ifr.ifr_flags & IFF_UP) in bsd_ctrl_iface()
275 ifr.ifr_flags |= IFF_UP; in bsd_ctrl_iface()
277 if (!(ifr.ifr_flags & IFF_UP)) in bsd_ctrl_iface()
279 ifr.ifr_flags &= ~IFF_UP; in bsd_ctrl_iface()
Ddriver_macsec_qca.c147 *flags = ifr.ifr_flags & 0xffff; in macsec_qca_get_ifflags()
165 ifr.ifr_flags = flags & 0xffff; in macsec_qca_set_ifflags()
/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/libpcap/
Dfad-gifc.c261 if (!(ifrflags.ifr_flags & IFF_UP)) in pcap_findalldevs_interfaces()
296 if (ifrflags.ifr_flags & IFF_BROADCAST) { in pcap_findalldevs_interfaces()
335 if (ifrflags.ifr_flags & IFF_POINTOPOINT) { in pcap_findalldevs_interfaces()
402 ifrflags.ifr_flags, &ifrp->ifr_addr, in pcap_findalldevs_interfaces()
Dpcap-linux.c884 ifr.ifr_flags |= IFF_UP|IFF_RUNNING;
1109 if (ifr.ifr_flags & IFF_PROMISC) {
1114 ifr.ifr_flags &= ~IFF_PROMISC;
1167 if (ifr.ifr_flags & IFF_UP) {
1168 oldflags = ifr.ifr_flags;
1169 ifr.ifr_flags &= ~IFF_UP;
1198 ifr.ifr_flags = oldflags;
2139 if (!(ifrflags.ifr_flags & IFF_UP))
2145 if (pcap_add_if(devlistp, name, ifrflags.ifr_flags, NULL,
2286 if (!(ifrflags.ifr_flags & IFF_UP))
[all …]
/external/dhcpcd/
Dnet.c213 iface->flags = ifr.ifr_flags; in init_interface()
287 iface->flags = ifr.ifr_flags; in carrier_status()
298 ret = (ifr.ifr_flags & IFF_RUNNING) ? 1 : 0; in carrier_status()
319 if ((ifr.ifr_flags & IFF_UP)) in up_interface()
322 ifr.ifr_flags |= IFF_UP; in up_interface()
326 iface->flags = ifr.ifr_flags; in up_interface()
/external/toybox/toys/pending/
Darping.c70 if (!(req.ifr_flags & IFF_UP)) return; in get_interface()
223 if (!(ifr.ifr_flags & IFF_UP) && !(toys.optflags & FLAG_q)) in arping_main()
225 if ((ifr.ifr_flags & (IFF_NOARP | IFF_LOOPBACK)) in arping_main()
/external/android-clat/
Dtun.c53 ifr.ifr_flags = IFF_TUN; in tun_alloc()
Dclatd_microbenchmark.c82 ifr.ifr_flags |= (IFF_UP | IFF_RUNNING); in setup_tun()
/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/toybox/toys/other/
Difconfig.c114 flags = ifre.ifr_flags; in display_ifconfig()
513 ifre.ifr_flags &= ~(rev ? on : off); in ifconfig_main()
514 ifre.ifr_flags |= (rev ? off : on); in ifconfig_main()
/external/openssh/
Dmisc.c688 ifr.ifr_flags &= ~IFF_UP; in tun_open()
690 ifr.ifr_flags |= IFF_LINK0; in tun_open()
692 ifr.ifr_flags &= ~IFF_LINK0; in tun_open()
697 ifr.ifr_flags |= IFF_UP; in tun_open()
/external/libpcap/Win32/Include/net/
Dif.h173 #define ifr_flags ifr_ifru.ifru_flags /* flags */ macro
/external/iproute2/include/linux/
Dif.h204 #define ifr_flags ifr_ifru.ifru_flags /* flags */ macro
/external/kernel-headers/original/uapi/linux/
Dif.h233 #define ifr_flags ifr_ifru.ifru_flags /* flags */ macro
/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))
Dsys-linux.c1814 if (((ifreq.ifr_flags ^ FLAGS_GOOD) & FLAGS_MASK) != 0) in get_ether_addr()
1951 if (((ifreq.ifr_flags ^ FLAGS_GOOD) & FLAGS_MASK) != 0) in GetMask()
2348 ifr.ifr_flags |= IFF_UP; in setifstate()
2350 ifr.ifr_flags &= ~IFF_UP; in setifstate()
2351 ifr.ifr_flags |= IFF_POINTOPOINT; in setifstate()
/external/ipsec-tools/
Dmain.c107 struct ifreq ifr = {.ifr_flags = IFF_TUN}; in android_hook()
/external/strace/
Dsock.c208 printflags(iffflags, ifr.ifr_flags, "IFF_???"); in sock_ioctl()
/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c190 ifi->ifi_flags = ifr.ifr_flags; in get_ifi_info_linuxv6()
308 flags = ifrcopy.ifr_flags; in get_ifi_info()
/external/wpa_supplicant_8/src/ap/
Dvlan_init.c146 ifr.ifr_flags |= IFF_UP; in ifconfig_helper()
148 ifr.ifr_flags &= ~IFF_UP; in ifconfig_helper()

12