Searched defs:lifc (Results 1 - 13 of 13) sorted by relevance

/osnet-11/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...]
/osnet-11/usr/src/lib/libsocket/inet/
H A Dgetifaddrs.c227 struct lifconf lifc; local
252 lifc.lifc_family = af;
253 lifc.lifc_flags = lifc_flags;
254 lifc.lifc_len = bufsize;
255 lifc.lifc_buf = *buf;
256 if (ioctl(s, SIOCGLIFCONF, (char *)&lifc) < 0)
259 *numifs = lifc.lifc_len / sizeof (struct lifreq);
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
254 lifc
[all...]
/osnet-11/usr/src/lib/libresolv2/common/resolv/
H A Dres_init.c308 struct lifconf lifc; local
326 lifc.lifc_family = AF_UNSPEC;
327 lifc.lifc_flags = 0;
328 lifc.lifc_len = buflen;
329 lifc.lifc_lifcu.lifcu_buf = (caddr_t)buf;
330 if (ioctl(s, SIOCGLIFCONF, (char *)&lifc) < 0) {
339 lreqp = (struct lifreq *)&lifc.lifc_req[i];
/osnet-11/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 */
/osnet-11/usr/src/lib/libnsl/nss/
H A Dgetipnodeby.c697 struct lifconf lifc; local
760 lifc.lifc_family = af;
761 lifc.lifc_flags = 0;
762 lifc.lifc_len = bufsize;
763 lifc.lifc_buf = (caddr_t)buf;
764 if (nss_ioctl(af, SIOCGLIFCONF, &lifc) < 0)
767 nlifr = lifc.lifc_len / sizeof (struct lifreq);
H A Dnetdir_inet_sundry.c328 struct lifconf lifc; local
354 lifc.lifc_family = AF_INET;
355 lifc.lifc_flags = 0;
356 lifc.lifc_len = needed;
357 lifc.lifc_buf = (char *)buf;
358 if (nss_ioctl(AF_INET, SIOCGLIFCONF, &lifc) == -1) {
373 numifs = lifc.lifc_len / (int)sizeof (struct lifreq);
H A Dnetdir_inet.c2543 struct lifconf lifc; local
2572 lifc.lifc_family = AF_UNSPEC;
2573 lifc.lifc_flags = 0;
2574 lifc.lifc_len = needed;
2575 lifc.lifc_buf = buf;
2576 if (nss_ioctl(AF_UNSPEC, SIOCGLIFCONF, &lifc) == -1) {
2593 numifs = lifc.lifc_len/sizeof (lifreq);
/osnet-11/usr/src/lib/libsmb/common/
H A Dsmb_nic.c605 struct lifconf lifc; local
628 lifc.lifc_buf = calloc(lifn.lifn_count, sizeof (struct lifreq));
629 if (lifc.lifc_buf == NULL) {
634 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq);
635 lifc.lifc_family = AF_UNSPEC;
636 lifc.lifc_flags = 0;
638 if (ioctl(s4, SIOCGLIFCONF, (char *)&lifc) < 0) {
640 free(lifc.lifc_buf);
646 free(lifc.lifc_buf);
655 free(lifc
[all...]
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dlocaladdr.c313 struct lifconf lifc; local
315 lifc.lifc_family = af;
316 lifc.lifc_flags = 0;
318 lifc.lifc_len = *lenp;
320 lifc.lifc_buf = buf;
323 ret = ioctl (s, SIOCGLIFCONF, (char *)&lifc);
328 *lenp = lifc.lifc_len;
/osnet-11/usr/src/lib/libadutils/common/
H A Daddisc.c443 struct lifconf lifc; local
474 lifc.lifc_family = AF_INET;
475 lifc.lifc_flags = 0;
476 lifc.lifc_len = lifn.lifn_count * sizeof (struct lifreq);
477 lifc.lifc_buf = malloc(lifc.lifc_len);
479 if (lifc.lifc_buf == NULL) {
485 if (ioctl(sock, SIOCGLIFCONF, (char *)&lifc) < 0) {
488 free(lifc.lifc_buf);
493 n = lifc
[all...]
/osnet-11/usr/src/cmd/sendmail/src/
H A Dconf.c4722 struct lifconf lifc; local
4763 len = lifc.lifc_len = numifs * sizeof(struct lifreq);
4764 buf = lifc.lifc_buf = xalloc(lifc.lifc_len);
4766 lifc.lifc_family = AF_UNSPEC;
4767 lifc.lifc_flags = 0;
4769 if (ioctl(s, SIOCGLIFCONF, (char *)&lifc) < 0)

Completed in 62 milliseconds