| /dovecot/src/replication/aggregator/ |
| H A D | aggregator.c | 21 struct ip_addr *ips; 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 | 21 struct ip_addr *ips; member in struct:replicator_connection 153 fd = net_connect_ip(&conn->ips[idx], conn->port, NULL); 157 net_ip2addr(&conn->ips[idx]), conn->port); 231 replicator_connection_create_inet(const struct ip_addr *ips, argument 239 conn->ips = i_new(struct ip_addr, ips_count); 240 memcpy(conn->ips, ips, sizeof(*ips) * ips_count);
|
| /dovecot/src/lib-dns/ |
| H A D | dns-lookup.h | 30 const struct ip_addr *ips; member in struct:dns_lookup_result
|
| H A D | dns-lookup.c | 28 struct ip_addr *ips; member in struct:dns_lookup 113 result->ips = lookup->ips = 116 if (net_addr2ip(line, &lookup->ips[lookup->ip_idx]) < 0) 240 i_free(lookup->ips);
|
| /dovecot/src/dns/ |
| H A D | dns-client.c | 29 struct ip_addr *ips, ip; local 35 ret = net_gethostbyname(line + 3, &ips, &ips_count); 48 net_ip2addr(&ips[i]), "\n", NULL));
|
| /dovecot/src/doveadm/ |
| H A D | doveadm-zlib.c | 144 struct ip_addr *ips; local 153 ret = net_gethostbyname(argv[1], &ips, &ips_count); 159 if ((fd = net_connect_ip(&ips[0], port, NULL)) == -1) 163 net_ip2addr(&ips[0]), port);
|
| H A D | doveadm-util.c | 105 struct ip_addr *ips; local 110 ret = net_gethostbyname(host, &ips, &ips_count); 115 fd = net_connect_ip_blocking(&ips[0], port, NULL); 118 net_ip2addr(&ips[0]), port);
|
| H A D | doveadm-who.c | 21 ARRAY(struct ip_addr) ips; member in struct:who_user 28 if (array_count(&user->ips) == 0) 31 const struct ip_addr *ip = array_idx(&user->ips, 0); 74 array_foreach(&user->ips, ex_ip) { 136 p_array_init(&user->ips, ctx->pool, 3); 143 array_append(&user->ips, &line->ip, 1); 220 array_foreach(&user->ips, ip) { 253 array_foreach(&user->ips, ip) 271 doveadm_print_header("ips", "(ips)", [all...] |
| H A D | doveadm-director.c | 335 static bool ip_find(const struct ip_addr *ips, unsigned int ips_count, argument 341 if (net_ip_compare(&ips[i], match_ip)) 351 struct ip_addr *ips, user_ip; local 378 else if (director_get_host(ctx->host, &ips, &ips_count) != 0) { 413 "USER-LIST\t%s\n", net_ip2addr(&ips[0]))); 427 ip_find(ips, ips_count, &user_ip)) { 458 struct ip_addr *ips; local 493 if (director_get_host(host, &ips, &ips_count) != 0) { 500 str_printfa(cmd, "%s\t%s", director_cmd, net_ip2addr(&ips[i])); 513 i_error("%s: %s\n", net_ip2addr(&ips[ 539 struct ip_addr *ips; local 595 struct ip_addr *ips; local 699 struct ip_addr *ips; local [all...] |
| /dovecot/src/director/ |
| H A D | director-host.c | 156 struct ip_addr *ips; local 163 if (net_gethostbyname(host, &ips, &ips_count) < 0) 167 if (director_host_lookup(dir, &ips[i], port) == NULL) 168 (void)director_host_add(dir, &ips[i], port);
|
| H A D | mail-host.c | 195 struct ip_addr *ips, ip; local 203 if (net_gethostbyname(hostname, &ips, &ips_count) < 0) { 209 (void)mail_host_add_hostname(list, hostname, &ips[i], tag_name);
|
| /dovecot/src/lib-program-client/ |
| H A D | test-program-client-net.c | 441 struct ip_addr ips[4]; local 442 if (net_addr2ip("::1", &ips[0]) < 0 || 443 net_addr2ip("127.0.0.3", &ips[1]) < 0 || 444 net_addr2ip("127.0.0.2", &ips[2]) < 0 || 445 net_addr2ip("127.0.0.1", &ips[3]) < 0) { 450 program_client_net_create_ips(ips, N_ELEMENTS(ips), 454 test_expect_errors(N_ELEMENTS(ips)-1);
|
| H A D | program-client-remote.c | 218 struct ip_addr *ips; member in struct:program_client_remote 374 if (net_ipport2str(prclient->ips, prclient->port, &str) < 0) 386 if ((fd = net_connect_ip(prclient->ips, prclient->port, 387 (prclient->ips->family == AF_INET ? 427 prclient->ips++; 460 prclient->ips = p_memdup(pclient->pool, result->ips, 473 if (prclient->ips != NULL) { 475 net_ip2addr(prclient->ips)); 480 prclient->ips 496 struct ip_addr *ips; local 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/auth/ |
| H A D | auth-settings.c | 360 struct ip_addr *ips; 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 | 167 struct ip_addr *ips; local 182 ret = net_gethostbyname(host, &ips, &ips_count); 188 fd = net_connect_ip_blocking(&ips[0], port, NULL); 190 i_error("connect(%s:%u) failed: %m", net_ip2addr(&ips[0]), port);
|
| H A D | net.c | 620 int net_gethostbyname(const char *addr, struct ip_addr **ips, argument 630 *ips = NULL; 636 *ips = t_new(struct ip_addr, 1); 637 **ips = ip; 655 *ips = t_new(struct ip_addr, count); 661 sin_get_ip(so, &(*ips)[count]);
|
| /dovecot/src/lib-http/ |
| H A D | http-client-host.c | 108 hshared->ips = i_realloc_type(hshared->ips, struct ip_addr, 111 memcpy(hshared->ips, result->ips, sizeof(*hshared->ips) * hshared->ips_count); 130 struct ip_addr *ips; local 152 ret = net_gethostbyname(hshared->name, &ips, &ips_count); 161 i_free(hshared->ips); 163 hshared->ips = i_new(struct ip_addr, ips_count); 164 memcpy(hshared->ips, ip [all...] |
| H A D | http-client-private.h | 298 /* current index in host->ips */ 337 struct ip_addr *ips; member in struct:http_client_host_shared 673 return &host->shared->ips[idx];
|
| /dovecot/src/lib-storage/index/pop3c/ |
| H A D | pop3c-client.c | 263 struct ip_addr *ips; local 267 ret = net_gethostbyname(client->set.host, &ips, &ips_count); 274 client->ip = ips[0]; 678 client->ip = result->ips[0];
|
| /dovecot/src/master/ |
| H A D | service.c | 143 const struct ip_addr *ips; local 166 if (resolve_ip(address, &ips, &ips_count, error_r) < 0) 171 address, &ips[i]);
|
| /dovecot/src/lib-smtp/ |
| H A D | smtp-client-connection.c | 1413 ip = &conn->ips[conn->prev_connect_idx]; 1467 conn->ips = i_new(struct ip_addr, conn->ips_count); 1468 memcpy(conn->ips, result->ips, sizeof(*conn->ips) * conn->ips_count); 1478 struct ip_addr ip, *ips; local 1498 conn->ips = i_new(struct ip_addr, conn->ips_count); 1499 conn->ips[0] = ip; 1518 ret = net_gethostbyname(conn->host, &ips, &ips_count); 1533 conn->ips [all...] |
| H A D | smtp-client-private.h | 159 struct ip_addr *ips; member in struct:smtp_client_connection
|
| /dovecot/src/config/ |
| H A D | config-parser.c | 250 struct ip_addr *ips; local 267 ret = net_gethostbyname(value, &ips, &ip_count); 275 *ip_r = ips[0]; 282 max_bits = IPADDR_IS_V4(&ips[0]) ? 32 : 128;
|
| /dovecot/src/lib-imap-client/ |
| H A D | imapc-connection.c | 125 struct ip_addr *ips; member in struct:imapc_connection 245 i_free(conn->ips); 397 i_free(conn->ips); 1701 const struct ip_addr *ip = &conn->ips[conn->prev_connect_idx]; 1730 const struct ip_addr *ip = &conn->ips[conn->prev_connect_idx]; 1791 ip = &conn->ips[conn->prev_connect_idx]; 1852 conn->ips = i_new(struct ip_addr, conn->ips_count); 1853 memcpy(conn->ips, result->ips, sizeof(*conn->ips) * con 1862 struct ip_addr ip, *ips; local [all...] |