Searched defs:ifc (Results 1 - 8 of 8) sorted by relevance

/osnet-11/usr/src/lib/libresolv/
H A Dres_init.c108 struct ifconf ifc; local
130 ifc.ifc_len = bufsize;
131 ifc.ifc_buf = buf;
132 if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) {
140 ifrp = ifc.ifc_req;
141 for (n = ifc.ifc_len / sizeof (struct ifreq); n > 0;
/osnet-11/usr/src/lib/librdc/common/
H A Dnetaddrs.c92 getmyaddrs(struct ifconf *ifc) argument
99 ifc->ifc_buf = NULL;
100 ifc->ifc_len = 0;
130 ifc->ifc_buf = buf;
131 ifc->ifc_len = numifs * sizeof (struct ifreq);
133 if (ioctl(sock, SIOCGIFCONF, (char *)ifc) < 0) {
154 struct ifconf *ifc; local
157 ifc = malloc(sizeof (struct ifconf));
158 if (ifc == NULL)
160 memset((char *)ifc,
[all...]
/osnet-11/usr/src/lib/libslp/clib/
H A Dslp_net_utils.c229 struct ifconf ifc; local
260 ifc.ifc_len = bufsize;
261 ifc.ifc_buf = buf;
262 if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) {
266 ifrp = ifc.ifc_req;
268 for (n = ifc.ifc_len / sizeof (struct ifreq); n > 0; n--, ifrp++) {
/osnet-11/usr/src/lib/libdhcpagent/common/
H A Ddhcpagent_ipc.c789 struct ifconf ifc; local
804 ifc.ifc_len = n_ifs * sizeof (struct ifreq);
805 ifc.ifc_req = calloc(n_ifs, sizeof (struct ifreq));
806 if (ifc.ifc_req != NULL && ifnames != NULL) {
808 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) == -1) {
811 free(ifc.ifc_req);
817 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifc.ifc_req[i]) == 0)
818 if ((ifc.ifc_req[i].ifr_flags &
822 (void) strcat(ifnames, ifc.ifc_req[i].ifr_name);
831 free(ifc
[all...]
/osnet-11/usr/src/lib/libresolv2/common/irs/
H A Dgethostent.c662 struct ifconf ifc; local
702 ifc.ifc_len = bufsiz;
703 ifc.ifc_buf = buf;
710 if (emul_ioctl(&ifc) >= 0)
713 if ((n = ioctl(s, SIOCGIFCONF, (char *)&ifc)) != -1) {
718 * ifc.ifc_len is too near to the end of the
722 if (ifc.ifc_len + 2 * sizeof(u.ifreq) < bufsiz)
737 cplim = buf + ifc.ifc_len; /*%< skip over if's with big ifr_addr's */
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dlocaladdr.c285 struct ifconf ifc; local
288 ifc.ifc_len = *lenp;
290 ifc.ifc_buf = buf;
293 ret = ioctl (s, SIOCGIFCONF, (char *)&ifc);
296 *lenp = ifc.ifc_len;
/osnet-11/usr/src/lib/libsldap/common/
H A Dns_common.c756 struct ifconf ifc; local
778 ifc.ifc_len = numifs * (int)sizeof (struct ifreq);
779 ifc.ifc_buf = buf;
780 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0) {
787 numifs = ifc.ifc_len/(int)sizeof (struct ifreq);
/osnet-11/usr/src/lib/libnsl/nss/
H A Dnetdir_inet.c2897 struct ifconf ifc; local
2928 ifc.ifc_len = numifs * (int)sizeof (struct ifreq);
2929 ifc.ifc_buf = buf;
2934 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0) {
2946 for (i = 0, n = ifc.ifc_len / (int)sizeof (struct ifreq);

Completed in 55 milliseconds