/dovecot/src/login-common/ |
H A D | login-proxy-state.h | 8 in_port_t port; member in struct:login_proxy_record 35 const struct ip_addr *ip, in_port_t port);
|
H A D | login-proxy.h | 28 in_port_t port; member in struct:login_proxy_settings 47 /* Return TRUE if host/port/destuser combination points to same as current 50 in_port_t port, const char *destuser);
|
H A D | login-proxy-state.c | 31 return net_ip_hash(&rec->ip) ^ rec->port; 40 return (int)rec1->port - (int)rec2->port; 84 const struct ip_addr *ip, in_port_t port) 90 key.port = port; 96 rec->port = port; 83 login_proxy_state_get(struct login_proxy_state *state, const struct ip_addr *ip, in_port_t port) argument
|
/dovecot/src/lib/ |
H A D | test-net.c | 93 in_port_t port; 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); 104 test_assert(net_str2hostport("[1::4]:", 1234, &host, &port) < 0 && host == NULL); 105 test_assert(net_str2hostport("[1::4]:0", 1234, &host, &port) < 0 && host == NULL); 106 test_assert(net_str2hostport("[1::4]:x", 1234, &host, &port) < [all...] |
H A D | uri-util.h | 27 in_port_t port; /* 0 means no port specified */ member in struct:uri_authority 249 /* append the port to the out buffer. */ 250 void uri_append_port(string_t *out, in_port_t port);
|
H A D | fd-util.c | 27 in_port_t port, rport; local 38 if (net_getsockname(fd, &addr, &port) == 0) { 59 fd, net_ip2addr(&addr), port,
|
H A D | connection.c | 249 const struct ip_addr *ip, in_port_t port, 257 conn->name = i_strdup_printf("%s:%u", net_ip2addr(ip), port); 260 conn->port = port; 270 const struct ip_addr *ip, in_port_t port) 272 connection_init_client_ip_from(list, conn, ip, port, NULL); 339 if (conn->port != 0) { 340 fd = net_connect_ip(&conn->ip, conn->port, 351 if (conn->port != 0 || 247 connection_init_client_ip_from(struct connection_list *list, struct connection *conn, const struct ip_addr *ip, in_port_t port, const struct ip_addr *my_ip) argument 268 connection_init_client_ip(struct connection_list *list, struct connection *conn, const struct ip_addr *ip, in_port_t port) argument
|
H A D | connection.h | 96 in_port_t port; member in struct:connection 123 const struct ip_addr *ip, in_port_t port); 126 const struct ip_addr *ip, in_port_t port,
|
H A D | iostream-rawlog.c | 169 in_port_t port; local 172 /* tcp:host:port */ 179 if (net_str2hostport(path, 0, &host, &port) < 0 || port == 0) 188 fd = net_connect_ip_blocking(&ips[0], port, NULL); 190 i_error("connect(%s:%u) failed: %m", net_ip2addr(&ips[0]), port);
|
/dovecot/src/lib-http/ |
H A D | http-url.h | 14 in_port_t port; member in struct:http_url 63 return (url->port != 0 ? url->port : default_port);
|
H A D | test-http-server.c | 26 in_port_t server_port, port; member in struct:client 84 (void)net_ipport2str(&client->ip, client->port, &ipport); 87 if (http_req->target.url->port != 0) 88 str_printfa(content, ":%u", http_req->target.url->port); 136 client_init(int fd, const struct ip_addr *ip, in_port_t port) argument 146 client->port = port; 190 in_port_t port; local 201 i_fatal("Usage: %s [-D] <port> [<IP>]", argv[0]); 207 if (argc < 1 || net_str2port(argv[0], &port) < [all...] |
/dovecot/src/old-stats/ |
H A D | stats-carbon.c | 81 in_port_t port; local 85 &host, &port) < 0 || 98 ctx->fd = net_connect_ip(&ip, port, NULL); 116 if (net_ipport2str(&ip, port, &host) < 0)
|
/dovecot/src/director/ |
H A D | director-host.h | 14 in_port_t port; member in struct:director_host 16 /* name contains "ip:port" */ 49 in_port_t port); 59 in_port_t port); 62 in_port_t port); 73 /* Compare directors by IP/port. */ 77 /* Parse hosts list (e.g. "host1:port host2 host3:port") and them as
|
H A D | director-host.c | 16 return (int)b1->port - (int)b2->port; 27 const struct ip_addr *ip, in_port_t port) 31 i_assert(director_host_lookup(dir, ip, port) == NULL); 38 host->port = port; 39 host->name = i_strdup_printf("%s:%u", host->ip_str, port); 97 in_port_t port) 101 host = director_host_lookup(dir, ip, port); 103 host = director_host_add(dir, ip, port); 26 director_host_add(struct director *dir, const struct ip_addr *ip, in_port_t port) argument 96 director_host_get(struct director *dir, const struct ip_addr *ip, in_port_t port) argument 108 director_host_lookup(struct director *dir, const struct ip_addr *ip, in_port_t port) argument 157 in_port_t port; local [all...] |
H A D | main.c | 136 in_port_t port; local 153 net_getsockname(listen_fd, &ip, &port) == 0 && port > 0) { 155 *listen_port_r = port; 334 i_fatal("-t: Not a port number: %s", optarg);
|
/dovecot/src/doveadm/ |
H A D | doveadm-zlib.c | 146 in_port_t port = 143; local 150 (argv[2] != NULL && net_str2port(argv[2], &port) < 0)) 159 if ((fd = net_connect_ip(&ips[0], port, NULL)) == -1) 160 i_fatal("connect(%s, %u) failed: %m", argv[1], port); 162 i_info("Connected to %s port %u. Ctrl-D starts compression", 163 net_ip2addr(&ips[0]), port); 201 "<host> [<port>]"
|
H A D | doveadm-util.c | 103 doveadm_tcp_connect_port(const char *host, in_port_t port) argument 115 fd = net_connect_ip_blocking(&ips[0], port, NULL); 118 net_ip2addr(&ips[0]), port); 127 in_port_t port; local 129 if (net_str2hostport(target, default_port, &host, &port) < 0) { 131 "or use %s:port", target, target); 133 return doveadm_tcp_connect_port(host, port);
|
/dovecot/src/lib-imap/ |
H A D | imap-url.h | 9 in_port_t port; member in struct:imap_url
|
/dovecot/src/lib-sasl/ |
H A D | mech-oauthbearer.c | 14 in_port_t port; member in struct:oauthbearer_dsasl_client 102 if (client->port > 0) 103 str_printfa(str, "port=%u\x01", client->port); 155 } else if (strcmp(key, "port") == 0) { 157 client->port = 0; 158 } else if (net_str2port(key, &client->port) < 0) { 159 *error_r = "Invalid port value";
|
/dovecot/src/lib-storage/index/pop3c/ |
H A D | pop3c-client.h | 27 in_port_t port; member in struct:pop3c_client_settings
|
/dovecot/src/master/ |
H A D | sd-daemon.c | 240 int sd_is_socket_inet(int fd, int family, int type, int listening, uint16_t port) { argument 268 if (port > 0) { 273 return htons(port) == sockaddr.in4.sin_port; 278 return htons(port) == sockaddr.in6.sin6_port;
|
H A D | service-listen.c | 155 systemd_listen_fd(const struct ip_addr *ip, in_port_t port, int *fd_r) argument 170 if (sd_is_socket_inet(fd, ip->family, SOCK_STREAM, 1, port)) { 187 in_port_t port = set->port; local 191 if (systemd_listen_fd(&l->set.inetset.ip, port, &fd) < 0) 199 fd = net_listen_full(&l->set.inetset.ip, &port, &flags, 203 l->inet_address, set->port); 247 static int get_socket_info(int fd, unsigned int *family, in_port_t *port) argument 257 if (port) *port 301 in_port_t port; local [all...] |
/dovecot/src/lib-master/ |
H A D | service-settings.h | 34 in_port_t port; member in struct:inet_listener_settings
|
/dovecot/src/lib-program-client/ |
H A D | test-program-client-net.c | 44 in_port_t port; member in struct:test_server 261 test_globals.port = 0; 264 test_globals.listen_fd = net_listen(&ip, &test_globals.port, 1); 303 program_client_net_create("127.0.0.1", test_globals.port, args, 339 program_client_net_create("127.0.0.1", test_globals.port, args, 379 program_client_net_create("127.0.0.1", test_globals.port, args, 414 program_client_net_create("127.0.0.1", test_globals.port, args, 451 test_globals.port, args,
|
/dovecot/src/replication/aggregator/ |
H A D | replicator-connection.c | 23 in_port_t port; member in struct:replicator_connection 144 if (conn->port == 0) { 153 fd = net_connect_ip(&conn->ips[idx], conn->port, NULL); 157 net_ip2addr(&conn->ips[idx]), conn->port); 232 unsigned int ips_count, in_port_t port, 242 conn->port = port; 231 replicator_connection_create_inet(const struct ip_addr *ips, unsigned int ips_count, in_port_t port, replicator_sync_callback_t *callback) argument
|