/dovecot/src/director/ |
H A D | director-host.c | 6 #include "director-host.h" 29 struct director_host *host; local 33 host = i_new(struct director_host, 1); 34 host->dir = dir; 35 host->refcount = 1; 36 host->ip = *ip; 37 host->ip_str = i_strdup(net_ip2addr(&host->ip)); 38 host->port = port; 39 host 51 struct director_host *host = *_host; local 59 director_host_ref(struct director_host *host) argument 65 director_host_unref(struct director_host *host) argument 87 director_host_restarted(struct director_host *host) argument 99 struct director_host *host; local 154 director_host_add_string(struct director *dir, const char *host) argument [all...] |
H A D | director-connection.c | 41 #include "mail-host.h" 43 #include "director-host.h" 73 mark the host as failed so we won't try to reconnect to it immediately */ 116 /* for incoming connections the director host isn't known until 118 struct director_host *host; member in struct:director_connection 172 if (conn->host != NULL) 173 conn->host->last_protocol_failure = ioloop_time; 270 struct director_host *host) 278 host->ip_str, host 269 director_connection_send_connect(struct director_connection *conn, struct director_host *host) argument 596 director_user_refresh(struct director_connection *conn, unsigned int username_hash, struct mail_host *host, time_t timestamp, bool weak, bool *forced_r, struct user **user_r) argument 758 struct mail_host *host; local 820 struct mail_host *host; local 857 struct director_host *host; local 912 struct director_host *host; local 969 struct director_host *host; local 1015 struct mail_host *host; local 1093 struct mail_host *host; local 1223 struct mail_host *host; local 1247 struct mail_host *host; local 1271 struct mail_host *host; local 1549 director_connection_sync_host(struct director_connection *conn, struct director_host *host, uint32_t seq, unsigned int minor_version, unsigned int timestamp, unsigned int hosts_hash) argument 1676 struct director_host *host; local 1754 struct director_host *host; local 2133 struct mail_host *host = *hostp; local 2371 director_connection_init_out(struct director *dir, int fd, struct director_host *host) argument [all...] |
H A D | mail-host.c | 9 #include "mail-host.h" 38 return net_ip_cmp(&h1->host->ip, &h2->host->ip); 52 static void mail_vhost_add(struct mail_tag *tag, struct mail_host *host) argument 60 if (host->down || host->tag != tag) 64 md5_update(&md5_ctx, host->ip_str, strlen(host->ip_str)); 66 for (i = 0; i < host->vhost_count; i++) { 73 vhost->host 163 struct mail_host *host; local 183 struct mail_host *host; local 321 mail_host_get_tag(const struct mail_host *host) argument 326 mail_host_set_tag(struct mail_host *host, const char *tag_name) argument 334 mail_host_set_down(struct mail_host *host, bool down, time_t timestamp, const char *log_prefix) argument 350 mail_host_set_vhost_count(struct mail_host *host, unsigned int vhost_count, const char *log_prefix) argument 361 mail_host_free(struct mail_host *host) argument 368 mail_host_remove(struct mail_host *host) argument [all...] |
H A D | user-directory.h | 19 struct mail_host *host; member in struct:user 48 struct mail_host *host, time_t timestamp); 52 /* Remove all users that have pointers to given host */ 54 struct mail_host *host);
|
H A D | mail-host.h | 11 struct mail_host *host; member in struct:mail_vhost 20 /* temporary user -> host associations */ 40 /* host was recently changed and ring hasn't synced yet since */ 59 const char *mail_host_get_tag(const struct mail_host *host); 60 void mail_host_set_tag(struct mail_host *host, const char *tag_name); 61 void mail_host_set_down(struct mail_host *host, bool down, time_t timestamp, 63 void mail_host_set_vhost_count(struct mail_host *host, unsigned int vhost_count, 65 void mail_host_remove(struct mail_host *host);
|
H A D | director-test.c | 41 struct host { struct 50 struct host *host; member in struct:user 93 static HASH_TABLE(struct ip_addr *, struct host *) hosts; 94 static ARRAY(struct host *) hosts_array; 102 static void host_unref(struct host **_host) 104 struct host *host = *_host; local 108 i_assert(host->refcount > 0); 109 if (--host 118 struct host *host; local 496 struct host *host; local 553 struct host *host; local [all...] |
H A D | doveadm-connection.c | 15 #include "mail-host.h" 17 #include "director-host.h" 162 doveadm_director_host_append_status(const struct director_host *host, argument 165 time_t last_failed = I_MAX(host->last_network_failure, 166 host->last_protocol_failure); 168 host->ip_str, host->port, type, 213 const struct director_host *host, 227 if (host != NULL) 228 doveadm_director_host_append_status(host, typ 211 doveadm_director_connection_append(struct director *dir, struct director_connection *conn, const struct director_host *host, string_t *str) argument 234 doveadm_director_host_append(struct director *dir, const struct director_host *host, string_t *str) argument 274 const struct director_host *host = *hostp; local 298 struct director_host *host; local 321 struct director_host *host; local 350 struct mail_host *host; local 414 struct mail_host *host; local 461 struct mail_host *host; local 499 struct mail_host *host; local 534 director_host_reset_users(struct director_reset_cmd *cmd, struct mail_host *host) argument 679 struct mail_host *host; local 769 struct mail_host *host; local [all...] |
H A D | director.c | 17 #include "mail-host.h" 18 #include "director-host.h" 118 struct director_host *host) 123 if (director_connection_get_host(*connp) == host && 131 director_log_connect(struct director *dir, struct director_host *host, argument 136 if (host->last_network_failure > 0) { 138 (int)(ioloop_time - host->last_network_failure)); 140 if (host->last_protocol_failure > 0) { 142 (int)(ioloop_time - host->last_protocol_failure)); 145 host 117 director_has_outgoing_connection(struct director *dir, struct director_host *host) argument 149 director_connect_host(struct director *dir, struct director_host *host, const char *reason) argument 177 struct director_host *const *hosts, *host; local 318 struct director_host *host; local 359 director_sync_send(struct director *dir, struct director_host *host, uint32_t seq, unsigned int minor_version, unsigned int timestamp, unsigned int hosts_hash) argument 535 struct director_host *const *hosts, *host; local 606 director_send_host(struct director *dir, struct director_host *src, struct director_host *orig_src, struct mail_host *host) argument 657 director_update_host(struct director *dir, struct director_host *src, struct director_host *orig_src, struct mail_host *host) argument 679 director_remove_host(struct director *dir, struct director_host *src, struct director_host *orig_src, struct mail_host *host) argument 702 director_flush_host(struct director *dir, struct director_host *src, struct director_host *orig_src, struct mail_host *host) argument 1119 director_move_user(struct director *dir, struct director_host *src, struct director_host *orig_src, unsigned int username_hash, struct mail_host *host) argument 1461 struct director_host *const *hostp, *host; local [all...] |
H A D | director-host.h | 18 /* change commands each have originating host and originating sequence. 19 we'll keep track of the highest sequence we've seen from the host. 31 /* Last time host was detected to be down */ 50 void director_host_free(struct director_host **host); 52 void director_host_ref(struct director_host *host); 53 void director_host_unref(struct director_host *host); 55 void director_host_restarted(struct director_host *host);
|
H A D | director-request.h | 8 director_request_callback(const struct mail_host *host, const char *hostname,
|
H A D | test-user-directory.c | 6 #include "mail-host.h" 45 struct mail_host *host = t_new(struct mail_host, 1); local 50 (void)user_directory_add(dir, 1, host, ioloop_time + count+1); 53 (void)user_directory_add(dir, i+2, host, ioloop_time + i); 63 struct mail_host *host = t_new(struct mail_host, 1); local 70 (void)user_directory_add(dir, i+1, host, ioloop_time - i); 79 struct mail_host *host = t_new(struct mail_host, 1); local 90 (void)user_directory_add(dir, i+1, host, timestamp);
|
H A D | director-request.c | 7 #include "mail-host.h" 190 struct mail_host *host; local 216 if (!user_directory_user_is_near_expiring(user->host->tag->users, user)) 221 host = mail_host_get_by_hash(dir->mail_hosts, user->username_hash, 222 user->host->tag->name); 230 if (user->host == host) { 233 dir_debug("request: %u would be weak, but host doesn't change", request->username_hash); 256 1. Send a USER-WEAK notification to all directors with the new host. 258 and host, bu 281 struct mail_host *host; local [all...] |
/dovecot/src/lib/ |
H A D | test-net.c | 92 const char *host; local 97 test_assert(net_str2hostport("[1::4]", 0, &host, &port) == 0 && 98 strcmp(host, "1::4") == 0 && port == 0); 99 test_assert(net_str2hostport("[1::4]", 1234, &host, &port) == 0 && 100 strcmp(host, "1::4") == 0 && port == 1234); 101 test_assert(net_str2hostport("[1::4]:78", 1234, &host, &port) == 0 && 102 strcmp(host, "1::4") == 0 && port == 78); 103 host = NULL; 104 test_assert(net_str2hostport("[1::4]:", 1234, &host, &port) < 0 && host [all...] |
/dovecot/src/lib-http/ |
H A D | test-http-url.c | 22 .host = { .name = "localhost" } } 26 .host = { .name = "www.example.com" } } 30 .host = { .name = "www.dovecot.org" }, 35 .host = { 41 .host = { 47 .host = { 55 .host = { .name = "api.dovecot.org" }, 61 .host = { .name = "api.dovecot.org" }, 67 .host = { .name = "api.dovecot.org" }, 74 .host [all...] |
H A D | http-client-host.c | 21 http_client_host_lookup_done(struct http_client_host *host); 23 http_client_host_lookup_failure(struct http_client_host *host, 26 http_client_host_is_idle(struct http_client_host *host); 35 e_debug(hshared->event, "Idle host timed out"); 43 struct http_client_host *host; local 49 host = hshared->hosts_list; 50 while (host != NULL) { 51 if (!http_client_host_is_idle(host)) 53 host = host 75 struct http_client_host *host; local 94 struct http_client_host *host; local 263 struct http_client_host *host; local 321 struct http_client_host *host; local 351 struct http_client_host *host = *_host; local 381 http_client_host_lookup_done( struct http_client_host *host) argument 398 http_client_host_lookup_failure(struct http_client_host *host, const char *error) argument 407 http_client_host_submit_request(struct http_client_host *host, struct http_client_request *req) argument 438 http_client_host_is_idle(struct http_client_host *host) argument 450 http_client_host_check_idle(struct http_client_host *host) argument 455 http_client_host_refresh(struct http_client_host *host) argument 460 http_client_host_get_ip_idx(struct http_client_host *host, const struct ip_addr *ip, unsigned int *idx_r) argument 475 http_client_host_switch_ioloop(struct http_client_host *host) argument [all...] |
H A D | test-http-request-parser.c | 47 .url = { .host = { .name = "example.com" } } 59 .url = { .host = { .name = "example.com" } } 71 .host = { .name = "example.com" }, 84 .host = { .name = "www.example.com" }, 101 .host = { .name = "api.example.com" }, 116 .host = { .name = "www.example.com" }} 128 .url = { .host = { .name = "www.example.com" } } 141 .url = { .host = { .name = "www.example.com" } } 154 .url = { .host = { .name = "example.com" } } 167 .url = { .host [all...] |
H A D | http-client-private.h | 96 struct http_client_host *host; member in struct:http_client_request 291 struct http_client_host *host; member in struct:http_client_queue 298 /* current index in host->ips */ 335 /* the ip addresses DNS returned for this host */ 340 /* private instance for each client that uses this host */ 360 /* separate queue for each host port */ 621 http_client_queue_get(struct http_client_host *host, 653 /* host (shared) */ 660 /* host */ 663 http_client_host_get_ips_count(struct http_client_host *host) argument 669 http_client_host_get_ip(struct http_client_host *host, unsigned int idx) argument 677 http_client_host_ready(struct http_client_host *host) argument [all...] |
/dovecot/src/lib-imap/ |
H A D | test-imap-url.c | 21 .host = { .name = "localhost" } } 25 .host = { .name = "localhost" }, 30 .host = { .name = "localhost" }, 36 .host = { .name = "localhost" }, 41 .host = { .name = "example.com" }, 47 .host = { .name = "localhost" }, 53 .host = { 60 .host = { 67 .host = { .name = "4example.com" }, 73 .host [all...] |
H A D | imap-url.h | 8 struct uri_host host; member in struct:imap_url
|
/dovecot/src/lib-dns/ |
H A D | dns-lookup.h | 42 int dns_lookup(const char *host, const struct dns_lookup_settings *set, 45 #define dns_lookup(host, set, callback, context, lookup_r) \ 46 dns_lookup(host + \ 54 #define dns_lookup_ptr(host, set, callback, context, lookup_r) \ 55 dns_lookup_ptr(host + \ 70 int dns_client_lookup(struct dns_client *client, const char *host, 73 #define dns_client_lookup(client, host, callback, context, lookup_r) \ 74 dns_client_lookup(client, host + \ 81 #define dns_client_lookup_ptr(client, host, callback, context, lookup_r) \ 82 dns_client_lookup_ptr(client, host [all...] |
/dovecot/src/login-common/ |
H A D | login-proxy.h | 26 const char *host; member in struct:login_proxy_settings 39 /* Create a proxy to given host. Returns NULL if failed. Given callback is 47 /* Return TRUE if host/port/destuser combination points to same as current 49 bool login_proxy_is_ourself(const struct client *client, const char *host,
|
/dovecot/src/old-stats/ |
H A D | stats-carbon.c | 80 const char *host; local 85 &host, &port) < 0 || 86 net_addr2ip(host, &ip) < 0) { 116 if (net_ipport2str(&ip, port, &host) < 0) 118 ctx->endpoint = p_strdup(ctx->pool, host);
|
/dovecot/src/doveadm/ |
H A D | doveadm-director.c | 26 const char *host; member in struct:director_context 47 static int director_get_host(const char *host, struct ip_addr **ips_r, 122 if (!doveadm_cmd_param_str(cctx, "host", &(ctx->host))) 123 ctx->host = NULL; 312 static int director_get_host(const char *host, struct ip_addr **ips_r, argument 318 if (net_addr2ip(host, &ip) == 0) { 323 ret = net_gethostbyname(host, ips_r, ips_count_r); 325 i_error("gethostname(%s) failed: %s", host, 360 if ((ctx->hash_map || ctx->user_map) && ctx->host 460 const char *line, *host; local 541 const char *host, *line; local 783 const char *host = args[0]; local [all...] |
H A D | doveadm-util.c | 103 doveadm_tcp_connect_port(const char *host, in_port_t port) argument 110 ret = net_gethostbyname(host, &ips, &ips_count); 112 i_fatal("Lookup of host %s failed: %s", 113 host, net_gethosterror(ret)); 126 const char *host; local 129 if (net_str2hostport(target, default_port, &host, &port) < 0) { 133 return doveadm_tcp_connect_port(host, port);
|
/dovecot/src/lib-sasl/ |
H A D | mech-oauthbearer.c | 12 const char *host; member in struct:oauthbearer_dsasl_client 100 if (client->host != NULL && *client->host != '\0') 101 str_printfa(str, "host=%s\x01", client->host); 149 if (strcmp(key, "host") == 0) { 151 client->host = p_strdup(_client->pool, value); 153 client->host = NULL;
|