/titanic_44/usr/src/lib/libinetutil/common/ |
H A D | ifaddrlist.c | 59 struct lifconf lifc; in ifaddrlist() local 66 (void) memset(&lifc, 0, sizeof (lifc)); in ifaddrlist() 94 lifc.lifc_flags = flags; in ifaddrlist() 95 lifc.lifc_family = family; in ifaddrlist() 96 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq); in ifaddrlist() 97 if ((lifc.lifc_buf = realloc(lifc.lifc_buf, lifc.lifc_len)) == NULL) { in ifaddrlist() 102 if (ioctl(fd, SIOCGLIFCONF, &lifc) == -1) { in ifaddrlist() 112 nlifr = lifc.lifc_len / sizeof (struct lifreq); in ifaddrlist() 131 for (lifrp = lifc.lifc_req, i = 0; i < nlifr; i++, lifrp++) { in ifaddrlist() 169 free(lifc.lifc_buf); in ifaddrlist() [all …]
|
H A D | ifaddrlistx.c | 43 struct lifconf lifc; in ifaddrlistx() local 55 (void) memset(&lifc, 0, sizeof (lifc)); in ifaddrlistx() 82 lifc.lifc_flags = flags; in ifaddrlistx() 83 lifc.lifc_family = AF_UNSPEC; in ifaddrlistx() 84 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq); in ifaddrlistx() 85 if ((lifc.lifc_buf = realloc(lifc.lifc_buf, lifc.lifc_len)) == NULL) in ifaddrlistx() 88 if (ioctl(s4, SIOCGLIFCONF, &lifc) == -1) in ifaddrlistx() 96 nlifr = lifc.lifc_len / sizeof (struct lifreq); in ifaddrlistx() 105 for (lifrp = lifc.lifc_req, i = 0; i < nlifr; i++, lifrp++) { in ifaddrlistx() 143 free(lifc.lifc_buf); in ifaddrlistx() [all …]
|
/titanic_44/usr/src/cmd/fs.d/nfs/lib/ |
H A D | selfcheck.c | 121 struct lifconf *lifc; in getmyaddrs() local 139 lifc = (struct lifconf *)malloc(sizeof (struct lifconf)); in getmyaddrs() 140 if (lifc == NULL) { in getmyaddrs() 151 free(lifc); in getmyaddrs() 155 lifc->lifc_family = AF_UNSPEC; in getmyaddrs() 156 lifc->lifc_flags = 0; in getmyaddrs() 157 lifc->lifc_buf = buf; in getmyaddrs() 158 lifc->lifc_len = numifs * sizeof (struct lifreq); in getmyaddrs() 160 if (ioctl(sock, SIOCGLIFCONF, (char *)lifc) < 0) { in getmyaddrs() 164 free(lifc); in getmyaddrs() [all …]
|
/titanic_44/usr/src/lib/libsocket/inet/ |
H A D | interface_id.c | 115 struct lifconf lifc; in if_indextoname() local 168 lifc.lifc_family = AF_UNSPEC; in if_indextoname() 169 lifc.lifc_flags = flags; in if_indextoname() 170 lifc.lifc_len = bufsize; in if_indextoname() 171 lifc.lifc_buf = buf; in if_indextoname() 172 if (ioctl(s, SIOCGLIFCONF, (char *)&lifc) < 0) { in if_indextoname() 180 lifrp = lifc.lifc_req; in if_indextoname() 182 for (n = lifc.lifc_len / sizeof (struct lifreq); n > 0; n--, lifrp++) { in if_indextoname() 224 struct lifconf lifc; in if_nameindex() local 255 lifc.lifc_family = AF_UNSPEC; in if_nameindex() [all …]
|
H A D | getifaddrs.c | 225 struct lifconf lifc; in getallifs() local 250 lifc.lifc_family = af; in getallifs() 251 lifc.lifc_flags = lifc_flags; in getallifs() 252 lifc.lifc_len = bufsize; in getallifs() 253 lifc.lifc_buf = *buf; in getallifs() 254 if (ioctl(s, SIOCGLIFCONF, (char *)&lifc) < 0) in getallifs() 257 *numifs = lifc.lifc_len / sizeof (struct lifreq); in getallifs()
|
/titanic_44/usr/src/cmd/svr4pkg/libinst/ |
H A D | is_local_host.c | 76 struct lifconf lifc; in is_local_if() local 105 lifc.lifc_family = hp->h_addrtype; in is_local_if() 106 lifc.lifc_flags = LIFC_EXTERNAL_SOURCE; in is_local_if() 107 lifc.lifc_len = bufsiz; in is_local_if() 108 lifc.lifc_buf = buf; in is_local_if() 109 if (ioctl(s, SIOCGLIFCONF, (char *)&lifc) == -1) { in is_local_if() 120 for (lifrp = lifc.lifc_req, in is_local_if() 121 nif = lifc.lifc_len / sizeof (struct lifreq); in is_local_if()
|
/titanic_44/usr/src/uts/common/io/ib/clients/rds/ |
H A D | rds_ioctl.c | 165 struct lifconf lifc; in rds_ioctl_copyin_done() local 169 if ((err = rds_do_lifconf(&lifc, &bufsize)) != 0) in rds_ioctl_copyin_done() 172 nifs = lifc.lifc_len / sizeof (struct lifreq); in rds_ioctl_copyin_done() 173 for (lifrp = lifc.lifc_req, i = 0; i < nifs; i++, lifrp++) { in rds_ioctl_copyin_done() 180 kmem_free(lifc.lifc_buf, bufsize); in rds_ioctl_copyin_done() 191 struct lifconf lifc; in rds_ioctl_copyin_done() local 199 if ((err = rds_do_lifconf(&lifc, &bufsize)) != 0) in rds_ioctl_copyin_done() 205 kmem_free(lifc.lifc_buf, bufsize); in rds_ioctl_copyin_done() 210 nifs = lifc.lifc_len / sizeof (struct lifreq); in rds_ioctl_copyin_done() 211 for (lifrp = lifc.lifc_req, i = 0; i < nifs && in rds_ioctl_copyin_done() [all …]
|
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | foreachaddr.c | 142 struct lifconf lifc; in get_lifconf() local 144 lifc.lifc_family = af; in get_lifconf() 145 lifc.lifc_flags = 0; in get_lifconf() 146 lifc.lifc_len = *lenp; in get_lifconf() 147 lifc.lifc_buf = buf; in get_lifconf() 150 ret = ioctl (s, SIOCGLIFCONF, (char *)&lifc); in get_lifconf() 154 *lenp = lifc.lifc_len; in get_lifconf()
|
H A D | localaddr.c | 294 struct lifconf lifc; in get_lifconf() local 296 lifc.lifc_family = af; in get_lifconf() 297 lifc.lifc_flags = 0; in get_lifconf() 299 lifc.lifc_len = *lenp; in get_lifconf() 301 lifc.lifc_buf = buf; in get_lifconf() 304 ret = ioctl (s, SIOCGLIFCONF, (char *)&lifc); in get_lifconf() 309 *lenp = lifc.lifc_len; in get_lifconf()
|
/titanic_44/usr/src/lib/smbsrv/libsmb/common/ |
H A D | smb_nic.c | 607 struct lifconf lifc; in smb_nic_hlist_sysget() local 646 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq); in smb_nic_hlist_sysget() 647 lifc.lifc_buf = malloc(lifc.lifc_len); in smb_nic_hlist_sysget() 648 if (lifc.lifc_buf == NULL) { in smb_nic_hlist_sysget() 653 bzero(lifc.lifc_buf, lifc.lifc_len); in smb_nic_hlist_sysget() 654 lifc.lifc_family = AF_UNSPEC; in smb_nic_hlist_sysget() 655 lifc.lifc_flags = 0; in smb_nic_hlist_sysget() 657 if (ioctl(s4, SIOCGLIFCONF, (char *)&lifc) < 0) { in smb_nic_hlist_sysget() 660 free(lifc.lifc_buf); in smb_nic_hlist_sysget() 664 lifrp = lifc.lifc_req; in smb_nic_hlist_sysget() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/ |
H A D | startup.c | 59 struct lifconf lifc; in initifs() local 88 lifc.lifc_family = AF_INET6; in initifs() 89 lifc.lifc_flags = 0; in initifs() 90 lifc.lifc_len = bufsize; in initifs() 91 lifc.lifc_buf = buf; in initifs() 92 if (ioctl(iocsoc, SIOCGLIFCONF, (char *)&lifc) < 0) { in initifs() 104 lifrp = lifc.lifc_req; in initifs() 105 for (n = lifc.lifc_len / sizeof (struct lifreq); n > 0; n--, lifrp++) { in initifs()
|
/titanic_44/usr/src/cmd/cmd-inet/sbin/dhcpagent/ |
H A D | interface.c | 1711 struct lifconf lifc; in remove_v6_strays() local 1738 (void) memset(&lifc, 0, sizeof (lifc)); in remove_v6_strays() 1739 lifc.lifc_family = AF_INET6; in remove_v6_strays() 1740 lifc.lifc_flags = LIFC_ALLZONES | LIFC_NOXMIT | LIFC_TEMPORARY; in remove_v6_strays() 1742 lifc.lifc_len = numifs * sizeof (*lifrp); in remove_v6_strays() 1743 lifrp = realloc(lifc.lifc_buf, lifc.lifc_len); in remove_v6_strays() 1747 free(lifc.lifc_buf); in remove_v6_strays() 1750 lifc.lifc_buf = (caddr_t)lifrp; in remove_v6_strays() 1752 if (ioctl(v6_sock_fd, SIOCGLIFCONF, &lifc) == 0 && in remove_v6_strays() 1753 lifc.lifc_len < numifs * sizeof (*lifrp)) in remove_v6_strays() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/mdnsd/ |
H A D | mDNSUNP.c | 353 struct lifconf lifc; in get_ifi_info_solaris() local 381 lifc.lifc_family = family; in get_ifi_info_solaris() 382 lifc.lifc_len = len; in get_ifi_info_solaris() 383 lifc.lifc_buf = buf; in get_ifi_info_solaris() 384 lifc.lifc_flags = 0; in get_ifi_info_solaris() 386 if (ioctl(sockfd, SIOCGLIFCONF, &lifc) < 0) in get_ifi_info_solaris() 389 nlifr = lifc.lifc_len / sizeof(struct lifreq); in get_ifi_info_solaris() 393 lifrp = lifc.lifc_req; in get_ifi_info_solaris() 434 lifc.lifc_req, ifname, &best_lifr)) == NULL) in get_ifi_info_solaris()
|
/titanic_44/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | af_rds.c | 268 struct lifconf lifc; in rdsv3_ioctl() local 315 if (ddi_copyin((void *)arg, &lifc, sizeof (struct lifconf), 0) in rdsv3_ioctl() 329 if ((lifc.lifc_len > 0) && (numifs > 0)) { in rdsv3_ioctl() 330 if (ddi_copyout(buf, (void *)lifc.lifc_req, in rdsv3_ioctl() 331 (lifc.lifc_len < bufsize) ? lifc.lifc_len : in rdsv3_ioctl() 340 lifc.lifc_len = bufsize; in rdsv3_ioctl() 341 if (ddi_copyout(&lifc, (void *)arg, sizeof (struct lifconf), in rdsv3_ioctl()
|
H A D | rdsv3_impl.c | 114 struct lifconf lifc; in rdsv3_do_ip_ioctl() local 154 lifc.lifc_family = AF_UNSPEC; in rdsv3_do_ip_ioctl() 155 lifc.lifc_flags = LIFC_NOXMIT | LIFC_TEMPORARY | LIFC_ALLZONES; in rdsv3_do_ip_ioctl() 156 lifc.lifc_len = bufsize; in rdsv3_do_ip_ioctl() 157 lifc.lifc_buf = buf; in rdsv3_do_ip_ioctl() 158 rc = ksocket_ioctl(so4, SIOCGLIFCONF, (intptr_t)&lifc, &rval, CRED()); in rdsv3_do_ip_ioctl() 165 if (bufsize <= lifc.lifc_len) { in rdsv3_do_ip_ioctl() 171 n = lifc.lifc_len / sizeof (struct lifreq); in rdsv3_do_ip_ioctl() 176 for (i = 0, j = 0, lp = lifc.lifc_req; i < n; i++, lp++) { in rdsv3_do_ip_ioctl() 226 for (i = 0, lp = lifc.lifc_req; i < n; i++, lp++) { in rdsv3_do_ip_ioctl()
|
/titanic_44/usr/src/uts/common/io/ib/mgt/ibcm/ |
H A D | ibcm_arp.c | 381 struct lifconf lifc; in ibcm_arp_get_ibd_ipaddr() local 390 if (ibcm_do_lifconf(&lifc, &bufsize, family_loc) != 0) in ibcm_arp_get_ibd_ipaddr() 393 nifs = lifc.lifc_len / sizeof (struct lifreq); in ibcm_arp_get_ibd_ipaddr() 398 for (lifrp = lifc.lifc_req, i = 0; i < nifs; i++, lifrp++) { in ibcm_arp_get_ibd_ipaddr() 504 kmem_free(lifc.lifc_buf, bufsize); in ibcm_arp_get_ibd_ipaddr()
|
/titanic_44/usr/src/lib/libnsl/nss/ |
H A D | netdir_inet_sundry.c | 331 struct lifconf lifc; in get_if_info() local 357 lifc.lifc_family = AF_INET; in get_if_info() 358 lifc.lifc_flags = 0; in get_if_info() 359 lifc.lifc_len = needed; in get_if_info() 360 lifc.lifc_buf = (char *)buf; in get_if_info() 361 if (nss_ioctl(AF_INET, SIOCGLIFCONF, &lifc) == -1) { in get_if_info() 376 numifs = lifc.lifc_len / (int)sizeof (struct lifreq); in get_if_info()
|
H A D | getipnodeby.c | 662 struct lifconf lifc; in __ai_addrconfig() local 724 lifc.lifc_family = af; in __ai_addrconfig() 725 lifc.lifc_flags = 0; in __ai_addrconfig() 726 lifc.lifc_len = bufsize; in __ai_addrconfig() 727 lifc.lifc_buf = (caddr_t)buf; in __ai_addrconfig() 728 if (nss_ioctl(af, SIOCGLIFCONF, &lifc) < 0) in __ai_addrconfig() 731 nlifr = lifc.lifc_len / sizeof (struct lifreq); in __ai_addrconfig()
|
/titanic_44/usr/src/lib/libresolv2/common/resolv/ |
H A D | res_init.c | 297 struct lifconf lifc; in __res_vinit() local 315 lifc.lifc_family = AF_UNSPEC; in __res_vinit() 316 lifc.lifc_flags = 0; in __res_vinit() 317 lifc.lifc_len = buflen; in __res_vinit() 318 lifc.lifc_lifcu.lifcu_buf = (caddr_t)buf; in __res_vinit() 319 if (ioctl(s, SIOCGLIFCONF, (char *)&lifc) < 0) { in __res_vinit() 328 lreqp = (struct lifreq *)&lifc.lifc_req[i]; in __res_vinit()
|
/titanic_44/usr/src/lib/libresolv2/common/irs/ |
H A D | gethostent.c | 509 struct LIFCONF lifc; local 530 lifc.lifc_family = AF_UNSPEC; /*%< request all families */ 531 lifc.lifc_flags = 0; 533 lifc.lifc_len = bufsiz; 534 lifc.lifc_buf = buf; 535 if ((n = ioctl(s, SIOCGLIFCONF, (char *)&lifc)) != -1) { 544 if (lifc.lifc_len + 2 * sizeof(lifreq) < bufsiz) 558 cplim = buf + lifc.lifc_len; /*%< skip over if's with big ifr_addr's */
|
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/ncaconfd/ |
H A D | ncaconfd.c | 462 struct lifconf lifc; in get_if_ip_addr() local 488 lifc.lifc_family = AF_UNSPEC; in get_if_ip_addr() 489 lifc.lifc_flags = 0; in get_if_ip_addr() 490 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq); in get_if_ip_addr() 491 lifc.lifc_buf = buf; in get_if_ip_addr() 493 if (ioctl(sock, SIOCGLIFCONF, (char *)&lifc) < 0) { in get_if_ip_addr() 504 num_lifr = lifc.lifc_len / sizeof (struct lifreq); in get_if_ip_addr() 507 lifr = (struct lifreq *)lifc.lifc_req; in get_if_ip_addr()
|
/titanic_44/usr/src/cmd/fs.d/nfs/statd/ |
H A D | sm_proc.c | 1020 struct lifconf *lifc = NULL; in merge_hosts() local 1051 lifc = getmyaddrs(); in merge_hosts() 1052 if (lifc == NULL) { in merge_hosts() 1055 lifrp = lifc->lifc_req; in merge_hosts() 1056 for (n = lifc->lifc_len / sizeof (struct lifreq); n > 0; n--, lifrp++) { in merge_hosts() 1116 if (lifc) { in merge_hosts() 1117 free(lifc->lifc_buf); in merge_hosts() 1118 free(lifc); in merge_hosts()
|
/titanic_44/usr/src/lib/libadutils/common/ |
H A D | addisc.c | 442 struct lifconf lifc; in find_subnets() local 473 lifc.lifc_family = AF_INET; in find_subnets() 474 lifc.lifc_flags = 0; in find_subnets() 475 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq); in find_subnets() 476 lifc.lifc_buf = malloc(lifc.lifc_len); in find_subnets() 478 if (lifc.lifc_buf == NULL) { in find_subnets() 484 if (ioctl(sock, SIOCGLIFCONF, (char *)&lifc) < 0) { in find_subnets() 487 free(lifc.lifc_buf); in find_subnets() 492 n = lifc.lifc_len / (int)sizeof (struct lifreq); in find_subnets() 495 free(lifc.lifc_buf); in find_subnets() [all …]
|
/titanic_44/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | if.c | 1041 struct lifconf lifc; in ifscan() local 1099 lifc.lifc_family = AF_INET; /* We only need IPv4 interfaces */ in ifscan() 1100 lifc.lifc_flags = LIFC_NOXMIT; in ifscan() 1101 lifc.lifc_len = needed; in ifscan() 1102 lifc.lifc_buf = buf; in ifscan() 1103 if (ioctl(sock, SIOCGLIFCONF, &lifc) == -1) { in ifscan() 1120 if (lifc.lifc_len >= needed - sizeof (struct lifreq)) in ifscan() 1123 lifrp = lifc.lifc_req; in ifscan() 1124 lifrp_lim = lifrp + lifc.lifc_len / sizeof (*lifrp); in ifscan()
|
/titanic_44/usr/src/cmd/cmd-inet/usr.lib/in.ndpd/ |
H A D | main.c | 620 struct lifconf lifc; in initifs() local 667 lifc.lifc_family = AF_INET6; in initifs() 668 lifc.lifc_flags = LIFC_NOXMIT | LIFC_TEMPORARY; in initifs() 669 lifc.lifc_len = bufsize; in initifs() 670 lifc.lifc_buf = buf; in initifs() 672 if (ioctl(ifsock, SIOCGLIFCONF, (char *)&lifc) < 0) { in initifs() 678 lifr = (struct lifreq *)lifc.lifc_req; in initifs() 679 for (n = lifc.lifc_len / sizeof (struct lifreq); n > 0; n--, lifr++) in initifs()
|