| /illumos-gate/usr/src/ucblib/librpcsoc/ |
| H A D | get_myaddress.c | 53 struct ifconf ifc; in get_myaddress() local 71 ifc.ifc_len = numifs * sizeof (struct ifreq); in get_myaddress() 72 if ((ifc.ifc_buf = (caddr_t)malloc(ifc.ifc_len)) == NULL) { in get_myaddress() 78 ret = ioctl(s, SIOCGIFCONF, (char *)&ifc); in get_myaddress() 93 ifr = ifc.ifc_req; in get_myaddress() 94 for (len = ifc.ifc_len; len > 0; len -= sizeof (ifreq), ifr++) { in get_myaddress() 115 free(ifc.ifc_buf); in get_myaddress()
|
| /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=`get_interface $name` [all …]
|
| /illumos-gate/usr/src/lib/libresolv/ |
| H A D | res_init.c | 110 struct ifconf ifc; in res_init() local 131 ifc.ifc_len = bufsize; in res_init() 132 ifc.ifc_buf = buf; in res_init() 133 if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) { in res_init() 141 ifrp = ifc.ifc_req; in res_init() 142 for (n = ifc.ifc_len / sizeof (struct ifreq); n > 0; in res_init()
|
| /illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
| H A D | af_rds.c | 270 struct ifconf ifc; in rdsv3_ioctl() local 353 if (ddi_copyin((void *)arg, &ifc, sizeof (struct ifconf), 0) in rdsv3_ioctl() 355 RDSV3_DPRINTF2("rdsv3_ioctl", "ddi_copyin failed ifc"); in rdsv3_ioctl() 362 ifc.ifc_len, ifc.ifc_req); in rdsv3_ioctl() 371 if ((ifc.ifc_len > 0) && (numifs > 0)) { in rdsv3_ioctl() 372 if (ddi_copyout(buf, (void *)ifc.ifc_req, in rdsv3_ioctl() 373 (ifc.ifc_len < bufsize) ? ifc.ifc_len : in rdsv3_ioctl() 382 ifc.ifc_len = bufsize; in rdsv3_ioctl() 383 if (ddi_copyout(&ifc, (void *)arg, sizeof (struct ifconf), in rdsv3_ioctl()
|
| H A D | rdsv3_impl.c | 322 struct ifconf ifc; in rdsv3_do_ip_ioctl_old() local 358 ifc.ifc_len = bufsize; in rdsv3_do_ip_ioctl_old() 359 ifc.ifc_buf = buf; in rdsv3_do_ip_ioctl_old() 360 rc = ksocket_ioctl(so4, SIOCGIFCONF, (intptr_t)&ifc, &rval, CRED()); in rdsv3_do_ip_ioctl_old() 368 if (bufsize <= ifc.ifc_len) { in rdsv3_do_ip_ioctl_old() 374 n = ifc.ifc_len / sizeof (struct ifreq); in rdsv3_do_ip_ioctl_old() 379 for (i = 0, j = 0, lp = ifc.ifc_req; i < n; i++, lp++) { in rdsv3_do_ip_ioctl_old() 442 for (i = 0, lp = ifc.ifc_req; i < n; i++, lp++) { in rdsv3_do_ip_ioctl_old()
|
| /illumos-gate/usr/src/lib/libslp/clib/ |
| H A D | slp_net_utils.c | 227 struct ifconf ifc; in get_all_interfaces() local 258 ifc.ifc_len = bufsize; in get_all_interfaces() 259 ifc.ifc_buf = buf; in get_all_interfaces() 260 if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) { in get_all_interfaces() 264 ifrp = ifc.ifc_req; in get_all_interfaces() 266 for (n = ifc.ifc_len / sizeof (struct ifreq); n > 0; n--, ifrp++) { in get_all_interfaces()
|
| /illumos-gate/usr/src/uts/common/io/ib/clients/rds/ |
| H A D | rds_ioctl.c | 187 STRUCT_HANDLE(ifconf, ifc); in rds_ioctl_copyin_done() 196 STRUCT_SET_HANDLE(ifc, iocp->ioc_flag, (struct ifconf *)addr); in rds_ioctl_copyin_done() 197 ubuf_size = STRUCT_FGET(ifc, ifc_len); in rds_ioctl_copyin_done() 198 ubuf_addr = STRUCT_FGETP(ifc, ifc_buf); in rds_ioctl_copyin_done() 231 STRUCT_FSET(ifc, ifc_len, MBLKL(mp1)); in rds_ioctl_copyin_done()
|
| /illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
| H A D | hostconfig.c | 119 struct ifconf ifc; local 237 ifc.ifc_buf = (caddr_t)&reqbuf[0]; 238 ifc.ifc_len = bufsize; 239 if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) { 243 ifr = ifc.ifc_req; 244 n = ifc.ifc_len/sizeof (struct ifreq);
|
| H A D | in.rwhod.c | 499 struct ifconf ifc; in configure() local 542 ifc.ifc_len = bufsize; in configure() 543 ifc.ifc_buf = buf; in configure() 544 if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) { in configure() 550 ifr = ifc.ifc_req; in configure() 551 for (n = ifc.ifc_len / sizeof (struct ifreq); n > 0; n--, ifr++) { in configure()
|
| H A D | route.c | 1963 struct ifconf ifc; in inet_makesubnetmask() local 1985 (void) memset(&ifc, 0, sizeof (ifc)); in inet_makesubnetmask() 1986 ifc.ifc_len = bufsize; in inet_makesubnetmask() 1987 ifc.ifc_buf = buf; in inet_makesubnetmask() 1988 if (ioctl(iosoc, SIOCGIFCONF, (char *)&ifc) < 0) in inet_makesubnetmask() 1991 ifr = ifc.ifc_req; in inet_makesubnetmask() 1992 for (n = ifc.ifc_len / sizeof (struct ifreq); n > 0; n--, ifr++) { in inet_makesubnetmask()
|
| /illumos-gate/usr/src/lib/libdhcpagent/common/ |
| H A D | dhcpagent_ipc.c | 792 struct ifconf ifc; in get_ifnames() local 807 ifc.ifc_len = n_ifs * sizeof (struct ifreq); in get_ifnames() 808 ifc.ifc_req = calloc(n_ifs, sizeof (struct ifreq)); in get_ifnames() 809 if (ifc.ifc_req != NULL && ifnames != NULL) { in get_ifnames() 811 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) == -1) { in get_ifnames() 814 free(ifc.ifc_req); in get_ifnames() 820 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifc.ifc_req[i]) == 0) in get_ifnames() 821 if ((ifc.ifc_req[i].ifr_flags & in get_ifnames() 825 (void) strcat(ifnames, ifc.ifc_req[i].ifr_name); in get_ifnames() 834 free(ifc.ifc_req); in get_ifnames()
|
| /illumos-gate/usr/src/lib/libresolv2/common/irs/ |
| H A D | gethostent.c | 658 struct ifconf ifc; local 698 ifc.ifc_len = bufsiz; 699 ifc.ifc_buf = buf; 706 if (emul_ioctl(&ifc) >= 0) 709 if ((n = ioctl(s, SIOCGIFCONF, (char *)&ifc)) != -1) { 714 * ifc.ifc_len is too near to the end of the 718 if (ifc.ifc_len + 2 * sizeof(u.ifreq) < bufsiz) 733 cplim = buf + ifc.ifc_len; /*%< skip over if's with big ifr_addr's */
|
| /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; in keyspan_init_pipes() local 108 ifc = dev_data->dev_curr_if; in keyspan_init_pipes() 110 if_data = &dev_data->dev_curr_cfg->cfg_if[ifc]; in keyspan_init_pipes() 125 tmp_ep = usb_lookup_ep_data(ksp->ks_dip, dev_data, ifc, alt, i, in keyspan_init_pipes() 197 tmp_ep = usb_lookup_ep_data(ksp->ks_dip, dev_data, ifc, alt, i, in keyspan_init_pipes() 289 int ifc, alt, i, j = 0; in keyspan_init_pipes_usa49wg() local 296 ifc = dev_data->dev_curr_if; in keyspan_init_pipes_usa49wg() 304 tmp_ep = usb_lookup_ep_data(ksp->ks_dip, dev_data, ifc, alt, 0, in keyspan_init_pipes_usa49wg() 324 tmp_ep = usb_lookup_ep_data(ksp->ks_dip, dev_data, ifc, alt, in keyspan_init_pipes_usa49wg() 345 tmp_ep = usb_lookup_ep_data(ksp->ks_dip, dev_data, ifc, alt, 0, in keyspan_init_pipes_usa49wg() [all …]
|
| /illumos-gate/usr/src/cmd/cmd-inet/usr.bin/pppd/ |
| H A D | sys-solaris.c | 735 struct ifconf ifc; local 765 ifc.ifc_len = req_size; 766 ifc.ifc_buf = req; 767 if (myioctl(fd, SIOCGIFCONF, &ifc) < 0) { 777 pifreq = ifc.ifc_req; 779 for (i = ifc.ifc_len / sizeof (struct ifreq); i > 0; i--, pifreq++) { 2692 struct ifconf ifc; in get_ether_addr() local 2708 ifc.ifc_len = nif * sizeof (struct ifreq); in get_ether_addr() 2709 ifc.ifc_buf = (caddr_t)malloc(ifc.ifc_len); in get_ether_addr() 2710 if (ifc.ifc_buf == NULL) { in get_ether_addr() [all …]
|
| /illumos-gate/usr/src/contrib/mDNSResponder/mDNSPosix/ |
| H A D | mDNSUNP.c | 548 struct ifconf ifc; in get_ifi_info() local 579 ifc.ifc_len = len; in get_ifi_info() 580 ifc.ifc_buf = buf; in get_ifi_info() 581 if (ioctl(sockfd, SIOCGIFCONF, &ifc) < 0) { in get_ifi_info() 586 if (ifc.ifc_len == lastlen) in get_ifi_info() 588 lastlen = ifc.ifc_len; in get_ifi_info() 599 for (ptr = buf; ptr < buf + ifc.ifc_len; ) { in get_ifi_info()
|
| /illumos-gate/usr/src/cmd/bnu/ |
| H A D | cu.c | 72 * ~%ifc (alias ~%nostop) toggles on/off the DC3/DC1 input control, 181 Ifc=YES, /* NO means remote can't XON/XOFF */ variable 343 Ifc = NO; in main() 967 * 'ifc' (aliased to nostop) and 'ofc' (aliased to noostop) 1136 /* ~%[ifc|nostop] toggles start/stop input control */ in _dopercen() 1137 if( EQUALS(arg[0], "ifc") || EQUALS(arg[0], "nostop") ) { in _dopercen() 1139 Ifc = !Ifc; in _dopercen() 1140 if(Ifc == YES) in _dopercen() 1146 VERBOSE("(ifc %s)", (Ifc ? "enabled" : "disabled")); in _dopercen() 1387 if(Ifc == NO) in _mode()
|
| /illumos-gate/usr/src/man/man9f/ |
| H A D | csx_Parse_CISTPL_CFTABLE_ENTRY.9f | 66 uint32_t ifc; /* interface description */ 186 If the \fBCISTPL_CFTABLE_TPCE_IF\fR flag is set, the \fBifc\fR field is
|
| /illumos-gate/usr/src/man/man1c/ |
| H A D | cu.1c | 472 \fB\fB~%ifc\fR\fR 516 Same as \fB~%ifc\fR.
|
| /illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
| H A D | localaddr.c | 266 struct ifconf ifc; in get_ifconf() local 269 ifc.ifc_len = *lenp; in get_ifconf() 271 ifc.ifc_buf = buf; in get_ifconf() 274 ret = ioctl (s, SIOCGIFCONF, (char *)&ifc); in get_ifconf() 277 *lenp = ifc.ifc_len; in get_ifconf()
|
| /illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/ |
| H A D | in.rdisc.c | 1301 struct ifconf ifc; in initifs() local 1349 ifc.ifc_len = bufsize; in initifs() 1350 ifc.ifc_buf = buf; in initifs() 1351 if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0) { in initifs() 1358 ifr = ifc.ifc_req; in initifs() 1359 for (n = ifc.ifc_len/sizeof (struct ifreq); n > 0; n--, ifr++) { in initifs()
|
| /illumos-gate/usr/src/uts/common/sys/usb/clients/usbecm/ |
| H A D | usbecm.h | 103 uint_t ecm_cfg_index; /* config contains ECM ifc */
|
| /illumos-gate/usr/src/uts/common/io/usb/clients/usbser/usbftdi/ |
| H A D | uftdi_dsd.c | 1497 int ifc, alt; in uftdi_open_pipes() local 1508 ifc = uf->uf_dev_data->dev_curr_if; in uftdi_open_pipes() 1511 in_data = usb_lookup_ep_data(uf->uf_dip, uf->uf_dev_data, ifc, alt, in uftdi_open_pipes() 1514 out_data = usb_lookup_ep_data(uf->uf_dip, uf->uf_dev_data, ifc, alt, in uftdi_open_pipes()
|
| /illumos-gate/usr/src/uts/common/io/usb/clients/usbser/usbsprl/ |
| H A D | pl2303_dsd.c | 1459 int ifc, alt; in pl2303_open_pipes() local 1464 ifc = plp->pl_dev_data->dev_curr_if; in pl2303_open_pipes() 1467 in_data = usb_lookup_ep_data(plp->pl_dip, plp->pl_dev_data, ifc, alt, in pl2303_open_pipes() 1470 out_data = usb_lookup_ep_data(plp->pl_dip, plp->pl_dev_data, ifc, alt, in pl2303_open_pipes()
|
| /illumos-gate/usr/src/lib/libsldap/common/ |
| H A D | ns_common.c | 676 struct ifconf ifc; in __s_api_get_local_interfaces() local 698 ifc.ifc_len = numifs * (int)sizeof (struct ifreq); in __s_api_get_local_interfaces() 699 ifc.ifc_buf = buf; in __s_api_get_local_interfaces() 700 if (ioctl(fd, SIOCGIFCONF, (char *)&ifc) < 0) { in __s_api_get_local_interfaces() 707 numifs = ifc.ifc_len/(int)sizeof (struct ifreq); in __s_api_get_local_interfaces()
|
| /illumos-gate/usr/src/uts/common/io/usb/clients/usbecm/ |
| H A D | usbecm.c | 2654 uint16_t ifc, usb_if_data_t *intf) in usbecm_find_bulk_in_out_eps() argument 2671 ecmp->ecm_dev_data, ifc, alt, 0, in usbecm_find_bulk_in_out_eps() 2675 ecmp->ecm_dev_data, ifc, alt, 0, in usbecm_find_bulk_in_out_eps() 2686 ecmp->ecm_dev_data, ifc, alt, 0, in usbecm_find_bulk_in_out_eps() 2692 ecmp->ecm_data_if_no = ifc; in usbecm_find_bulk_in_out_eps() 2695 ecmp->ecm_ctrl_if_no = ifc; in usbecm_find_bulk_in_out_eps()
|