Home
last modified time | relevance | path

Searched refs:salen (Results 1 – 12 of 12) sorted by relevance

/systemd-251/src/reply-password/
Dreply-password.c20 int salen; in send_on_socket() local
26 salen = sockaddr_un_set_path(&sa.un, socket_name); in send_on_socket()
27 if (salen < 0) in send_on_socket()
28 …return log_error_errno(salen, "Specified socket path for AF_UNIX socket invalid, refusing: %s", so… in send_on_socket()
30 if (sendto(fd, packet, size, MSG_NOSIGNAL, &sa.sa, salen) < 0) in send_on_socket()
/systemd-251/src/libsystemd/sd-resolve/
Dresolve-private.h13 const struct sockaddr *sa, socklen_t salen, int flags, uint64_t get,
29 #define resolve_getnameinfo(resolve, ret_query, sa, salen, flags, get, callback, destroy_callback, … argument
35 sa, salen, flags, get, \
Dsd-resolve.c1017 const struct sockaddr *sa, socklen_t salen, in resolve_getnameinfo_with_destroy_callback() argument
1032 assert_return(salen >= sizeof(struct sockaddr), -EINVAL); in resolve_getnameinfo_with_destroy_callback()
1033 assert_return(salen <= sizeof(union sockaddr_union), -EINVAL); in resolve_getnameinfo_with_destroy_callback()
1049 .header.length = sizeof(NameInfoRequest) + salen, in resolve_getnameinfo_with_destroy_callback()
1052 .sockaddr_len = salen, in resolve_getnameinfo_with_destroy_callback()
1060 iov[1] = IOVEC_MAKE((void*) sa, salen); in resolve_getnameinfo_with_destroy_callback()
1084 const struct sockaddr *sa, socklen_t salen, in sd_resolve_getnameinfo() argument
1090 …return resolve_getnameinfo_with_destroy_callback(resolve, ret_query, sa, salen, flags, get, callba… in sd_resolve_getnameinfo()
/systemd-251/src/basic/
Dsocket-util.c440 socklen_t salen, in sockaddr_pretty() argument
450 assert(salen >= sizeof(sa->sa.sa_family)); in sockaddr_pretty()
519 if (salen <= offsetof(struct sockaddr_un, sun_path) || in sockaddr_pretty()
520 … (sa->un.sun_path[0] == 0 && salen == offsetof(struct sockaddr_un, sun_path) + 1)) in sockaddr_pretty()
529 size_t path_len = salen - offsetof(struct sockaddr_un, sun_path); in sockaddr_pretty()
579 socklen_t salen = sizeof(sa); in getpeername_pretty() local
585 if (getpeername(fd, &sa.sa, &salen) < 0) in getpeername_pretty()
607 return sockaddr_pretty(&sa.sa, salen, true, include_port, ret); in getpeername_pretty()
612 socklen_t salen = sizeof(sa); in getsockname_pretty() local
617 if (getsockname(fd, &sa.sa, &salen) < 0) in getsockname_pretty()
[all …]
Dsocket-util.h112 int sockaddr_pretty(const struct sockaddr *_sa, socklen_t salen, bool translate_ipv6, bool include_…
116 int socknameinfo_pretty(union sockaddr_union *sa, socklen_t salen, char **_ret);
/systemd-251/src/shared/
Dlocal-addresses.c396 socklen_t salen; in local_outbounds() local
458 salen = SOCKADDR_LEN(sa); in local_outbounds()
459 if (getsockname(fd, &sa.sa, &salen) < 0) in local_outbounds()
462 assert(salen == SOCKADDR_LEN(sa)); in local_outbounds()
/systemd-251/src/journal/
Djournald-audit.h7 …r, size_t buffer_size, const struct ucred *ucred, const union sockaddr_union *sa, socklen_t salen);
Djournald-audit.c419 socklen_t salen) { in server_process_audit_message() argument
432 salen != sizeof(struct sockaddr_nl) || in server_process_audit_message()
/systemd-251/src/resolve/
Dresolved-dns-scope.c356 socklen_t salen; in dns_scope_socket() local
374 salen = sizeof(sa.in); in dns_scope_socket()
383 salen = sizeof(sa.in6); in dns_scope_socket()
401 salen = sizeof(sa.in); in dns_scope_socket()
410 salen = sizeof(sa.in6); in dns_scope_socket()
485 r = connect(fd, &sa.sa, salen); in dns_scope_socket()
/systemd-251/src/socket-proxy/
Dsocket-proxyd.c353 static int connection_start(Connection *c, struct sockaddr *sa, socklen_t salen) { in connection_start() argument
358 assert(salen); in connection_start()
366 r = connect(c->client_fd, sa, salen); in connection_start()
/systemd-251/src/systemd/
Dsd-resolve.h102 …olve *resolve, sd_resolve_query **q, const struct sockaddr *sa, socklen_t salen, int flags, uint64…
/systemd-251/src/core/
Dservice.c1571 socklen_t salen = sizeof(sa); in service_spawn_internal() local
1578 if (getpeername(s->socket_fd, &sa.sa, &salen) >= 0 && in service_spawn_internal()
1584 r = sockaddr_pretty(&sa.sa, salen, true, false, &addr); in service_spawn_internal()