/illumos-gate/usr/src/ucblib/librpcsoc/ |
H A D | get_myaddress.c | 54 struct ifconf ifc; local 72 ifc.ifc_len = numifs * sizeof (struct ifreq); 73 if ((ifc.ifc_buf = (caddr_t)malloc(ifc.ifc_len)) == NULL) { 79 ret = ioctl(s, SIOCGIFCONF, (char *)&ifc); 94 ifr = ifc.ifc_req; 95 for (len = ifc.ifc_len; len > 0; len -= sizeof (ifreq), ifr++) { 116 free(ifc.ifc_buf);
|
/illumos-gate/usr/src/lib/librdc/common/ |
H A D | netaddrs.c | 92 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...] |
/illumos-gate/usr/src/lib/libresolv/ |
H A D | res_init.c | 110 struct ifconf ifc; local 131 ifc.ifc_len = bufsize; 132 ifc.ifc_buf = buf; 133 if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) { 141 ifrp = ifc.ifc_req; 142 for (n = ifc.ifc_len / sizeof (struct ifreq); n > 0;
|
/illumos-gate/usr/src/cmd/svc/shell/ |
H A D | ipf_include.sh | 760 ifc=`get_interface $name` 761 if [ $? -eq 0 -a -n "$ifc" ]; then 765 echo "${ecmd} in log quick on ${ifc} from any to" \ 785 ifc=`get_interface $name` 786 if [ $? -eq 0 -a -n "$ifc" ]; then 790 echo "${acmd} in log quick on ${ifc} from any to" \ 944 ifc=`get_interface $name` 945 if [ $? -eq 0 -a -n "$ifc" ]; then 946 echo "${ecmd} in log quick on ${ifc} all" >>${TEMP} 960 ifc [all...] |
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | slp_net_utils.c | 229 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++) {
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | hostconfig.c | 121 struct ifconf ifc; local 239 ifc.ifc_buf = (caddr_t)&reqbuf[0]; 240 ifc.ifc_len = bufsize; 241 if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) { 245 ifr = ifc.ifc_req; 246 n = ifc.ifc_len/sizeof (struct ifreq);
|
H A D | in.rwhod.c | 501 struct ifconf ifc; local 544 ifc.ifc_len = bufsize; 545 ifc.ifc_buf = buf; 546 if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) { 552 ifr = ifc.ifc_req; 553 for (n = ifc.ifc_len / sizeof (struct ifreq); n > 0; n--, ifr++) {
|
H A D | route.c | 1963 struct ifconf ifc; local 1985 (void) memset(&ifc, 0, sizeof (ifc)); 1986 ifc.ifc_len = bufsize; 1987 ifc.ifc_buf = buf; 1988 if (ioctl(iosoc, SIOCGIFCONF, (char *)&ifc) < 0) 1991 ifr = ifc.ifc_req; 1992 for (n = ifc.ifc_len / sizeof (struct ifreq); n > 0; n--, ifr++) {
|
/illumos-gate/usr/src/lib/libdhcpagent/common/ |
H A D | dhcpagent_ipc.c | 789 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...] |
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rds_ioctl.c | 186 STRUCT_HANDLE(ifconf, ifc); 195 STRUCT_SET_HANDLE(ifc, iocp->ioc_flag, (struct ifconf *)addr); 196 ubuf_size = STRUCT_FGET(ifc, ifc_len); 197 ubuf_addr = STRUCT_FGETP(ifc, ifc_buf); 230 STRUCT_FSET(ifc, ifc_len, MBLKL(mp1));
|
/illumos-gate/usr/src/cmd/avs/dscfglockd/ |
H A D | dscfglockd.c | 194 getmyaddrs(struct ifconf *ifc) argument 201 ifc->ifc_buf = NULL; 202 ifc->ifc_len = 0; 232 ifc->ifc_buf = buf; 233 ifc->ifc_len = numifs * sizeof (struct ifreq); 235 if (ioctl(sock, SIOCGIFCONF, (char *)ifc) < 0) { 244 struct ifconf *ifc; variable in typeref:struct:ifconf 271 ifr = ifc->ifc_req; 272 n = ifc->ifc_len / sizeof (struct ifreq); 1249 ifc [all...] |
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | af_rds.c | 270 struct ifconf ifc; local 353 if (ddi_copyin((void *)arg, &ifc, sizeof (struct ifconf), 0) 355 RDSV3_DPRINTF2("rdsv3_ioctl", "ddi_copyin failed ifc"); 362 ifc.ifc_len, ifc.ifc_req); 371 if ((ifc.ifc_len > 0) && (numifs > 0)) { 372 if (ddi_copyout(buf, (void *)ifc.ifc_req, 373 (ifc.ifc_len < bufsize) ? ifc.ifc_len : 382 ifc [all...] |
H A D | rdsv3_impl.c | 319 struct ifconf ifc; local 355 ifc.ifc_len = bufsize; 356 ifc.ifc_buf = buf; 357 rc = ksocket_ioctl(so4, SIOCGIFCONF, (intptr_t)&ifc, &rval, CRED()); 365 if (bufsize <= ifc.ifc_len) { 371 n = ifc.ifc_len / sizeof (struct ifreq); 376 for (i = 0, j = 0, lp = ifc.ifc_req; i < n; i++, lp++) { 439 for (i = 0, lp = ifc.ifc_req; i < n; i++, lp++) {
|
/illumos-gate/usr/src/cmd/lms/tools/ |
H A D | ATNetworkTool.cpp | 120 struct ifconf ifc; local 136 ifc.ifc_len = sizeof(buf); 137 ifc.ifc_buf = buf; 138 if(ioctl(sock, SIOCGIFCONF, &ifc) < 0) 146 ifr = ifc.ifc_req; 147 nInterfaces = ifc.ifc_len / sizeof(struct ifreq);
|
/illumos-gate/usr/src/uts/common/sys/usb/usba/ |
H A D | whcdi.h | 221 usb_pipe_handle_t ph, uint8_t ifc, wusb_secrt_data_t *secrt_data); 223 usb_pipe_handle_t ph, uint8_t ifc, wusb_secrt_data_t *secrt_data); 225 usb_pipe_handle_t ph, uint8_t ifc, uint8_t *data, size_t len, 314 usb_pipe_handle_t ph, uint8_t ifc);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
H A D | sys-solaris.c | 741 struct ifconf ifc; local 771 ifc.ifc_len = req_size; 772 ifc.ifc_buf = req; 773 if (myioctl(fd, SIOCGIFCONF, &ifc) < 0) { 783 pifreq = ifc.ifc_req; 785 for (i = ifc.ifc_len / sizeof (struct ifreq); i > 0; i--, pifreq++) { 2751 struct ifconf ifc; local 2767 ifc.ifc_len = nif * sizeof (struct ifreq); 2768 ifc.ifc_buf = (caddr_t)malloc(ifc [all...] |
/illumos-gate/usr/src/lib/libresolv2/common/irs/ |
H A D | gethostent.c | 662 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 */
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | mDNSUNP.c | 534 struct ifconf ifc; local 565 ifc.ifc_len = len; 566 ifc.ifc_buf = buf; 567 if (ioctl(sockfd, SIOCGIFCONF, &ifc) < 0) { 572 if (ifc.ifc_len == lastlen) 574 lastlen = ifc.ifc_len; 585 for (ptr = buf; ptr < buf + ifc.ifc_len; ) {
|
/illumos-gate/usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/ |
H A D | keyspan_pipe.c | 98 int ifc, alt, i, j, k = 0; local 108 ifc = dev_data->dev_curr_if; 110 if_data = &dev_data->dev_curr_cfg->cfg_if[ifc]; 125 tmp_ep = usb_lookup_ep_data(ksp->ks_dip, dev_data, ifc, alt, i, 197 tmp_ep = usb_lookup_ep_data(ksp->ks_dip, dev_data, ifc, alt, i, 289 int ifc, alt, i, j = 0; local 296 ifc = dev_data->dev_curr_if; 304 tmp_ep = usb_lookup_ep_data(ksp->ks_dip, dev_data, ifc, alt, 0, 324 tmp_ep = usb_lookup_ep_data(ksp->ks_dip, dev_data, ifc, alt, 345 tmp_ep = usb_lookup_ep_data(ksp->ks_dip, dev_data, ifc, al [all...] |
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | localaddr.c | 266 struct ifconf ifc; local 269 ifc.ifc_len = *lenp; 271 ifc.ifc_buf = buf; 274 ret = ioctl (s, SIOCGIFCONF, (char *)&ifc); 277 *lenp = ifc.ifc_len;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/ |
H A D | in.rdisc.c | 1303 struct ifconf ifc; local 1351 ifc.ifc_len = bufsize; 1352 ifc.ifc_buf = buf; 1353 if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0) { 1360 ifr = ifc.ifc_req; 1361 for (n = ifc.ifc_len/sizeof (struct ifreq); n > 0; n--, ifr++) {
|
/illumos-gate/usr/src/uts/common/pcmcia/cis/ |
H A D | cis_handlers.c | 568 ce->ifc = GET_BYTE(tp); 572 if (ce->ifc & CISTPL_CFTABLE_TPCE_IF_BVD) 575 if (ce->ifc & CISTPL_CFTABLE_TPCE_IF_WP) 577 if (ce->ifc & CISTPL_CFTABLE_TPCE_IF_RDY)
|
/illumos-gate/usr/src/lib/libsldap/common/ |
H A D | ns_common.c | 676 struct ifconf ifc; local 698 ifc.ifc_len = numifs * (int)sizeof (struct ifreq); 699 ifc.ifc_buf = buf; 700 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0) { 707 numifs = ifc.ifc_len/(int)sizeof (struct ifreq);
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | conf.c | 4944 struct ifconf ifc; 4972 ifc.ifc_len = numifs * sizeof(struct ifreq); 4973 ifc.ifc_buf = xalloc(ifc.ifc_len); 4974 if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) 4986 ifc.ifc_len); 4988 for (i = 0; i < ifc.ifc_len && i >= 0; ) 4991 struct ifreq *ifr = (struct ifreq *) &ifc.ifc_buf[i]; 5011 if ((ifc.ifc_len - i) < sizeof(*ifr)) 5124 sm_free(ifc [all...] |
/illumos-gate/usr/src/uts/common/io/usb/clients/usbecm/ |
H A D | usbecm.c | 2654 uint16_t ifc, usb_if_data_t *intf) 2671 ecmp->ecm_dev_data, ifc, alt, 0, 2675 ecmp->ecm_dev_data, ifc, alt, 0, 2686 ecmp->ecm_dev_data, ifc, alt, 0, 2692 ecmp->ecm_data_if_no = ifc; 2695 ecmp->ecm_ctrl_if_no = ifc; 2653 usbecm_find_bulk_in_out_eps(usbecm_state_t *ecmp, uint16_t ifc, usb_if_data_t *intf) argument
|