Searched refs:n_ifs (Results 1 - 7 of 7) sorted by relevance

/opensolaris-onvv-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcpagent_ipc.c790 int n_ifs, i, sock_fd; local
798 if ((ioctl(sock_fd, SIOCGIFNUM, &n_ifs) == -1) || (n_ifs <= 0)) {
803 ifnames = calloc(1, n_ifs * (LIFNAMSIZ + 1));
804 ifc.ifc_len = n_ifs * sizeof (struct ifreq);
805 ifc.ifc_req = calloc(n_ifs, sizeof (struct ifreq));
815 for (i = 0; i < n_ifs; i++) {
/opensolaris-onvv-gate/usr/src/uts/common/io/usb/usb_mid/
H A Dusb_mid.c570 uint_t n_ifs, i; local
653 n_ifs = usb_mid->mi_n_ifs;
654 usb_mid->mi_cd_list_length = size = (sizeof (dev_info_t *)) * n_ifs;
657 usb_mid->mi_child_events = kmem_zalloc(sizeof (uint8_t) * n_ifs,
659 usb_mid->mi_children_ifs = kmem_zalloc(sizeof (uint_t) * n_ifs,
661 for (i = 0; i < n_ifs; i++) {
917 uint_t n_ifs, if_count; local
934 n_ifs = usb_mid->mi_n_ifs;
938 "usb_mid_create_children: #interfaces = %d", n_ifs);
943 for (i = 0; i < n_ifs;
[all...]
/opensolaris-onvv-gate/usr/src/lib/libnsl/nss/
H A Dnetdir_inet_sundry.c313 static int n_ifs = 0; /* number of cached interfaces */ variable
391 n_ifs = 0;
396 if_info[n_ifs].if_address =
404 if_info[n_ifs].if_flags = lifr->lifr_flags;
409 if_info[n_ifs].if_netmask =
411 n_ifs++;
463 for (ifn = if_info; ifn < (if_info + n_ifs); ifn++) {
520 for (ifn = if_info; ifn < (if_info + n_ifs); ifn++) {
588 for (ifn = if_info; ifn < (if_info + n_ifs); ifn++) {
/opensolaris-onvv-gate/usr/src/uts/common/io/usb/usb_ia/
H A Dusb_ia.c517 uint_t n_ifs; local
602 n_ifs = usb_ia->ia_n_ifs;
603 usb_ia->ia_cd_list_length = size = (sizeof (dev_info_t *)) * n_ifs;
606 usb_ia->ia_child_events = kmem_zalloc(sizeof (uint8_t) * n_ifs,
633 usba_common_register_events(dip, n_ifs, usb_ia_event_cb);
801 uint_t n_ifs, first_if; local
811 n_ifs = usb_ia->ia_n_ifs;
817 for (i = 0; i < n_ifs; i++) {
/opensolaris-onvv-gate/usr/src/uts/common/io/usb/usba/
H A Dusbai_register.c1513 * n_ifs - number of elements in the array to remove.
1516 usba_free_if_array(usb_if_data_t *if_array, uint_t n_ifs) argument
1523 for (which_if = 0; which_if < n_ifs; which_if++) {
1540 kmem_free(if_array, (sizeof (usb_if_data_t) * n_ifs));
H A Dusba.c1846 uint_t n_ifs; /* number of interfaces */ local
1872 n_ifs = usba_device->usb_n_ifs;
1917 combined_node = ((n_cfgs == 1) && (n_ifs == 1) &&
/opensolaris-onvv-gate/usr/src/cmd/cmd-inet/usr.bin/netstat/
H A Dnetstat.c3412 int n_ifs, i, sock_fd; local
3427 n_ifs = LIFN_GUARD_VALUE;
3429 n_ifs = lifn.lifn_count + LIFN_GUARD_VALUE;
3434 lifc.lifc_len = n_ifs * sizeof (struct lifreq);
3444 n_ifs = lifc.lifc_len / sizeof (struct lifreq);
3446 for (i = 0; i < n_ifs; i++) {

Completed in 309 milliseconds