Home
last modified time | relevance | path

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

/illumos-gate/usr/src/lib/libdhcpagent/common/
H A Ddhcpagent_ipc.c793 int n_ifs, i, sock_fd; in get_ifnames() local
801 if ((ioctl(sock_fd, SIOCGIFNUM, &n_ifs) == -1) || (n_ifs <= 0)) { in get_ifnames()
806 ifnames = calloc(1, n_ifs * (LIFNAMSIZ + 1)); in get_ifnames()
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()
818 for (i = 0; i < n_ifs; i++) { in get_ifnames()
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dnetdir_inet_sundry.c314 static int n_ifs = 0; /* number of cached interfaces */ variable
392 n_ifs = 0; in get_if_info()
397 if_info[n_ifs].if_address = in get_if_info()
405 if_info[n_ifs].if_flags = lifr->lifr_flags; in get_if_info()
410 if_info[n_ifs].if_netmask = in get_if_info()
412 n_ifs++; in get_if_info()
464 for (ifn = if_info; ifn < (if_info + n_ifs); ifn++) { in is_my_address()
521 for (ifn = if_info; ifn < (if_info + n_ifs); ifn++) { in get_best_match()
589 for (ifn = if_info; ifn < (if_info + n_ifs); ifn++) { in get_best_match()
/illumos-gate/usr/src/uts/common/io/usb/usb_ia/
H A Dusb_ia.c521 uint_t n_ifs; in usb_ia_attach() local
606 n_ifs = usb_ia->ia_n_ifs; in usb_ia_attach()
607 usb_ia->ia_cd_list_length = size = (sizeof (dev_info_t *)) * n_ifs; in usb_ia_attach()
610 usb_ia->ia_child_events = kmem_zalloc(sizeof (uint8_t) * n_ifs, in usb_ia_attach()
637 usba_common_register_events(dip, n_ifs, usb_ia_event_cb); in usb_ia_attach()
805 uint_t n_ifs, first_if; in usb_ia_create_children() local
815 n_ifs = usb_ia->ia_n_ifs; in usb_ia_create_children()
821 for (i = 0; i < n_ifs; i++) { in usb_ia_create_children()
/illumos-gate/usr/src/uts/common/io/usb/usb_mid/
H A Dusb_mid.c573 uint_t n_ifs, i; in usb_mid_attach() local
656 n_ifs = usb_mid->mi_n_ifs; in usb_mid_attach()
657 usb_mid->mi_cd_list_length = size = (sizeof (dev_info_t *)) * n_ifs; in usb_mid_attach()
660 usb_mid->mi_child_events = kmem_zalloc(sizeof (uint8_t) * n_ifs, in usb_mid_attach()
662 usb_mid->mi_children_ifs = kmem_zalloc(sizeof (uint_t) * n_ifs, in usb_mid_attach()
664 for (i = 0; i < n_ifs; i++) { in usb_mid_attach()
920 uint_t n_ifs, if_count; in usb_mid_create_children() local
937 n_ifs = usb_mid->mi_n_ifs; in usb_mid_create_children()
941 "usb_mid_create_children: #interfaces = %d", n_ifs); in usb_mid_create_children()
946 for (i = 0; i < n_ifs; i += if_count) { in usb_mid_create_children()
/illumos-gate/usr/src/uts/common/io/usb/usba/
H A Dusbai_register.c1487 usba_free_if_array(usb_if_data_t *if_array, uint_t n_ifs) in usba_free_if_array() argument
1494 for (which_if = 0; which_if < n_ifs; which_if++) { in usba_free_if_array()
1511 kmem_free(if_array, (sizeof (usb_if_data_t) * n_ifs)); in usba_free_if_array()
H A Dusba.c1777 uint_t n_ifs; /* number of interfaces */ in usba_ready_device_node() local
1803 n_ifs = usba_device->usb_n_ifs; in usba_ready_device_node()
1848 combined_node = ((n_cfgs == 1) && (n_ifs == 1) && in usba_ready_device_node()
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/netstat/
H A Dnetstat.c3809 int n_ifs, i, sock_fd; in dhcp_walk_interfaces() local
3824 n_ifs = LIFN_GUARD_VALUE; in dhcp_walk_interfaces()
3826 n_ifs = lifn.lifn_count + LIFN_GUARD_VALUE; in dhcp_walk_interfaces()
3831 lifc.lifc_len = n_ifs * sizeof (struct lifreq); in dhcp_walk_interfaces()
3841 n_ifs = lifc.lifc_len / sizeof (struct lifreq); in dhcp_walk_interfaces()
3843 for (i = 0; i < n_ifs; i++) { in dhcp_walk_interfaces()