Home | History | Annotate | Download | only in rpcbind

Lines Matching defs:bound_sa

111 static struct sockaddr **bound_sa;
740 * bound_sa will have a list of the addresses that the program binds
742 * struct sockaddr * and stores them in bound_sa.
752 bound_sa = calloc(nhosts, sizeof(*bound_sa));
753 if (bound_sa == NULL)
760 bound_sa[i] = malloc(res->ai_addrlen);
761 if (bound_sa[i] == NULL)
763 memcpy(bound_sa[i], res->ai_addr, res->ai_addrlen);
771 * in bound_sa, we return true. If not, we return false.
786 if (bound_sa[i] == NULL ||
787 sa->sa_family != bound_sa[i]->sa_family)
791 if (memcmp(&SA2SINADDR(sa), &SA2SINADDR(bound_sa[i]),
797 if (memcmp(&SA2SIN6ADDR(sa), &SA2SIN6ADDR(bound_sa[i]),