Lines Matching refs:source_addr
1455 newlist->source_addr.in.sin_port = htons(source_port); in one_opt()
1456 newlist->addr.sa.sa_family = newlist->source_addr.sa.sa_family = AF_INET; in one_opt()
1458 newlist->source_addr.in.sin_len = newlist->addr.in.sin_len = sizeof(struct sockaddr_in); in one_opt()
1463 if ((newlist->source_addr.in.sin_addr.s_addr = inet_addr(source)) == (in_addr_t) -1) in one_opt()
1466 newlist->source_addr.in.sin_addr.s_addr = INADDR_ANY; in one_opt()
1474 newlist->source_addr.in.sin_addr.s_addr = INADDR_ANY; in one_opt()
1480 newlist->source_addr.in6.sin6_port = htons(source_port); in one_opt()
1481 newlist->addr.sa.sa_family = newlist->source_addr.sa.sa_family = AF_INET6; in one_opt()
1483 newlist->addr.in6.sin6_len = newlist->source_addr.in6.sin6_len = sizeof(newlist->addr.in6); in one_opt()
1488 if (inet_pton(AF_INET6, source, &newlist->source_addr.in6.sin6_addr) == 0) in one_opt()
1491 newlist->source_addr.in6.sin6_addr = in6addr_any; in one_opt()
1499 newlist->source_addr.in6.sin6_addr = in6addr_any; in one_opt()
1512 serv->next->source_addr = serv->source_addr; in one_opt()
2881 if (tmp->source_addr.sa.sa_family == AF_INET) in read_opts()
2882 tmp->source_addr.in.sin_port = htons(daemon->query_port); in read_opts()
2884 else if (tmp->source_addr.sa.sa_family == AF_INET6) in read_opts()
2885 tmp->source_addr.in6.sin6_port = htons(daemon->query_port); in read_opts()