Cross Reference: /dovecot/src/doveadm/doveadm-director.c

Lines Matching refs:host

26 	const char *host;
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,
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 == NULL) {
367 if (user_hash_expand(ctx->host, &user_hash)) {
376 if (ctx->host == NULL || ctx->hash_map)
378 else if (director_get_host(ctx->host, &ips, &ips_count) != 0) {
392 if (str_to_uint(ctx->host, &user_hash) < 0)
393 i_fatal("Invalid username hash: %s", ctx->host);
460 const char *line, *host;
466 if (ctx->host == NULL) {
479 if (str_to_uint(ctx->host, &i) == 0) {
480 /* host is a number. this would translate to an IP address,
482 i_error("Invalid host '%s'", ctx->host);
487 host = ctx->host;
489 ctx->tag = strchr(ctx->host, '@');
491 host = t_strdup_until(ctx->host, ctx->tag++);
493 if (director_get_host(host, &ips, &ips_count) != 0) {
541 const char *host, *line;
544 host = ctx->host;
545 if (host == NULL) {
550 if (director_get_host(host, &ips, &ips_count) != 0) {
600 if (ctx->user == NULL || ctx->host == NULL) {
606 director_get_host(ctx->host, &ips, &ips_count) != 0) {
706 if (ctx->host == NULL) {
711 if (strcmp(ctx->host, "all") == 0) {
715 if (net_addr2ip(ctx->host, &ip) == 0) {
718 } else if (director_get_host(ctx->host, &ips, &ips_count) != 0) {
767 doveadm_print_formatted_set_format("doveadm director %{command} -a %{socket-path} %{host} %{vhost_count}\n");
769 doveadm_print_formatted_set_format("doveadm director %{command} %{host} %{vhost_count}\n");
773 doveadm_print_header_simple("host");
783 const char *host = args[0];
788 host = t_strdup_printf("%s@%s", host,
792 doveadm_print(host);
941 .usage = "[-a <director socket path>] [-f <users file>] [-h | -u] [<host>]",
947 DOVEADM_CMD_PARAM('\0', "host", CMD_PARAM_STR, CMD_PARAM_FLAG_POSITIONAL)
953 .usage = "[-a <director socket path>] [-t <tag>] <host> [<vhost count>]",
957 DOVEADM_CMD_PARAM('\0', "host", CMD_PARAM_STR, CMD_PARAM_FLAG_POSITIONAL)
964 .usage = "[-a <director socket path>] <host> <vhost count>",
967 DOVEADM_CMD_PARAM('\0', "host", CMD_PARAM_STR, CMD_PARAM_FLAG_POSITIONAL)
974 .usage = "[-a <director socket path>] <host>",
977 DOVEADM_CMD_PARAM('\0', "host", CMD_PARAM_STR, CMD_PARAM_FLAG_POSITIONAL)
983 .usage = "[-a <director socket path>] <host>",
986 DOVEADM_CMD_PARAM('\0', "host", CMD_PARAM_STR, CMD_PARAM_FLAG_POSITIONAL)
992 .usage = "[-a <director socket path>] <host>",
995 DOVEADM_CMD_PARAM('\0', "host", CMD_PARAM_STR, CMD_PARAM_FLAG_POSITIONAL)
1001 .usage = "[-a <director socket path>] <user> <host>",
1005 DOVEADM_CMD_PARAM('\0', "host", CMD_PARAM_STR, CMD_PARAM_FLAG_POSITIONAL)
1021 .usage = "[-a <director socket path>] [-F] [--max-parallel <n>] <host>|all",
1026 DOVEADM_CMD_PARAM('\0', "host", CMD_PARAM_STR, CMD_PARAM_FLAG_POSITIONAL)