Searched defs:port (Results 1 - 25 of 26) sorted by relevance

12

/sssd-io/src/providers/
H A Dfail_over_srv.h33 int port; member in struct:fo_server_info
H A Ddata_provider_fo.c335 const char *server, int port, void *user_data,
346 ret = fo_add_server(svc->fo_service, server, port,
334 be_fo_add_server(struct be_ctx *ctx, const char *service_name, const char *server, int port, void *user_data, bool primary) argument
H A Dfail_over.c89 int port; member in struct:fo_server
181 return "unknown port status";
376 "Port status of port %d for server '%s' is '%s'\n", server->port,
382 "indicate network port issues.\n");
390 "Resetting the status of port %d for server '%s'\n",
391 server->port, SERVER_NAME(server));
549 fo_server_alloc(struct fo_service *service, int port, argument
574 server->port = port;
658 create_fo_server(struct fo_service *service, const char *name, int port, void *user_data, bool primary) argument
704 fo_server_match(struct fo_server *server, const char *name, int port, void *user_data) argument
746 fo_server_exists(struct fo_server *list, const char *name, int port, void *user_data) argument
844 fo_add_server(struct fo_service *service, const char *name, int port, void *user_data, bool primary) argument
[all...]
/sssd-io/src/responder/common/cache_req/plugins/
H A Dcache_req_svc_by_port.c63 data->svc.port, domain->name);
71 return sss_ncache_check_service_port(ncache, domain, data->svc.port,
81 data->svc.port,
92 return sysdb_getservbyport(mem_ctx, domain, data->svc.port,
104 SSS_DP_SERVICES, NULL, cr->data->svc.port,
109 .name = "Service by port",
144 uint16_t port,
150 NULL, protocol, port);
138 cache_req_svc_by_port_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct resp_ctx *rctx, struct sss_nc_ctx *ncache, int cache_refresh_percent, const char *domain, uint16_t port, const char *protocol) argument
/sssd-io/src/providers/ldap/
H A Dldap_id_services.c219 uint16_t port; local
266 port = strtouint16(state->name, NULL, 10);
272 ret = sysdb_svc_delete(state->domain, NULL, port,
H A Dsdap_async_services.c359 uint16_t port; local
400 /* Get the port number */
401 ret = sysdb_attrs_get_uint16_t(attrs, SYSDB_SVC_PORT, &port);
404 "Failed to identify service port: [%s]\n",
409 /* Get the protocols this service offers on that port */
477 ret = sysdb_store_service(dom, name, port, aliases, store_protocols,
H A Dsdap_async_connection.c438 int port; member in struct:sdap_connect_host_state
455 int port,
472 state->port = port;
487 state->uri = talloc_asprintf(state, "%s://%s:%d", protocol, host, port);
537 sockaddr = resolv_get_sockaddr_address(state, hostent, state->port);
447 sdap_connect_host_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, struct sdap_options *opts, struct resolv_ctx *resolv_ctx, enum restrict_family family_order, enum host_database *host_db, const char *protocol, const char *host, int port, bool use_start_tls) argument
H A Dsdap_async.c1110 int port; local
1137 port = ntohs(((struct sockaddr_in *)s_addr)->sin_port);
1138 DEBUG(SSSDBG_TRACE_INTERNAL, "Searching %s:%d\n", ip, port);
1141 port = ntohs(((struct sockaddr_in6 *)s_addr)->sin6_port);
1142 DEBUG(SSSDBG_TRACE_INTERNAL, "Searching %s:%d\n", ip, port);
2727 "currently not read from the LDAP port\n");
/sssd-io/src/providers/proxy/
H A Dproxy_services.c162 uint16_t port; local
175 port = htons(strtouint16(be_filter, NULL, 0));
181 status = ctx->ops.getservbyport_r(port, protocol, result,
191 ret = sysdb_svc_delete(dom, NULL, port, protocol);
/sssd-io/src/responder/common/cache_req/
H A Dcache_req_data.c168 if (input->svc.port == 0) {
169 DEBUG(SSSDBG_CRIT_FAILURE, "Bug: port cannot be 0!\n");
174 data->svc.port = input->svc.port;
329 uint16_t port)
336 input.svc.port = port;
325 cache_req_data_svc(TALLOC_CTX *mem_ctx, enum cache_req_type type, const char *name, const char *protocol, uint16_t port) argument
H A Dcache_req_private.h90 uint16_t port; member in struct:cache_req_data::__anon23
/sssd-io/src/responder/nss/
H A Dnss_protocol_svcent.c38 uint16_t port; local
59 /* Get port. */
60 port = (uint16_t)ldb_msg_find_attr_as_uint(msg, SYSDB_SVC_PORT, 0);
61 if (port == 0) {
62 DEBUG(SSSDBG_CRIT_FAILURE, "No port for service [%s]\n", name);
100 *_port = port;
178 uint16_t port; local
206 cmd_ctx->svc_protocol, &name, &protocol, &port);
235 SAFEALIGN_SET_UINT32(&body[rp], (uint32_t)htons(port), &rp);
H A Dnss_protocol.c319 uint16_t port; local
334 SAFEALIGN_COPY_UINT16(&port, body, NULL);
335 port = ntohs(port);
337 /* Move behind the port and padding to get the protocol. */
352 *_port = port;
H A Dnss_cmd.c211 uint16_t port,
227 data = cache_req_data_svc(cmd_ctx, type, name, protocol, port);
234 DEBUG(SSSDBG_TRACE_FUNC, "Input name: %s, protocol: %s, port: %u\n",
237 port);
1078 uint16_t port; local
1081 ret = nss_protocol_parse_svc_port(cli_ctx, &port, &protocol);
1086 return nss_getby_svc(cli_ctx, CACHE_REQ_SVC_BY_PORT, protocol, NULL, port,
207 nss_getby_svc(struct cli_ctx *cli_ctx, enum cache_req_type type, const char *protocol, const char *name, uint16_t port, nss_protocol_fill_packet_fn fill_fn) argument
/sssd-io/src/db/
H A Dsysdb_services.c32 int port,
105 int port,
118 if (port <= 0) {
136 (unsigned int) port);
165 int port,
197 /* Check that the port is unique
198 * If the port appears for any service other than
204 ret = sysdb_getservbyport(tmp_ctx, domain, port, NULL, &res);
210 * the same port. This is corrupted. We'll delete
244 * claiming ownership of this port
103 sysdb_getservbyport(TALLOC_CTX *mem_ctx, struct sss_domain_info *domain, int port, const char *proto, struct ldb_result **_res) argument
163 sysdb_store_service(struct sss_domain_info *domain, const char *primary_name, int port, const char **aliases, const char **protocols, struct sysdb_attrs *extra_attrs, char **remove_attrs, uint64_t cache_timeout, time_t now) argument
432 sysdb_svc_add(TALLOC_CTX *mem_ctx, struct sss_domain_info *domain, const char *primary_name, int port, const char **aliases, const char **protocols, struct ldb_dn **dn) argument
528 sysdb_svc_update(struct sysdb_ctx *sysdb, struct ldb_dn *dn, int port, const char **aliases, const char **protocols) argument
642 sysdb_svc_delete(struct sss_domain_info *domain, const char *name, int port, const char *proto) argument
[all...]
/sssd-io/src/krb5_plugin/
H A Dsssd_krb5_locator_plugin.c95 long port; local
155 port = 0;
162 port = strtol(port_str, &endptr, 10);
167 port = 0;
170 PLUGIN_DEBUG(("Found additional characters [%s] in port number "
172 port = 0;
175 if (port < 0 || port > 65535) {
176 PLUGIN_DEBUG(("Illegal port number [%ld], assuming default.\n",
177 port));
279 uint16_t port = 0; local
[all...]
/sssd-io/src/responder/secrets/
H A Dsecsrv_private.h64 int port; member in struct:sec_url
H A Dproxy.c210 #define REQ_HAS_PORT(secreq) ((secreq)->parsed_url.port != 0)
216 #define SECREQ_HAS_PORT(secreq) ((secreq)->parsed_url.port != 0)
217 #define SECREQ_PORT(secreq) ((secreq)->parsed_url.port)
226 char port[6] = { 0 }; local
232 ret = snprintf(port, 6, "%d", SECREQ_PORT(secreq));
248 SECREQ_HAS_PORT(secreq) ? port : "",
/sssd-io/src/sss_client/
H A Dnss_services.c56 * 0-3: 16-bit port number in network byte order
67 * 0-3: 32-bit unsigned port number in network byte order
100 /* Get the port */
267 _nss_sss_getservbyport_r(int port, const char *protocol, argument
304 SAFEALIGN_SET_UINT16(data, port, &p);
/sssd-io/src/tests/
H A Dfail_over-tests.c55 int port; member in struct:task
148 int port; local
166 port = fo_get_server_port(server);
167 fail_if(port != task->port, "%s: Expected port %d, got %d", task->location,
168 task->port, port);
211 task->port = expected_port;
/sssd-io/src/tests/cmocka/
H A Dtest_resolv_fake.c46 uint16_t port; member in struct:srv_rrdata
150 NS_PUT16(rr->port, a);
281 assert_int_equal(srv_replies->port, 389);
288 assert_int_equal(srv_replies->port, 389);
313 rr[0].port = 389;
319 rr[1].port = 389;
H A Dtest_fo_srv.c306 int port,
310 assert_int_equal(fo_get_server_port(srv), port); local
329 int weight, int priority, int port)
346 s->port = port;
304 check_server(struct test_fo_ctx *ctx, struct fo_server *srv, int port, const char *name) argument
328 mock_ares_reply(TALLOC_CTX *mem_ctx, const char *hostname, int weight, int priority, int port) argument
/sssd-io/src/providers/krb5/
H A Dkrb5_common.c587 long port; local
631 /* Do not try to get port number if last character is ']' */
639 port = 0;
645 port = strtol(port_str, &endptr, 10);
653 DEBUG(SSSDBG_CRIT_FAILURE, "Found additional characters [%s] in port number "
659 if (port < 1 || port > 65535) {
660 DEBUG(SSSDBG_CRIT_FAILURE, "Illegal port number [%ld].\n", port);
673 port
[all...]
/sssd-io/src/responder/common/
H A Dnegcache.c375 uint16_t port, const char *proto)
379 port,
392 uint16_t port,
397 port,
373 sss_ncache_set_service_port(struct sss_nc_ctx *ctx, bool permanent, struct sss_domain_info *dom, uint16_t port, const char *proto) argument
390 sss_ncache_check_service_port(struct sss_nc_ctx *ctx, struct sss_domain_info *dom, uint16_t port, const char *proto) argument
/sssd-io/src/resolv/
H A Dasync_resolv.c1457 int port, int addrindex)
1475 ((struct sockaddr_in *) sockaddr)->sin_port = (in_port_t) htons(port);
1483 ((struct sockaddr_in6 *) sockaddr)->sin6_port = (in_port_t) htons(port);
1533 ptr->port = old_list->port;
1455 resolv_get_sockaddr_address_index(TALLOC_CTX *mem_ctx, struct resolv_hostent *hostent, int port, int addrindex) argument

Completed in 587 milliseconds

12