Searched refs:ifc (Results 1 - 25 of 59) sorted by relevance

123

/macosx-10.9.5/Libinfo-449.1.3/rpc.subproj/
H A Dget_myaddress.c83 struct ifconf ifc; local
99 ifc.ifc_len = sizeof(buf);
100 ifc.ifc_buf = buf;
102 if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0)
112 while (offset <= ifc.ifc_len)
114 ifr = (struct ifreq *)(ifc.ifc_buf + offset);
H A Dpmap_rmt.c212 struct ifconf ifc; local
218 ifc.ifc_len = UDPMSGSIZE;
219 ifc.ifc_buf = buf;
220 if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0) {
226 cplim = buf + ifc.ifc_len; /*skip over if's with big ifr_addr's */
/macosx-10.9.5/dcerpc-58/dcerpc/uuid/
H A Dget_802_addr.c122 struct ifconf ifc; local
140 ifc.ifc_len = sizeof(buf);
141 ifc.ifc_buf = buf;
144 i = ioctl(s, SIOCGIFCONF, (char *)&ifc);
151 for (i = 0; i < ifc.ifc_len; ) {
152 ifr = (struct ifreq *)&ifc.ifc_buf[i];
/macosx-10.9.5/network_cmds-433/traceroute.tproj/
H A Difaddrlist.c112 struct ifconf ifc; local
123 ifc.ifc_len = sizeof(ibuf);
124 ifc.ifc_buf = (caddr_t)ibuf;
126 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0 ||
127 ifc.ifc_len < sizeof(struct ifreq)) {
139 ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
/macosx-10.9.5/libpcap-42/libpcap/
H A Dfad-gifc.c145 struct ifconf ifc; local
183 ifc.ifc_len = buf_size;
184 ifc.ifc_buf = buf;
186 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0
194 if (ifc.ifc_len < buf_size &&
195 (buf_size - ifc.ifc_len) > sizeof(ifrp->ifr_name) + MAX_SA_LEN)
202 ifend = (struct ifreq *)(buf + ifc.ifc_len);
225 * doesn't update ifc.ifc_len, leaving it larger than the
H A Dfad-glifc.c89 struct lifconf ifc; local
151 ifc.lifc_len = buf_size;
152 ifc.lifc_buf = buf;
153 ifc.lifc_family = AF_UNSPEC;
154 ifc.lifc_flags = 0;
156 if (ioctl(fd4, SIOCGLIFCONF, (char *)&ifc) < 0) {
169 ifend = (struct lifreq *)(buf + ifc.lifc_len);
/macosx-10.9.5/Libc-997.90.3/uuid/uuidsrc/
H A Dgen_uuid.c85 struct ifconf ifc; local
114 ifc.ifc_len = sizeof(buf);
115 ifc.ifc_buf = buf;
116 if (ioctl (sd, SIOCGIFCONF, (char *)&ifc) < 0) {
120 n = ifc.ifc_len;
122 ifrp = (struct ifreq *)((char *) ifc.ifc_buf+i);
/macosx-10.9.5/Libinfo-449.1.3/gen.subproj/
H A Dgetifaddrs.c114 struct ifconf ifc; local
221 ifc.ifc_buf = buf;
222 ifc.ifc_len = sizeof(buf);
229 i = ioctl(sock, SIOCGIFCONF, (char *)&ifc);
236 ifr = ifc.ifc_req;
237 lifr = (struct ifreq *)&ifc.ifc_buf[ifc.ifc_len];
381 ifr = ifc.ifc_req;
382 lifr = (struct ifreq *)&ifc.ifc_buf[ifc
[all...]
/macosx-10.9.5/dcerpc-58/dcerpc/ncklib/
H A Dipnaf_bsd.c240 struct ifconf ifc;
258 ifc.ifc_len = sizeof (buf);
259 ifc.ifc_buf = (caddr_t) buf;
262 if (ioctl (desc, (int) SIOCGIFCONF, (caddr_t) &ifc) < 0)
278 n_ifs = ifc.ifc_len / sizeof (struct ifreq);
280 ("%d bytes of ifreqs, ifreq is %d bytes\n", ifc.ifc_len, sizeof(struct ifreq)));
288 for (i=0; i<ifc.ifc_len; i++) {
336 last_ifr = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len);
338 for (i=0, ifr = ifc
[all...]
H A Dcomsoc_bsd.c1822 struct ifconf ifc;
1839 ifc.ifc_len = sizeof (reqbuf.buf);
1840 ifc.ifc_buf = (caddr_t) reqbuf.buf;
1843 if (ioctl (lrpc->fd, SIOCGIFCONF, (caddr_t) &ifc) < 0)
1859 n_ifs = ifc.ifc_len / sizeof (struct ifreq);
1862 (unsigned long)ifc.ifc_len,
1871 for (i=0; i<ifc.ifc_len; i++) {
1943 last_ifr = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len);
1945 for (i=0, ifr = ifc
1801 struct ifconf ifc; local
[all...]
/macosx-10.9.5/network_cmds-433/rarpd.tproj/
H A Drarpd.c239 struct ifconf ifc; local
249 ifc.ifc_len = sizeof(inbuf);
250 ifc.ifc_buf = inbuf;
251 if (ioctl(fd, SIOCGIFCONF, (caddr_t)&ifc) < 0 ||
252 ifc.ifc_len < sizeof(struct ifreq)) {
256 ifr = ifc.ifc_req;
257 for (i = 0; i < ifc.ifc_len;
579 struct ifconf ifc; local
595 ifc.ifc_len = sizeof(inbuf);
596 ifc
[all...]
/macosx-10.9.5/OpenLDAP-491.1/OpenLDAP/libraries/liblutil/
H A Duuid.c117 struct ifconf ifc;
133 ifc.ifc_len = sizeof( buf );
134 ifc.ifc_buf = buf;
137 i = ioctl( s, SIOCGIFCONF, (char *)&ifc );
144 for ( i = 0; i < ifc.ifc_len; ) {
145 ifr = (struct ifreq *)&ifc.ifc_buf[i];
/macosx-10.9.5/postfix-252/postfix/src/util/
H A Dinet_addr_local.c349 struct ifconf ifc; local
376 ifc.ifc_len = vstring_avail(buf);
377 ifc.ifc_buf = vstring_str(buf);
378 if (ioctl(sock, SIOCGIFCONF, (char *) &ifc) < 0) {
381 } else if (ifc.ifc_len < vstring_avail(buf) / 2)
386 the_end = (struct ifreq *) (ifc.ifc_buf + ifc.ifc_len);
387 for (ifr = ifc.ifc_req; ifr < the_end;) {
/macosx-10.9.5/smb-697.95.1/lib/smb/
H A Dnb_net.c81 struct ifconf ifc; local
94 ifc.ifc_len = (int)sizeof (buffer);
95 ifc.ifc_buf = (char*) buffer;
96 if (ioctl(so, SIOCGIFCONF, (char *)&ifc) < 0) {
101 for (ifReqIter = buffer; ifReqIter < (buffer + ifc.ifc_len);) {
391 struct ifconf ifc; local
410 ifc.ifc_len = rdlen;
411 ifc.ifc_buf = ifrdata;
412 if (ioctl(s, SIOCGIFCONF, &ifc) != 0) {
416 ifrqp = ifc
[all...]
/macosx-10.9.5/xnu-2422.115.4/bsd/net/
H A Dif.c455 struct if_clone *ifc; local
462 ifc = if_clone_lookup(name, &unit);
463 if (ifc == NULL)
475 while ((bytoff < ifc->ifc_bmlen)
476 && (ifc->ifc_units[bytoff] == 0xff))
478 if (bytoff >= ifc->ifc_bmlen)
480 while ((ifc->ifc_units[bytoff] & (1 << bitoff)) != 0)
485 if (unit > ifc->ifc_maxunit)
488 err = (*ifc->ifc_create)(ifc, uni
529 struct if_clone *ifc; local
568 struct if_clone *ifc; local
607 if_clone_attach(struct if_clone *ifc) argument
653 if_clone_detach(struct if_clone *ifc) argument
667 struct if_clone *ifc; local
1437 struct ifconf32 ifc; local
1447 struct ifconf64 ifc; local
[all...]
H A Dkpi_interface.c2369 struct if_clone *ifc = NULL; local
2389 ifc = _MALLOC(sizeof (struct if_clone) + IFNAMSIZ + 1, M_CLONE,
2391 if (ifc == NULL) {
2396 strlcpy((char *)(ifc + 1), cloner_params->ifc_name, IFNAMSIZ + 1);
2397 ifc->ifc_name = (char *)(ifc + 1);
2398 ifc->ifc_namelen = namelen;
2399 ifc->ifc_maxunit = IF_MAXUNIT;
2400 ifc->ifc_create = cloner_params->ifc_create;
2401 ifc
2421 struct if_clone *ifc = ifcloner; local
[all...]
H A Dif_pflog.c136 pflog_clone_create(struct if_clone *ifc, u_int32_t unit, __unused void *params) argument
156 pf_init.name = ifc->ifc_name;
H A Dif_gif.c255 struct if_clone *ifc = NULL; local
288 ifc = if_clone_lookup("gif", NULL);
289 gif_clone_create(ifc, 0, NULL);
319 gif_clone_create(struct if_clone *ifc, uint32_t unit, __unused void *params) argument
344 ifc->ifc_name, unit);
/macosx-10.9.5/bind9-45.100/bind9/lib/isc/unix/
H A Difiter_ioctl.c58 struct ifconf ifc; member in struct:isc_interfaceiter
121 memset(&iter->ifc.ifc_len, 0, sizeof(iter->ifc.ifc_len));
122 iter->ifc.ifc_len = iter->bufsize;
123 iter->ifc.ifc_buf = iter->buf;
129 if (ioctl(iter->socket, SIOCGIFCONF, (char *)&iter->ifc)
151 * ifc.lifc_len is too near to the end of the
155 if (iter->ifc.ifc_len + 2 * sizeof(struct ifreq)
252 * ifc.ifc_len is too near to the end of the
443 if (iter->ifc
[all...]
/macosx-10.9.5/ntp-88/lib/isc/unix/
H A Difiter_ioctl.c60 struct ifconf ifc; member in struct:isc_interfaceiter
123 memset(&iter->ifc.ifc_len, 0, sizeof(iter->ifc.ifc_len));
124 iter->ifc.ifc_len = iter->bufsize;
125 iter->ifc.ifc_buf = iter->buf;
131 if (ioctl(iter->socket, SIOCGIFCONF, (char *)&iter->ifc)
153 * ifc.lifc_len is too near to the end of the
157 if (iter->ifc.ifc_len + 2 * sizeof(struct ifreq)
254 * ifc.ifc_len is too near to the end of the
445 if (iter->ifc
[all...]
/macosx-10.9.5/mDNSResponder-522.92.1/mDNSPosix/
H A DmDNSUNP.c223 struct ifconf ifc; local
252 ifc.ifc_len = len;
253 ifc.ifc_buf = buf;
254 if (ioctl(sockfd, SIOCGIFCONF, &ifc) < 0) {
259 if (ifc.ifc_len == lastlen)
261 lastlen = ifc.ifc_len;
272 for (ptr = buf; ptr < buf + ifc.ifc_len; ) {
/macosx-10.9.5/network_cmds-433/arp.tproj/
H A Darp.c894 struct ifconf ifc; local
903 ifc.ifc_len = sizeof(ifs);
904 ifc.ifc_req = ifs;
905 if (ioctl(sock, SIOCGIFCONF, &ifc) < 0) {
918 ifend = (struct ifreq *)(ifc.ifc_buf + ifc.ifc_len);
919 for (ifr = ifc.ifc_req; ifr < ifend; ifr = NEXTIFR(ifr) ) {
958 for (ifr = ifc.ifc_req; ifr < ifend; ifr = NEXTIFR(ifr))
/macosx-10.9.5/remote_cmds-41.90.1/timed.tproj/timed.tproj/
H A Dtimed.c128 struct ifconf ifc; local
276 ifc.ifc_len = sizeof(buf);
277 ifc.ifc_buf = buf;
278 if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0)
282 cplim = buf + ifc.ifc_len; /*skip over if's with big ifr_addr's */
/macosx-10.9.5/bind9-45.100/bind9/lib/lwres/
H A Dgetipnode.c672 struct ifconf ifc;
719 ifc.ifc_len = bufsiz;
720 ifc.ifc_buf = buf;
727 if (emul_ioctl(&ifc) >= 0)
730 if ((n = ioctl(s, SIOCGIFCONF, (char *)&ifc)) != -1) {
735 * ifc.ifc_len is too near to the end of the
739 if (ifc.ifc_len + 2 * sizeof(u.ifreq) < bufsiz)
756 cplim = buf + ifc.ifc_len; /* skip over if's with big ifr_addr's */
/macosx-10.9.5/remote_cmds-41.90.1/ypbind.tproj/
H A Dypbind.c892 struct ifconf ifc; local
913 ifc.ifc_len = sizeof inbuf;
914 ifc.ifc_buf = inbuf;
915 if (ioctl(sock, SIOCGIFCONF, &ifc) < 0)
926 while (offset <= ifc.ifc_len)
928 ifr = (struct ifreq *)(ifc.ifc_buf + offset);

Completed in 289 milliseconds

123