Searched defs:lifc (Results 26 - 34 of 34) sorted by relevance
12
/illumos-gate/usr/src/uts/common/io/idm/ |
H A D | idm_so.c | 392 struct lifconf lifc; local 442 lifc.lifc_family = AF_UNSPEC; 443 lifc.lifc_flags = LIFC_NOXMIT | LIFC_TEMPORARY | LIFC_ALLZONES; 444 lifc.lifc_len = bufsize; 445 lifc.lifc_buf = buf; 446 rc = ksocket_ioctl(so6, SIOCGLIFCONF, (intptr_t)&lifc, &rval, CRED()); 451 if (bufsize <= lifc.lifc_len) { 457 n = lifc.lifc_len / sizeof (struct lifreq); 471 for (i = 0, j = 0, lp = lifc.lifc_req; i < n; i++, lp++) {
|
/illumos-gate/usr/src/lib/libadutils/common/ |
H A D | addisc.c | 472 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/libnsl/nss/ |
H A D | netdir_inet.c | 2554 struct lifconf lifc; local 2583 lifc.lifc_family = AF_UNSPEC; 2584 lifc.lifc_flags = 0; 2585 lifc.lifc_len = needed; 2586 lifc.lifc_buf = buf; 2587 if (nss_ioctl(AF_UNSPEC, SIOCGLIFCONF, &lifc) == -1) { 2604 numifs = lifc.lifc_len/sizeof (lifreq);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ifconfig/ |
H A D | ifconfig.c | 576 struct lifconf lifc; local 585 if (find_all_interfaces(&lifc, &buf, lifc_flags) != 0 || 586 lifc.lifc_len == 0) 589 lifrp = lifc.lifc_req; 590 for (n = lifc.lifc_len / sizeof (struct lifreq); n > 0; n--, lifrp++) {
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | conf.c | 4724 struct lifconf lifc; local 4765 len = lifc.lifc_len = numifs * sizeof(struct lifreq); 4766 buf = lifc.lifc_buf = xalloc(lifc.lifc_len); 4768 lifc.lifc_family = AF_UNSPEC; 4769 lifc.lifc_flags = 0; 4771 if (ioctl(s, SIOCGLIFCONF, (char *)&lifc) < 0)
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | rpcib.c | 5332 struct lifconf lifc; local 5340 if (rpcib_do_lifconf(&lifc, &bufsize) != 0) 5343 if ((nifs = lifc.lifc_len / sizeof (struct lifreq)) == 0) { 5344 kmem_free(lifc.lifc_buf, bufsize); 5357 for (lifrp = lifc.lifc_req, i = 0; i < nifs; i++, lifrp++) { 5372 kmem_free(lifc.lifc_buf, bufsize);
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 1876 struct lifconf lifc; local 1903 lifc.lifc_family = AF_UNSPEC; 1904 lifc.lifc_flags = (int)lifc_flags; 1905 lifc.lifc_len = bufsize; 1906 lifc.lifc_buf = buf; 1907 if (ioctl(s, SIOCGLIFCONF, (char *)&lifc) < 0) { 1913 lifrp = lifc.lifc_req; 1914 for (i = lifc.lifc_len / sizeof (struct lifreq); i > 0; i--, lifrp++) {
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/netstat/ |
H A D | netstat.c | 3411 struct lifconf lifc; local 3431 (void) memset(&lifc, 0, sizeof (lifc)); 3432 lifc.lifc_family = af; 3433 lifc.lifc_flags = lifn.lifn_flags; 3434 lifc.lifc_len = n_ifs * sizeof (struct lifreq); 3435 lifc.lifc_buf = malloc(lifc.lifc_len); 3436 if (lifc.lifc_buf != NULL) { 3438 if (ioctl(sock_fd, SIOCGLIFCONF, &lifc) [all...] |
/illumos-gate/usr/src/uts/common/inet/ip/ |
H A D | ip_if.c | 7600 STRUCT_HANDLE(lifconf, lifc); 7625 STRUCT_SET_HANDLE(lifc, iocp->ioc_flag, NULL); 7627 if ((mp1->b_wptr - mp1->b_rptr) != STRUCT_SIZE(lifc)) 7634 STRUCT_SET_HANDLE(lifc, iocp->ioc_flag, (struct lifconf *)mp1->b_rptr); 7636 family = STRUCT_FGET(lifc, lifc_family); 7637 flags = STRUCT_FGET(lifc, lifc_flags); 7673 lifclen = STRUCT_FGET(lifc, lifc_len); 7682 STRUCT_FGETP(lifc, lifc_buf), lifc_bufsize, B_FALSE); 7759 if (STRUCT_BUF(lifc) != NULL) { 7760 STRUCT_FSET(lifc, lifc_le 18165 struct lifconf lifc; local [all...] |
Completed in 170 milliseconds
12