Home
last modified time | relevance | path

Searched refs:nifs (Results 1 – 11 of 11) sorted by relevance

/illumos-gate/usr/src/uts/common/io/ib/clients/rds/
H A Drds_ioctl.c122 int nifs; in rds_do_lifconf() local
124 if ((err = rds_do_ip_ioctl(SIOCGIFNUM, sizeof (int), &nifs)) != 0) in rds_do_lifconf()
131 nifs += 4; in rds_do_lifconf()
135 lifcp->lifc_len = *bufsizep = (nifs * sizeof (struct lifreq)); in rds_do_lifconf()
168 int i, nifs, retval = 0; in rds_ioctl_copyin_done() local
173 nifs = lifc.lifc_len / sizeof (struct lifreq); in rds_ioctl_copyin_done()
174 for (lifrp = lifc.lifc_req, i = 0; i < nifs; i++, lifrp++) { in rds_ioctl_copyin_done()
191 int i, nifs; in rds_ioctl_copyin_done() local
211 nifs = lifc.lifc_len / sizeof (struct lifreq); in rds_ioctl_copyin_done()
212 for (lifrp = lifc.lifc_req, i = 0; i < nifs && in rds_ioctl_copyin_done()
[all …]
/illumos-gate/usr/src/boot/efi/libefi/
H A Definet.c300 uint_t i, nhandles, nifs; in efinet_dev_init() local
313 nifs = 0; in efinet_dev_init()
325 handles2[nifs] = handles[i]; in efinet_dev_init()
326 nifs++; in efinet_dev_init()
329 if (nifs == 0) { in efinet_dev_init()
334 err = efi_register_handles(&efinet_dev, handles2, NULL, nifs); in efinet_dev_init()
338 efinetif.netif_ifs = calloc(nifs, sizeof (struct netif_dif)); in efinet_dev_init()
339 stats = calloc(nifs, sizeof (struct netif_stats)); in efinet_dev_init()
347 efinetif.netif_nifs = nifs; in efinet_dev_init()
349 for (i = 0; i < nifs; i++) { in efinet_dev_init()
/illumos-gate/usr/src/cmd/ipf/tools/
H A Dip_fil.c151 static int nifs = 0; variable
663 nifs = 1;
666 nifs++;
668 (nifs + 1) * sizeof(ifp));
671 nifs = 0;
674 ifneta[nifs] = NULL;
675 ifneta[nifs - 1] = (struct ifnet *)malloc(sizeof(*ifp));
676 if (!ifneta[nifs - 1]) {
677 nifs--;
681 ifp = ifneta[nifs - 1];
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_arp.c379 int i, nifs, naddr = 0; in ibcm_arp_get_ibd_ipaddr() local
393 nifs = lifc.lifc_len / sizeof (struct lifreq); in ibcm_arp_get_ibd_ipaddr()
396 family_loc, nifs); in ibcm_arp_get_ibd_ipaddr()
398 for (lifrp = lifc.lifc_req, i = 0; i < nifs; i++, lifrp++) { in ibcm_arp_get_ibd_ipaddr()
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Drdsv3_impl.c113 rdsv3_do_ip_ioctl(ksocket_t so4, void **ipaddrs, int *size, int *nifs) in rdsv3_do_ip_ioctl() argument
126 *nifs = 0; in rdsv3_do_ip_ioctl()
275 *nifs = numifs; in rdsv3_do_ip_ioctl()
319 rdsv3_do_ip_ioctl_old(ksocket_t so4, void **ipaddrs, int *size, int *nifs) in rdsv3_do_ip_ioctl_old() argument
332 *nifs = 0; in rdsv3_do_ip_ioctl_old()
490 *nifs = numifs; in rdsv3_do_ip_ioctl_old()
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/
H A Doce_hw.c412 atomic_inc_32(&dev->nifs); in oce_create_nw_interface()
447 if (dev->nifs > 0) { in oce_delete_nw_interface()
449 atomic_dec_32(&dev->nifs); in oce_delete_nw_interface()
/illumos-gate/usr/src/uts/common/sys/ib/clients/rdsv3/
H A Drdsv3_impl.h349 int rdsv3_do_ip_ioctl(ksocket_t so4, void **ipaddrs, int *size, int *nifs);
350 int rdsv3_do_ip_ioctl_old(ksocket_t so4, void **ipaddrs, int *size, int *nifs);
/illumos-gate/usr/src/cmd/ndmpd/ndmp/
H A Dndmpd_comm.c1491 int nifs; in get_default_nic_addr() local
1493 nifs = ifaddrlist(&al, AF_INET, LIFC_EXTERNAL_SOURCE, errmsg); in get_default_nic_addr()
1494 if (nifs <= 0) in get_default_nic_addr()
/illumos-gate/usr/src/uts/common/sys/fibre-channel/fca/oce/
H A Doce_impl.h274 uint32_t nifs; /* No of interfaces created */ member
/illumos-gate/usr/src/uts/common/rpc/
H A Drpcib.c5330 uint_t i, nifs; in rpcib_get_ib_addresses() local
5343 if ((nifs = lifc.lifc_len / sizeof (struct lifreq)) == 0) { in rpcib_get_ib_addresses()
5352 addrs4->ri_size = nifs * sizeof (struct sockaddr_in); in rpcib_get_ib_addresses()
5354 addrs6->ri_size = nifs * sizeof (struct sockaddr_in6); in rpcib_get_ib_addresses()
5357 for (lifrp = lifc.lifc_req, i = 0; i < nifs; i++, lifrp++) { in rpcib_get_ib_addresses()
/illumos-gate/usr/src/uts/common/inet/ip/
H A Dip_if.c18166 int i, nifs; in ip_ipmp_cleanup() local
18179 nifs = lifc.lifc_len / lifrsize; in ip_ipmp_cleanup()
18180 for (lifrp = lifc.lifc_req, i = 0; i < nifs; i++, lifrp++) { in ip_ipmp_cleanup()