Home
last modified time | relevance | path

Searched refs:ifc (Results 1 – 25 of 56) sorted by relevance

123

/external/strace/tests-mx32/
Dioctl_sock_gifconf.c55 print_ifconf(struct ifconf *ifc, int in_len, char *in_buf, long rc) in print_ifconf() argument
61 if (in_len != ifc->ifc_len) { in print_ifconf()
63 print_ifc_len(ifc->ifc_len); in print_ifconf()
67 print_ifc_len(ifc->ifc_len); in print_ifconf()
81 for (i = 0; i < (ifc->ifc_len) && in print_ifconf()
84 struct ifreq *ifr = (struct ifreq *) (ifc->ifc_buf + i); in print_ifconf()
96 if ((size_t) (ifc->ifc_len - i) >= sizeof(struct ifreq)) in print_ifconf()
106 gifconf_ioctl(int fd, struct ifconf *ifc, bool ifc_valid) in gifconf_ioctl() argument
114 in_len = ifc->ifc_len; in gifconf_ioctl()
115 in_buf = ifc->ifc_buf; in gifconf_ioctl()
[all …]
/external/strace/tests-m32/
Dioctl_sock_gifconf.c55 print_ifconf(struct ifconf *ifc, int in_len, char *in_buf, long rc) in print_ifconf() argument
61 if (in_len != ifc->ifc_len) { in print_ifconf()
63 print_ifc_len(ifc->ifc_len); in print_ifconf()
67 print_ifc_len(ifc->ifc_len); in print_ifconf()
81 for (i = 0; i < (ifc->ifc_len) && in print_ifconf()
84 struct ifreq *ifr = (struct ifreq *) (ifc->ifc_buf + i); in print_ifconf()
96 if ((size_t) (ifc->ifc_len - i) >= sizeof(struct ifreq)) in print_ifconf()
106 gifconf_ioctl(int fd, struct ifconf *ifc, bool ifc_valid) in gifconf_ioctl() argument
114 in_len = ifc->ifc_len; in gifconf_ioctl()
115 in_buf = ifc->ifc_buf; in gifconf_ioctl()
[all …]
/external/strace/tests/
Dioctl_sock_gifconf.c55 print_ifconf(struct ifconf *ifc, int in_len, char *in_buf, long rc) in print_ifconf() argument
61 if (in_len != ifc->ifc_len) { in print_ifconf()
63 print_ifc_len(ifc->ifc_len); in print_ifconf()
67 print_ifc_len(ifc->ifc_len); in print_ifconf()
81 for (i = 0; i < (ifc->ifc_len) && in print_ifconf()
84 struct ifreq *ifr = (struct ifreq *) (ifc->ifc_buf + i); in print_ifconf()
96 if ((size_t) (ifc->ifc_len - i) >= sizeof(struct ifreq)) in print_ifconf()
106 gifconf_ioctl(int fd, struct ifconf *ifc, bool ifc_valid) in gifconf_ioctl() argument
114 in_len = ifc->ifc_len; in gifconf_ioctl()
115 in_buf = ifc->ifc_buf; in gifconf_ioctl()
[all …]
/external/valgrind/memcheck/tests/solaris/
Dioctl.c24 struct ifconf ifc; in test_SIOCGIFCONF() local
25 ifc.ifc_len = (n_ifs + 1) * sizeof(struct ifreq); in test_SIOCGIFCONF()
26 ifc.ifc_buf = malloc((n_ifs + 1) * sizeof(struct ifreq)); in test_SIOCGIFCONF()
27 if (ifc.ifc_buf == NULL) in test_SIOCGIFCONF()
30 if (ioctl(fd, SIOCGIFCONF, &ifc) < 0) in test_SIOCGIFCONF()
35 if (ifc.ifc_len != 0) x = -1; else x = -2; in test_SIOCGIFCONF()
36 if (ifc.ifc_req != NULL) x = -3; else x = -4; in test_SIOCGIFCONF()
37 if (strcmp(ifc.ifc_req[0].ifr_name, "") != 0) x = -5; else x = -6; in test_SIOCGIFCONF()
39 if (strcmp(ifc.ifc_req[n_ifs].ifr_name, "") != 0) x = -7; else x = -8; in test_SIOCGIFCONF()
41 free(ifc.ifc_buf); in test_SIOCGIFCONF()
Dscalar_ioctl.c280 struct ifconf ifc; in sys_ioctl_SIOCGIFCONF_2() local
283 ifc.ifc_len = x0 + 1; in sys_ioctl_SIOCGIFCONF_2()
284 ifc.ifc_buf = (void *) (x0 + buf); in sys_ioctl_SIOCGIFCONF_2()
287 SY(SYS_ioctl, x0 - 1, x0 + SIOCGIFCONF, &ifc + x0); FAIL; in sys_ioctl_SIOCGIFCONF_2()
/external/strace/
Dsock.c176 struct_ifconf *ifc = in decode_ifconf() local
177 entering(tcp) ? malloc(sizeof(*ifc)) : alloca(sizeof(*ifc)); in decode_ifconf()
188 if (!ifc || umove(tcp, addr, ifc) < 0) { in decode_ifconf()
190 free(ifc); in decode_ifconf()
213 if (ifc->ifc_buf) in decode_ifconf()
214 print_ifc_len(ifc->ifc_len); in decode_ifconf()
216 set_tcb_priv_data(tcp, ifc, free); in decode_ifconf()
223 if (entering_ifc->ifc_buf && (entering_ifc->ifc_len != ifc->ifc_len)) in decode_ifconf()
225 if (!entering_ifc->ifc_buf || (entering_ifc->ifc_len != ifc->ifc_len)) in decode_ifconf()
226 print_ifc_len(ifc->ifc_len); in decode_ifconf()
[all …]
/external/compiler-rt/test/msan/
Dioctl_custom.cc20 struct ifconf ifc; in main() local
21 ifc.ifc_ifcu.ifcu_req = ifreqs; in main()
23 ifc.ifc_len = sizeof(ifreqs); in main()
25 int res = ioctl(fd, SIOCGIFCONF, (void *)&ifc); in main()
30 for (int i = 0; i < ifc.ifc_len / sizeof(*ifc.ifc_ifcu.ifcu_req); ++i) in main()
/external/dnsmasq/src/
Dbpf.c35 struct ifconf ifc; in iface_enumerate() local
50 ifc.ifc_len = len; in iface_enumerate()
51 ifc.ifc_buf = ifconf.iov_base; in iface_enumerate()
53 if (ioctl(fd, SIOCGIFCONF, &ifc) == -1) in iface_enumerate()
60 if (ifc.ifc_len == lastlen) in iface_enumerate()
62 lastlen = ifc.ifc_len; in iface_enumerate()
66 for (ptr = ifc.ifc_buf; ptr < (char *)(ifc.ifc_buf + ifc.ifc_len); ptr += len) in iface_enumerate()
/external/clang/test/CoverageMapping/
Dcontrol-flow-macro.c3 #define ifc if macro
9 ifc(1) return 0; in main()
12 ifc(1) return 0; in main()
/external/libpcap/
Dfad-gifc.c142 struct ifconf ifc; in pcap_findalldevs_interfaces() local
180 ifc.ifc_len = buf_size; in pcap_findalldevs_interfaces()
181 ifc.ifc_buf = buf; in pcap_findalldevs_interfaces()
183 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 in pcap_findalldevs_interfaces()
191 if (ifc.ifc_len < buf_size && in pcap_findalldevs_interfaces()
192 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN) in pcap_findalldevs_interfaces()
199 ifend = (struct ifreq *)(buf + ifc.ifc_len); in pcap_findalldevs_interfaces()
Dfad-glifc.c85 struct lifconf ifc; in pcap_findalldevs_interfaces() local
147 ifc.lifc_len = buf_size; in pcap_findalldevs_interfaces()
148 ifc.lifc_buf = buf; in pcap_findalldevs_interfaces()
149 ifc.lifc_family = AF_UNSPEC; in pcap_findalldevs_interfaces()
150 ifc.lifc_flags = 0; in pcap_findalldevs_interfaces()
152 if (ioctl(fd4, SIOCGLIFCONF, (char *)&ifc) < 0) { in pcap_findalldevs_interfaces()
165 ifend = (struct lifreq *)(buf + ifc.lifc_len); in pcap_findalldevs_interfaces()
/external/llvm/test/MC/AsmParser/
Difc.s5 .ifc foo, foo
13 .ifc "foo space", "foo space"
21 .ifc foo space, foo space
29 .ifc unequal, unEqual
Ddirective-warning.s8 .ifc a,a
23 .ifc one, two
Ddirective-err.s8 .ifc a,a
23 .ifc one, two
/external/libcap-ng/libcap-ng-0.7/utils/
Dnetcap.c212 static void report_finding(int port, const char *type, const char *ifc) in report_finding() argument
241 if (ifc) in report_finding()
242 printf(" %-6s", ifc); in report_finding()
351 static void get_interface(unsigned int iface, char *ifc) in get_interface() argument
358 *ifc = 0; in get_interface()
374 sscanf(buf, "%16s: %256s\n", ifc, more); in get_interface()
375 c = strchr(ifc, ':'); in get_interface()
393 char more[256], ifc[32]; in read_packet() local
412 get_interface(iface, ifc); in read_packet()
414 report_finding(0, "pkt", ifc); in read_packet()
/external/ltp/testcases/kernel/syscalls/sockioctl/
Dsockioctl01.c49 static struct ifconf ifc; variable
101 PF_INET, SOCK_DGRAM, 0, SIOCGIFCONF, &ifc,
231 ifc.ifc_len = sizeof(buf); in setup2()
232 ifc.ifc_buf = buf; in setup2()
238 if (ioctl(s, SIOCGIFCONF, &ifc) < 0) { in setup3()
242 ifr = *(struct ifreq *)ifc.ifc_buf; in setup3()
/external/ppp/pppd/
Dsys-solaris.c386 struct ifconf ifc; in get_first_ethernet() local
416 ifc.ifc_len = req_size; in get_first_ethernet()
417 ifc.ifc_buf = req; in get_first_ethernet()
418 if (ioctl(fd, SIOCGIFCONF, &ifc) < 0) { in get_first_ethernet()
429 pifreq = ifc.ifc_req; in get_first_ethernet()
431 for (i = ifc.ifc_len / sizeof(struct ifreq); i > 0; i--, pifreq++) { in get_first_ethernet()
2157 struct ifconf ifc; local
2167 ifc.ifc_len = nif * sizeof(struct ifreq);
2168 ifc.ifc_buf = (caddr_t) malloc(ifc.ifc_len);
2169 if (ifc.ifc_buf == 0)
[all …]
Dsys-linux.c1784 struct ifconf ifc; in get_ether_addr() local
1790 ifc.ifc_len = sizeof(ifs); in get_ether_addr()
1791 ifc.ifc_req = ifs; in get_ether_addr()
1792 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) < 0) { in get_ether_addr()
1802 ifend = ifs + (ifc.ifc_len / sizeof(struct ifreq)); in get_ether_addr()
1803 for (ifr = ifc.ifc_req; ifr < ifend; ifr++) { in get_ether_addr()
1909 struct ifconf ifc; in GetMask() local
1926 ifc.ifc_len = sizeof(ifs); in GetMask()
1927 ifc.ifc_req = ifs; in GetMask()
1928 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) < 0) { in GetMask()
[all …]
/external/e2fsprogs/lib/uuid/
Dgen_uuid.c230 struct ifconf ifc; in get_node_id() local
259 ifc.ifc_len = sizeof(buf); in get_node_id()
260 ifc.ifc_buf = buf; in get_node_id()
261 if (ioctl (sd, SIOCGIFCONF, (char *)&ifc) < 0) { in get_node_id()
265 n = ifc.ifc_len; in get_node_id()
267 ifrp = (struct ifreq *)((char *) ifc.ifc_buf+i); in get_node_id()
/external/mdnsresponder/mDNSPosix/
DmDNSUNP.c230 struct ifconf ifc; in get_ifi_info() local
259 ifc.ifc_len = len; in get_ifi_info()
260 ifc.ifc_buf = buf; in get_ifi_info()
261 if (ioctl(sockfd, SIOCGIFCONF, &ifc) < 0) { in get_ifi_info()
266 if (ifc.ifc_len == lastlen) in get_ifi_info()
268 lastlen = ifc.ifc_len; in get_ifi_info()
279 for (ptr = buf; ptr < buf + ifc.ifc_len; ) { in get_ifi_info()
/external/iputils/
Drarpd.c93 struct ifconf ifc; in load_if() local
101 ifc.ifc_len = sizeof ibuf; in load_if()
102 ifc.ifc_buf = (caddr_t)ibuf; in load_if()
103 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 || in load_if()
104 ifc.ifc_len < (int)sizeof(struct ifreq)) { in load_if()
119 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len); in load_if()
Darping.c843 struct ifconf ifc; in find_device_by_ioctl() local
869 ifc.ifc_buf = (char *)ifr0; in find_device_by_ioctl()
870 ifc.ifc_len = ifrsize; in find_device_by_ioctl()
872 rc = ioctl(s, SIOCGIFCONF, &ifc); in find_device_by_ioctl()
878 …if (ifc.ifc_len + sizeof(*ifr0) + sizeof(struct sockaddr_storage) - sizeof(struct sockaddr) <= ifr… in find_device_by_ioctl()
890 ifr_end = (struct ifreq *)(((char *)ifr0) + ifc.ifc_len - sizeof(*ifr0)); in find_device_by_ioctl()
Drdisc.c1104 struct ifconf ifc; in initifs() local
1143 ifc.ifc_len = bufsize; in initifs()
1144 ifc.ifc_buf = buf; in initifs()
1145 if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0) { in initifs()
1151 ifr = ifc.ifc_req; in initifs()
1152 for (i = 0, n = ifc.ifc_len/sizeof (struct ifreq); n > 0; n--, ifr++) { in initifs()
/external/webrtc/webrtc/test/channel_transport/
Dudp_transport_impl.cc2671 struct ifconf ifc; in LocalHostAddress()
2677 ifc.ifc_len = IFRSIZE; in LocalHostAddress()
2678 ifc.ifc_req = NULL; in LocalHostAddress()
2684 if (NULL == (ifc.ifc_req = (ifreq*)realloc(ifc.ifc_req, IFRSIZE))) { in LocalHostAddress()
2688 ifc.ifc_len = IFRSIZE; in LocalHostAddress()
2689 if (ioctl(sockfd, SIOCGIFCONF, &ifc)) in LocalHostAddress()
2691 free(ifc.ifc_req); in LocalHostAddress()
2695 } while (IFRSIZE <= ifc.ifc_len); in LocalHostAddress()
2697 ifr = ifc.ifc_req; in LocalHostAddress()
2698 for (;(char *) ifr < (char *) ifc.ifc_req + ifc.ifc_len; ++ifr) in LocalHostAddress()
[all …]
/external/dhcpcd-6.8.2/
Ddhcpcd.c963 if (ctx->ifc && action != 2) { in dhcpcd_handleinterface()
964 for (i = 0; i < ctx->ifc; i++) in dhcpcd_handleinterface()
967 if (i >= ctx->ifc) in dhcpcd_handleinterface()
1211 ctx->argc - ctx->ifc); in dhcpcd_handle_signal()
1543 ctx.ifc = argc - optind; in main()
1703 (sig == 0 || ctx.ifc != 0)) in main()
1850 if (ctx.ifc == 1 && !(ctx.options & DHCPCD_BACKGROUND)) in main()
1877 ctx.ifaces = if_discover(&ctx, ctx.ifc, ctx.ifv); in main()
1882 for (i = 0; i < ctx.ifc; i++) { in main()
1898 if (ctx.ifc == 0) in main()

123