Lines Matching defs:bound_sa
95 struct sockaddr **bound_sa;
668 * bound_sa will have a list of the addresses that the program binds
670 * struct sockaddr * and stores them in bound_sa.
680 bound_sa = malloc(sizeof(*bound_sa) * nhosts);
686 bound_sa[i] = malloc(res->ai_addrlen);
687 memcpy(bound_sa[i], res->ai_addr, res->ai_addrlen);
695 * in bound_sa, we return true. If not, we return false.
710 if (bound_sa[i] == NULL ||
711 sa->sa_family != bound_sa[i]->sa_family)
715 if (memcmp(&SA2SINADDR(sa), &SA2SINADDR(bound_sa[i]),
721 if (memcmp(&SA2SIN6ADDR(sa), &SA2SIN6ADDR(bound_sa[i]),