Searched refs:lifc (Results 1 - 25 of 34) sorted by relevance

12

/illumos-gate/usr/src/lib/libinetutil/common/
H A Difaddrlist.c59 struct lifconf lifc; local
66 (void) memset(&lifc, 0, sizeof (lifc));
94 lifc.lifc_flags = flags;
95 lifc.lifc_family = family;
96 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq);
97 if ((lifc.lifc_buf = realloc(lifc.lifc_buf, lifc.lifc_len)) == NULL) {
102 if (ioctl(fd, SIOCGLIFCONF, &lifc)
[all...]
H A Difaddrlistx.c43 struct lifconf lifc; local
55 (void) memset(&lifc, 0, sizeof (lifc));
82 lifc.lifc_flags = flags;
83 lifc.lifc_family = AF_UNSPEC;
84 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq);
85 if ((lifc.lifc_buf = realloc(lifc.lifc_buf, lifc.lifc_len)) == NULL)
88 if (ioctl(s4, SIOCGLIFCONF, &lifc)
[all...]
/illumos-gate/usr/src/cmd/fs.d/nfs/lib/
H A Dselfcheck.c107 * lifc - the ifconf structure returned
108 * lifc->lifc_buf - the list of ifreq structures
121 struct lifconf *lifc; local
139 lifc = (struct lifconf *)malloc(sizeof (struct lifconf));
140 if (lifc == NULL) {
151 free(lifc);
155 lifc->lifc_family = AF_UNSPEC;
156 lifc->lifc_flags = 0;
157 lifc->lifc_buf = buf;
158 lifc
[all...]
/illumos-gate/usr/src/cmd/svr4pkg/libinst/
H A Dis_local_host.c76 struct lifconf lifc; local
105 lifc.lifc_family = hp->h_addrtype;
106 lifc.lifc_flags = LIFC_EXTERNAL_SOURCE;
107 lifc.lifc_len = bufsiz;
108 lifc.lifc_buf = buf;
109 if (ioctl(s, SIOCGLIFCONF, (char *)&lifc) == -1) {
120 for (lifrp = lifc.lifc_req,
121 nif = lifc.lifc_len / sizeof (struct lifreq);
/illumos-gate/usr/src/lib/libsocket/inet/
H A Dinterface_id.c115 struct lifconf lifc; local
168 lifc.lifc_family = AF_UNSPEC;
169 lifc.lifc_flags = flags;
170 lifc.lifc_len = bufsize;
171 lifc.lifc_buf = buf;
172 if (ioctl(s, SIOCGLIFCONF, (char *)&lifc) < 0) {
180 lifrp = lifc.lifc_req;
182 for (n = lifc.lifc_len / sizeof (struct lifreq); n > 0; n--, lifrp++) {
224 struct lifconf lifc; local
255 lifc
[all...]
H A Dgetifaddrs.c225 struct lifconf lifc; local
250 lifc.lifc_family = af;
251 lifc.lifc_flags = lifc_flags;
252 lifc.lifc_len = bufsize;
253 lifc.lifc_buf = *buf;
254 if (ioctl(s, SIOCGLIFCONF, (char *)&lifc) < 0)
257 *numifs = lifc.lifc_len / sizeof (struct lifreq);
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/
H A Drds_ioctl.c165 struct lifconf lifc; local
169 if ((err = rds_do_lifconf(&lifc, &bufsize)) != 0)
172 nifs = lifc.lifc_len / sizeof (struct lifreq);
173 for (lifrp = lifc.lifc_req, i = 0; i < nifs; i++, lifrp++) {
180 kmem_free(lifc.lifc_buf, bufsize);
191 struct lifconf lifc; local
199 if ((err = rds_do_lifconf(&lifc, &bufsize)) != 0)
205 kmem_free(lifc.lifc_buf, bufsize);
210 nifs = lifc.lifc_len / sizeof (struct lifreq);
211 for (lifrp = lifc
345 struct lifconf lifc; local
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dforeachaddr.c142 struct lifconf lifc; local
144 lifc.lifc_family = af;
145 lifc.lifc_flags = 0;
146 lifc.lifc_len = *lenp;
147 lifc.lifc_buf = buf;
150 ret = ioctl (s, SIOCGLIFCONF, (char *)&lifc);
154 *lenp = lifc.lifc_len;
H A Dlocaladdr.c294 struct lifconf lifc; local
296 lifc.lifc_family = af;
297 lifc.lifc_flags = 0;
299 lifc.lifc_len = *lenp;
301 lifc.lifc_buf = buf;
304 ret = ioctl (s, SIOCGLIFCONF, (char *)&lifc);
309 *lenp = lifc.lifc_len;
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.ripngd/
H A Dstartup.c59 struct lifconf lifc; local
88 lifc.lifc_family = AF_INET6;
89 lifc.lifc_flags = 0;
90 lifc.lifc_len = bufsize;
91 lifc.lifc_buf = buf;
92 if (ioctl(iocsoc, SIOCGLIFCONF, (char *)&lifc) < 0) {
104 lifrp = lifc.lifc_req;
105 for (n = lifc.lifc_len / sizeof (struct lifreq); n > 0; n--, lifrp++) {
/illumos-gate/usr/src/lib/smbsrv/libsmb/common/
H A Dsmb_nic.c607 struct lifconf lifc; local
646 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq);
647 lifc.lifc_buf = malloc(lifc.lifc_len);
648 if (lifc.lifc_buf == NULL) {
653 bzero(lifc.lifc_buf, lifc.lifc_len);
654 lifc.lifc_family = AF_UNSPEC;
655 lifc.lifc_flags = 0;
657 if (ioctl(s4, SIOCGLIFCONF, (char *)&lifc) <
[all...]
/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dinterface.c1711 struct lifconf lifc; local
1738 (void) memset(&lifc, 0, sizeof (lifc));
1739 lifc.lifc_family = AF_INET6;
1740 lifc.lifc_flags = LIFC_ALLZONES | LIFC_NOXMIT | LIFC_TEMPORARY;
1742 lifc.lifc_len = numifs * sizeof (*lifrp);
1743 lifrp = realloc(lifc.lifc_buf, lifc.lifc_len);
1747 free(lifc.lifc_buf);
1750 lifc
[all...]
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Drdsv3_impl.c114 struct lifconf lifc; local
154 lifc.lifc_family = AF_UNSPEC;
155 lifc.lifc_flags = LIFC_NOXMIT | LIFC_TEMPORARY | LIFC_ALLZONES;
156 lifc.lifc_len = bufsize;
157 lifc.lifc_buf = buf;
158 rc = ksocket_ioctl(so4, SIOCGLIFCONF, (intptr_t)&lifc, &rval, CRED());
165 if (bufsize <= lifc.lifc_len) {
171 n = lifc.lifc_len / sizeof (struct lifreq);
176 for (i = 0, j = 0, lp = lifc.lifc_req; i < n; i++, lp++) {
226 for (i = 0, lp = lifc
[all...]
H A Daf_rds.c268 struct lifconf lifc; local
315 if (ddi_copyin((void *)arg, &lifc, sizeof (struct lifconf), 0)
317 RDSV3_DPRINTF2("rdsv3_ioctl", "ddi_copyin failed lifc");
329 if ((lifc.lifc_len > 0) && (numifs > 0)) {
330 if (ddi_copyout(buf, (void *)lifc.lifc_req,
331 (lifc.lifc_len < bufsize) ? lifc.lifc_len :
340 lifc.lifc_len = bufsize;
341 if (ddi_copyout(&lifc, (void *)arg, sizeof (struct lifconf),
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/mdnsd/
H A DmDNSUNP.c368 struct lifconf lifc; local
396 lifc.lifc_family = family;
397 lifc.lifc_len = len;
398 lifc.lifc_buf = buf;
399 lifc.lifc_flags = 0;
401 if (ioctl(sockfd, SIOCGLIFCONF, &lifc) < 0)
404 nlifr = lifc.lifc_len / sizeof(struct lifreq);
408 lifrp = lifc.lifc_req;
449 lifc.lifc_req, ifname, &best_lifr)) == NULL)
/illumos-gate/usr/src/lib/libresolv2/common/irs/
H A Dgethostent.c509 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) {
540 * lifc.lifc_len is too near to the end of the
544 if (lifc.lifc_len + 2 * sizeof(lifreq) < bufsiz)
558 cplim = buf + lifc.lifc_len; /*%< skip over if's with big ifr_addr's */
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/ncaconfd/
H A Dncaconfd.c462 struct lifconf lifc; local
488 lifc.lifc_family = AF_UNSPEC;
489 lifc.lifc_flags = 0;
490 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq);
491 lifc.lifc_buf = buf;
493 if (ioctl(sock, SIOCGLIFCONF, (char *)&lifc) < 0) {
504 num_lifr = lifc.lifc_len / sizeof (struct lifreq);
507 lifr = (struct lifreq *)lifc.lifc_req;
/illumos-gate/usr/src/cmd/fs.d/nfs/statd/
H A Dsm_proc.c1020 struct lifconf *lifc = NULL; local
1051 lifc = getmyaddrs();
1052 if (lifc == NULL) {
1055 lifrp = lifc->lifc_req;
1056 for (n = lifc->lifc_len / sizeof (struct lifreq); n > 0; n--, lifrp++) {
1116 if (lifc) {
1117 free(lifc->lifc_buf);
1118 free(lifc);
/illumos-gate/usr/src/uts/common/io/ib/mgt/ibcm/
H A Dibcm_arp.c381 struct lifconf lifc; local
390 if (ibcm_do_lifconf(&lifc, &bufsize, family_loc) != 0)
393 nifs = lifc.lifc_len / sizeof (struct lifreq);
398 for (lifrp = lifc.lifc_req, i = 0; i < nifs; i++, lifrp++) {
504 kmem_free(lifc.lifc_buf, bufsize);
/illumos-gate/usr/src/lib/libadutils/common/
H A Daddisc.c472 struct lifconf lifc; local
503 lifc.lifc_family = AF_INET;
504 lifc.lifc_flags = 0;
505 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq);
506 lifc.lifc_buf = malloc(lifc.lifc_len);
508 if (lifc.lifc_buf == NULL) {
514 if (ioctl(sock, SIOCGLIFCONF, (char *)&lifc) < 0) {
517 free(lifc.lifc_buf);
522 n = lifc
[all...]
/illumos-gate/usr/src/lib/libresolv2/common/resolv/
H A Dres_init.c297 struct lifconf lifc; local
315 lifc.lifc_family = AF_UNSPEC;
316 lifc.lifc_flags = 0;
317 lifc.lifc_len = buflen;
318 lifc.lifc_lifcu.lifcu_buf = (caddr_t)buf;
319 if (ioctl(s, SIOCGLIFCONF, (char *)&lifc) < 0) {
328 lreqp = (struct lifreq *)&lifc.lifc_req[i];
/illumos-gate/usr/src/lib/libnsl/nss/
H A Dnetdir_inet_sundry.c331 struct lifconf lifc; local
357 lifc.lifc_family = AF_INET;
358 lifc.lifc_flags = 0;
359 lifc.lifc_len = needed;
360 lifc.lifc_buf = (char *)buf;
361 if (nss_ioctl(AF_INET, SIOCGLIFCONF, &lifc) == -1) {
376 numifs = lifc.lifc_len / (int)sizeof (struct lifreq);
H A Dgetipnodeby.c684 struct lifconf lifc; local
749 lifc.lifc_family = af;
750 lifc.lifc_flags = 0;
751 lifc.lifc_len = bufsize;
752 lifc.lifc_buf = (caddr_t)buf;
753 if (nss_ioctl(af, SIOCGLIFCONF, &lifc) < 0)
756 nlifr = lifc.lifc_len / sizeof (struct lifreq);
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/in.routed/
H A Dif.c1041 struct lifconf lifc; local
1099 lifc.lifc_family = AF_INET; /* We only need IPv4 interfaces */
1100 lifc.lifc_flags = LIFC_NOXMIT;
1101 lifc.lifc_len = needed;
1102 lifc.lifc_buf = buf;
1103 if (ioctl(sock, SIOCGLIFCONF, &lifc) == -1) {
1120 if (lifc.lifc_len >= needed - sizeof (struct lifreq))
1123 lifrp = lifc.lifc_req;
1124 lifrp_lim = lifrp + lifc.lifc_len / sizeof (*lifrp);
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/in.mpathd/
H A Dmpd_main.c265 struct lifconf lifc; local
329 lifc.lifc_family = AF_UNSPEC;
330 lifc.lifc_flags = LIFC_ALLZONES | LIFC_UNDER_IPMP;
331 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq);
332 lifc.lifc_buf = buf;
334 if (ioctl(ifsock_v4, SIOCGLIFCONF, (char *)&lifc) < 0) {
345 nlifr = lifc.lifc_len / sizeof (struct lifreq);
355 for (lifr = lifc.lifc_req, i = 0; i < nlifr; i++, lifr++) {

Completed in 116 milliseconds

12