Home
last modified time | relevance | path

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

12

/titanic_44/usr/src/ucblib/librpcsoc/
H A Dget_myaddress.c54 struct ifconf ifc; in get_myaddress() local
72 ifc.ifc_len = numifs * sizeof (struct ifreq); in get_myaddress()
73 if ((ifc.ifc_buf = (caddr_t)malloc(ifc.ifc_len)) == NULL) { in get_myaddress()
79 ret = ioctl(s, SIOCGIFCONF, (char *)&ifc); in get_myaddress()
94 ifr = ifc.ifc_req; in get_myaddress()
95 for (len = ifc.ifc_len; len > 0; len -= sizeof (ifreq), ifr++) { in get_myaddress()
116 free(ifc.ifc_buf); in get_myaddress()
/titanic_44/usr/src/cmd/svc/shell/
H A Dipf_include.sh760 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 …]
/titanic_44/usr/src/lib/librdc/common/
H A Dnetaddrs.c92 getmyaddrs(struct ifconf *ifc) in getmyaddrs() argument
99 ifc->ifc_buf = NULL; in getmyaddrs()
100 ifc->ifc_len = 0; in getmyaddrs()
130 ifc->ifc_buf = buf; in getmyaddrs()
131 ifc->ifc_len = numifs * sizeof (struct ifreq); in getmyaddrs()
133 if (ioctl(sock, SIOCGIFCONF, (char *)ifc) < 0) { in getmyaddrs()
154 struct ifconf *ifc; in self_check() local
157 ifc = malloc(sizeof (struct ifconf)); in self_check()
158 if (ifc == NULL) in self_check()
160 memset((char *)ifc, 0, sizeof (struct ifconf)); in self_check()
[all …]
/titanic_44/usr/src/lib/libresolv/
H A Dres_init.c108 struct ifconf ifc; in res_init() local
130 ifc.ifc_len = bufsize; in res_init()
131 ifc.ifc_buf = buf; in res_init()
132 if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) { in res_init()
140 ifrp = ifc.ifc_req; in res_init()
141 for (n = ifc.ifc_len / sizeof (struct ifreq); n > 0; in res_init()
/titanic_44/usr/src/lib/libdhcpagent/common/
H A Ddhcpagent_ipc.c789 struct ifconf ifc; in get_ifnames() local
804 ifc.ifc_len = n_ifs * sizeof (struct ifreq); in get_ifnames()
805 ifc.ifc_req = calloc(n_ifs, sizeof (struct ifreq)); in get_ifnames()
806 if (ifc.ifc_req != NULL && ifnames != NULL) { in get_ifnames()
808 if (ioctl(sock_fd, SIOCGIFCONF, &ifc) == -1) { in get_ifnames()
811 free(ifc.ifc_req); in get_ifnames()
817 if (ioctl(sock_fd, SIOCGIFFLAGS, &ifc.ifc_req[i]) == 0) in get_ifnames()
818 if ((ifc.ifc_req[i].ifr_flags & in get_ifnames()
822 (void) strcat(ifnames, ifc.ifc_req[i].ifr_name); in get_ifnames()
831 free(ifc.ifc_req); in get_ifnames()
/titanic_44/usr/src/lib/libslp/clib/
H A Dslp_net_utils.c229 struct ifconf ifc; in get_all_interfaces() local
260 ifc.ifc_len = bufsize; in get_all_interfaces()
261 ifc.ifc_buf = buf; in get_all_interfaces()
262 if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) { in get_all_interfaces()
266 ifrp = ifc.ifc_req; in get_all_interfaces()
268 for (n = ifc.ifc_len / sizeof (struct ifreq); n > 0; n--, ifrp++) { in get_all_interfaces()
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/
H A Dhostconfig.c121 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 Din.rwhod.c501 struct ifconf ifc; in configure() local
544 ifc.ifc_len = bufsize; in configure()
545 ifc.ifc_buf = buf; in configure()
546 if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) { in configure()
552 ifr = ifc.ifc_req; in configure()
553 for (n = ifc.ifc_len / sizeof (struct ifreq); n > 0; n--, ifr++) { in configure()
H A Droute.c1963 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()
/titanic_44/usr/src/uts/common/io/ib/clients/rds/
H A Drds_ioctl.c186 STRUCT_HANDLE(ifconf, ifc); in rds_ioctl_copyin_done()
195 STRUCT_SET_HANDLE(ifc, iocp->ioc_flag, (struct ifconf *)addr); in rds_ioctl_copyin_done()
196 ubuf_size = STRUCT_FGET(ifc, ifc_len); in rds_ioctl_copyin_done()
197 ubuf_addr = STRUCT_FGETP(ifc, ifc_buf); in rds_ioctl_copyin_done()
230 STRUCT_FSET(ifc, ifc_len, MBLKL(mp1)); in rds_ioctl_copyin_done()
/titanic_44/usr/src/uts/common/io/ib/clients/rdsv3/
H A Daf_rds.c270 struct ifconf ifc; in rdsv3_ioctl() local
353 if (ddi_copyin((void *)arg, &ifc, sizeof (struct ifconf), 0) 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 Drdsv3_impl.c319 struct ifconf ifc; in rdsv3_do_ip_ioctl_old() local
355 ifc.ifc_len = bufsize; in rdsv3_do_ip_ioctl_old()
356 ifc.ifc_buf = buf; in rdsv3_do_ip_ioctl_old()
357 rc = ksocket_ioctl(so4, SIOCGIFCONF, (intptr_t)&ifc, &rval, CRED()); in rdsv3_do_ip_ioctl_old()
365 if (bufsize <= ifc.ifc_len) { in rdsv3_do_ip_ioctl_old()
371 n = ifc.ifc_len / sizeof (struct ifreq); in rdsv3_do_ip_ioctl_old()
376 for (i = 0, j = 0, lp = ifc.ifc_req; i < n; i++, lp++) { in rdsv3_do_ip_ioctl_old()
439 for (i = 0, lp = ifc.ifc_req; i < n; i++, lp++) { in rdsv3_do_ip_ioctl_old()
/titanic_44/usr/src/cmd/avs/dscfglockd/
H A Ddscfglockd.c194 getmyaddrs(struct ifconf *ifc) in getmyaddrs() argument
201 ifc->ifc_buf = NULL; in getmyaddrs()
202 ifc->ifc_len = 0; in getmyaddrs()
232 ifc->ifc_buf = buf; in getmyaddrs()
233 ifc->ifc_len = numifs * sizeof (struct ifreq); in getmyaddrs()
235 if (ioctl(sock, SIOCGIFCONF, (char *)ifc) < 0) { in getmyaddrs()
244 struct ifconf *ifc; variable
271 ifr = ifc->ifc_req; in islocalhost()
272 n = ifc->ifc_len / sizeof (struct ifreq); in islocalhost()
1249 ifc = (struct ifconf *)malloc(sizeof (struct ifconf)); in init()
[all …]
/titanic_44/usr/src/cmd/cmd-inet/usr.bin/pppd/
H A Dsys-solaris.c741 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; in get_ether_addr() local
2767 ifc.ifc_len = nif * sizeof (struct ifreq); in get_ether_addr()
2768 ifc.ifc_buf = (caddr_t)malloc(ifc.ifc_len); in get_ether_addr()
2769 if (ifc.ifc_buf == NULL) { in get_ether_addr()
[all …]
/titanic_44/usr/src/uts/common/sys/usb/usba/
H A Dwhcdi.h221 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);
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DmDNSUNP.c519 struct ifconf ifc; in get_ifi_info() local
550 ifc.ifc_len = len; in get_ifi_info()
551 ifc.ifc_buf = buf; in get_ifi_info()
552 if (ioctl(sockfd, SIOCGIFCONF, &ifc) < 0) { in get_ifi_info()
557 if (ifc.ifc_len == lastlen) in get_ifi_info()
559 lastlen = ifc.ifc_len; in get_ifi_info()
570 for (ptr = buf; ptr < buf + ifc.ifc_len; ) { in get_ifi_info()
/titanic_44/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) {
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 */
/titanic_44/usr/src/uts/common/io/usb/clients/usbser/usbser_keyspan/
H A Dkeyspan_pipe.c98 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 …]
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dlocaladdr.c266 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()
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/in.rdisc/
H A Din.rdisc.c1303 struct ifconf ifc; in initifs() local
1351 ifc.ifc_len = bufsize; in initifs()
1352 ifc.ifc_buf = buf; in initifs()
1353 if (ioctl(sock, SIOCGIFCONF, (char *)&ifc) < 0) { in initifs()
1360 ifr = ifc.ifc_req; in initifs()
1361 for (n = ifc.ifc_len/sizeof (struct ifreq); n > 0; n--, ifr++) { in initifs()
/titanic_44/usr/src/lib/libsldap/common/
H A Dns_common.c676 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()
/titanic_44/usr/src/cmd/sendmail/src/
H A Dconf.c4944 struct ifconf ifc; in load_if_names()
4972 ifc.ifc_len = numifs * sizeof(struct ifreq); in load_if_names()
4973 ifc.ifc_buf = xalloc(ifc.ifc_len); in load_if_names()
4974 if (ioctl(s, SIOCGIFCONF, (char *)&ifc) < 0) in load_if_names()
4986 ifc.ifc_len); in load_if_names()
4988 for (i = 0; i < ifc.ifc_len && i >= 0; ) in load_if_names()
4991 struct ifreq *ifr = (struct ifreq *) &ifc.ifc_buf[i]; in load_if_names()
5011 if ((ifc.ifc_len - i) < sizeof(*ifr)) in load_if_names()
5124 sm_free(ifc.ifc_buf); /* XXX */ in load_if_names()
/titanic_44/usr/src/uts/common/pcmcia/cis/
H A Dcis_handlers.c568 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)
/titanic_44/usr/src/uts/common/io/usb/clients/usbecm/
H A Dusbecm.c2654 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()
/titanic_44/usr/src/uts/common/io/usb/clients/usbser/usbftdi/
H A Duftdi_dsd.c1489 int ifc, alt; in uftdi_open_pipes() local
1500 ifc = uf->uf_dev_data->dev_curr_if; in uftdi_open_pipes()
1503 in_data = usb_lookup_ep_data(uf->uf_dip, uf->uf_dev_data, ifc, alt, in uftdi_open_pipes()
1506 out_data = usb_lookup_ep_data(uf->uf_dip, uf->uf_dev_data, ifc, alt, in uftdi_open_pipes()

12