Lines Matching refs:dest
72 clone_addrinfo(struct addrinfo *dest, struct addrinfo const *src)
75 ATF_REQUIRE(dest != NULL);
78 memcpy(dest, src, sizeof(struct addrinfo));
80 dest->ai_canonname = strdup(src->ai_canonname);
83 dest->ai_addr = malloc(src->ai_addrlen);
84 ATF_REQUIRE(dest->ai_addr != NULL);
85 memcpy(dest->ai_addr, src->ai_addr, src->ai_addrlen);
89 dest->ai_next = malloc(sizeof(struct addrinfo));
90 ATF_REQUIRE(dest->ai_next != NULL);
91 clone_addrinfo(dest->ai_next, src->ai_next);