Home | History | Annotate | Download | only in net

Lines Matching full:elems

1833 	struct addrinfo_sort_elem *elems;
1841 elems = (struct addrinfo_sort_elem *)malloc(nelem * sizeof(struct addrinfo_sort_elem));
1842 if (elems == NULL) {
1853 elems[i].ai = cur;
1854 elems[i].original_order = i;
1856 has_src_addr = _find_src_addr(cur->ai_addr, &elems[i].src_addr.generic, mark);
1860 elems[i].has_src_addr = has_src_addr;
1864 qsort((void *)elems, nelem, sizeof(struct addrinfo_sort_elem), _rfc6724_compare);
1866 list_sentinel->ai_next = elems[0].ai;
1868 elems[i].ai->ai_next = elems[i + 1].ai;
1870 elems[nelem - 1].ai->ai_next = NULL;
1873 free(elems);