/dovecot/src/replication/aggregator/ |
H A D | aggregator.c | 22 unsigned int ips_count; local 31 ret = net_gethostbyname(set->replicator_host, &ips, &ips_count); 36 replicator = replicator_connection_create_inet(ips, ips_count,
|
H A D | replicator-connection.c | 22 unsigned int ips_count, ip_idx; member in struct:replicator_connection 149 for (n = 0; n < conn->ips_count; n++) { 152 conn->ip_idx = (conn->ip_idx + 1) % conn->ips_count; 232 unsigned int ips_count, in_port_t port, 239 conn->ips = i_new(struct ip_addr, ips_count); 240 memcpy(conn->ips, ips, sizeof(*ips) * ips_count); 241 conn->ips_count = ips_count; 231 replicator_connection_create_inet(const struct ip_addr *ips, unsigned int ips_count, in_port_t port, replicator_sync_callback_t *callback) argument
|
/dovecot/src/lib-dns/ |
H A D | dns-lookup.h | 29 unsigned int ips_count; member in struct:dns_lookup_result
|
/dovecot/src/dns/ |
H A D | dns-client.c | 31 unsigned int i, ips_count; local 35 ret = net_gethostbyname(line + 3, &ips, &ips_count); 36 if (ret == 0 && ips_count == 0) { 45 t_strdup_printf("0 %u\n", ips_count)); 46 for (i = 0; i < ips_count; i++) {
|
/dovecot/src/doveadm/ |
H A D | doveadm-zlib.c | 145 unsigned int ips_count; local 153 ret = net_gethostbyname(argv[1], &ips, &ips_count);
|
H A D | doveadm-util.c | 106 unsigned int ips_count; local 110 ret = net_gethostbyname(host, &ips, &ips_count);
|
H A D | doveadm-director.c | 335 static bool ip_find(const struct ip_addr *ips, unsigned int ips_count, argument 340 for (i = 0; i < ips_count; i++) { 355 unsigned int ips_count, user_hash; local 377 ips_count = 0; 378 else if (director_get_host(ctx->host, &ips, &ips_count) != 0) { 409 if (ips_count != 1) 426 } else if (ips_count == 0 || 427 ip_find(ips, ips_count, &user_ip)) { 459 unsigned int i, ips_count, vhost_count = UINT_MAX; local 493 if (director_get_host(host, &ips, &ips_count) ! 540 unsigned int i, ips_count; local 596 unsigned int ips_count, user_hash; local 700 unsigned int i, ips_count; local [all...] |
/dovecot/src/director/ |
H A D | director-host.c | 158 unsigned int i, ips_count; local 163 if (net_gethostbyname(host, &ips, &ips_count) < 0) 166 for (i = 0; i < ips_count; i++) {
|
H A D | mail-host.c | 196 unsigned int i, ips_count; local 203 if (net_gethostbyname(hostname, &ips, &ips_count) < 0) { 208 for (i = 0; i < ips_count; i++)
|
/dovecot/src/auth/ |
H A D | auth-settings.c | 361 unsigned int ips_count; local 372 ret = net_gethostbyname(*tmp, &ips, &ips_count); 378 array_append(&ips_array, ips, ips_count);
|
/dovecot/src/lib/ |
H A D | iostream-rawlog.c | 168 unsigned int ips_count; local 182 ret = net_gethostbyname(host, &ips, &ips_count);
|
H A D | net.c | 621 unsigned int *ips_count) 631 *ips_count = 0; 635 *ips_count = 1; 654 *ips_count = count; 620 net_gethostbyname(const char *addr, struct ip_addr **ips, unsigned int *ips_count) argument
|
/dovecot/src/lib-http/ |
H A D | http-client-host.c | 105 "DNS lookup successful; got %d IPs", result->ips_count); 107 i_assert(result->ips_count > 0); 109 hshared->ips_count, result->ips_count); 110 hshared->ips_count = result->ips_count; 111 memcpy(hshared->ips, result->ips, sizeof(*hshared->ips) * hshared->ips_count); 150 unsigned int ips_count; local 152 ret = net_gethostbyname(hshared->name, &ips, &ips_count); 159 "DNS lookup successful; got %d IPs", ips_count); [all...] |
H A D | http-client-queue.c | 212 unsigned int ips_count = http_client_host_get_ips_count(host); local 215 i_assert(queue->ips_connect_idx < ips_count); 216 i_assert(queue->ips_connect_start_idx < ips_count); 227 return (queue->ips_connect_idx + 1) % ips_count == 259 unsigned int ips_count = http_client_host_get_ips_count(host); local 281 queue->ips_connect_idx = (queue->ips_connect_idx + 1) % ips_count; 504 unsigned int ips_count = http_client_host_get_ips_count(host); local 560 (queue->ips_connect_idx + 1) % ips_count; 580 queue->ips_connect_idx = (queue->ips_connect_idx + 1) % ips_count;
|
H A D | http-client-private.h | 336 unsigned int ips_count; member in struct:http_client_host_shared 665 return host->shared->ips_count; 672 i_assert(idx < host->shared->ips_count);
|
/dovecot/src/lib-program-client/ |
H A D | program-client-remote.c | 216 unsigned int ips_count; member in struct:program_client_remote 372 i_assert(prclient->ips_count > 0); 417 if (prclient->ips_count > 1) 458 prclient->ips_count = result->ips_count; 459 prclient->ips_left = prclient->ips_count; 461 sizeof(struct ip_addr)*result->ips_count); 482 prclient->ips_count = 1; 497 unsigned int ips_count; local 501 &ips, &ips_count)) ! 637 program_client_net_create_ips(const struct ip_addr *ips, size_t ips_count, in_port_t port, const char *const *args, const struct program_client_settings *set, bool noreply) argument [all...] |
/dovecot/src/lib-storage/index/pop3c/ |
H A D | pop3c-client.c | 264 unsigned int ips_count; local 267 ret = net_gethostbyname(client->set.host, &ips, &ips_count); 273 i_assert(ips_count > 0); 677 i_assert(result->ips_count > 0);
|
/dovecot/src/master/ |
H A D | service.c | 76 unsigned int ips_count; local 98 ret = net_gethostbyname(address, &ip_list, &ips_count); 105 if (ips_count < 1) { 111 *ips_count_r = ips_count; 144 unsigned int i, ips_count; local 166 if (resolve_ip(address, &ips, &ips_count, error_r) < 0) 169 for (i = 0; i < ips_count; i++) {
|
/dovecot/src/lib-smtp/ |
H A D | smtp-client-connection.c | 1412 conn->prev_connect_idx = (conn->prev_connect_idx+1) % conn->ips_count; 1463 result->ips_count); 1465 i_assert(result->ips_count > 0); 1466 conn->ips_count = result->ips_count; 1467 conn->ips = i_new(struct ip_addr, conn->ips_count); 1468 memcpy(conn->ips, result->ips, sizeof(*conn->ips) * conn->ips_count); 1469 conn->prev_connect_idx = conn->ips_count - 1; 1479 unsigned int ips_count; local 1494 if (conn->ips_count [all...] |
H A D | smtp-client-private.h | 158 unsigned int ips_count, prev_connect_idx; member in struct:smtp_client_connection
|
/dovecot/src/lib-imap-client/ |
H A D | imapc-connection.c | 124 unsigned int ips_count, prev_connect_idx; member in struct:imapc_connection 398 conn->ips_count = 0; 546 if (conn->prev_connect_idx + 1 < conn->ips_count && connect_error) { 1789 for (i = 0; i<conn->ips_count;) { 1790 conn->prev_connect_idx = (conn->prev_connect_idx+1) % conn->ips_count; 1801 if (conn->prev_connect_idx+1 == conn->ips_count) { 1850 i_assert(result->ips_count > 0); 1851 conn->ips_count = result->ips_count; 1852 conn->ips = i_new(struct ip_addr, conn->ips_count); 1863 unsigned int ips_count; local [all...] |