Lines Matching refs:base
303 static void interleave_addrinfo(struct addrinfo *base)
305 struct addrinfo **next = &base->ai_next;
309 if (cur->ai_family == base->ai_family) {
313 if (cur == base->ai_next) {
314 // If the first one following base is of a different family, just
315 // move base forward one step and continue.
316 base = cur;
317 next = &base->ai_next;
322 // Hook in cur directly after base.
323 cur->ai_next = base->ai_next;
324 base->ai_next = cur;
325 // Restart with a new base. We know that before moving the cur element,
326 // everything between the previous base and cur had the same family,
328 // where it was, and continue from there with base at the one after
330 base = cur->ai_next;