Searched refs:n_ifs (Results 1 – 7 of 7) sorted by relevance
/titanic_41/usr/src/lib/libdhcpagent/common/ |
H A D | dhcpagent_ipc.c | 790 int n_ifs, i, sock_fd; in get_ifnames() local 798 if ((ioctl(sock_fd, SIOCGIFNUM, &n_ifs) == -1) || (n_ifs <= 0)) { in get_ifnames() 803 ifnames = calloc(1, n_ifs * (LIFNAMSIZ + 1)); in get_ifnames() 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() 815 for (i = 0; i < n_ifs; i++) { in get_ifnames()
|
/titanic_41/usr/src/lib/libnsl/nss/ |
H A D | netdir_inet_sundry.c | 313 static int n_ifs = 0; /* number of cached interfaces */ variable 391 n_ifs = 0; in get_if_info() 396 if_info[n_ifs].if_address = in get_if_info() 404 if_info[n_ifs].if_flags = lifr->lifr_flags; in get_if_info() 409 if_info[n_ifs].if_netmask = in get_if_info() 411 n_ifs++; in get_if_info() 463 for (ifn = if_info; ifn < (if_info + n_ifs); ifn++) { in is_my_address() 520 for (ifn = if_info; ifn < (if_info + n_ifs); ifn++) { in get_best_match() 588 for (ifn = if_info; ifn < (if_info + n_ifs); ifn++) { in get_best_match()
|
/titanic_41/usr/src/uts/common/io/usb/usb_mid/ |
H A D | usb_mid.c | 573 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()
|
/titanic_41/usr/src/uts/common/io/usb/usb_ia/ |
H A D | usb_ia.c | 520 uint_t n_ifs; in usb_ia_attach() local 605 n_ifs = usb_ia->ia_n_ifs; in usb_ia_attach() 606 usb_ia->ia_cd_list_length = size = (sizeof (dev_info_t *)) * n_ifs; in usb_ia_attach() 609 usb_ia->ia_child_events = kmem_zalloc(sizeof (uint8_t) * n_ifs, in usb_ia_attach() 636 usba_common_register_events(dip, n_ifs, usb_ia_event_cb); in usb_ia_attach() 804 uint_t n_ifs, first_if; in usb_ia_create_children() local 814 n_ifs = usb_ia->ia_n_ifs; in usb_ia_create_children() 820 for (i = 0; i < n_ifs; i++) { in usb_ia_create_children()
|
/titanic_41/usr/src/uts/common/io/usb/usba/ |
H A D | usbai_register.c | 1431 usba_free_if_array(usb_if_data_t *if_array, uint_t n_ifs) in usba_free_if_array() argument 1438 for (which_if = 0; which_if < n_ifs; which_if++) { in usba_free_if_array() 1455 kmem_free(if_array, (sizeof (usb_if_data_t) * n_ifs)); in usba_free_if_array()
|
H A D | usba.c | 1764 uint_t n_ifs; /* number of interfaces */ in usba_ready_device_node() local 1790 n_ifs = usba_device->usb_n_ifs; in usba_ready_device_node() 1835 combined_node = ((n_cfgs == 1) && (n_ifs == 1) && in usba_ready_device_node()
|
/titanic_41/usr/src/cmd/cmd-inet/usr.bin/netstat/ |
H A D | netstat.c | 3412 int n_ifs, i, sock_fd; in dhcp_walk_interfaces() local 3427 n_ifs = LIFN_GUARD_VALUE; in dhcp_walk_interfaces() 3429 n_ifs = lifn.lifn_count + LIFN_GUARD_VALUE; in dhcp_walk_interfaces() 3434 lifc.lifc_len = n_ifs * sizeof (struct lifreq); in dhcp_walk_interfaces() 3444 n_ifs = lifc.lifc_len / sizeof (struct lifreq); in dhcp_walk_interfaces() 3446 for (i = 0; i < n_ifs; i++) { in dhcp_walk_interfaces()
|