Searched defs:salen (Results 1 - 7 of 7) sorted by relevance

/systemd/src/basic/
H A Dsocket-util.c493 int sockaddr_pretty(const struct sockaddr *_sa, socklen_t salen, bool translate_ipv6, bool include_port, char **ret) { argument
499 assert(salen >= sizeof(sa->sa.sa_family));
564 if (salen <= offsetof(struct sockaddr_un, sun_path)) {
604 socklen_t salen = sizeof(sa); local
610 if (getpeername(fd, &sa.sa, &salen) < 0)
632 return sockaddr_pretty(&sa.sa, salen, true, include_port, ret);
637 socklen_t salen = sizeof(sa); local
642 if (getsockname(fd, &sa.sa, &salen) < 0)
650 return sockaddr_pretty(&sa.sa, salen, false, true, ret);
653 int socknameinfo_pretty(union sockaddr_union *sa, socklen_t salen, cha argument
681 socklen_t salen = sizeof(sa); local
[all...]
/systemd/src/core/
H A Ddbus.c974 socklen_t salen; local
993 salen = offsetof(union sockaddr_union, un.sun_path) + strlen("/run/systemd/private");
1008 salen = sizeof(sa.un) - left;
1018 r = bind(fd, &sa.sa, salen);
H A Dservice.c1230 socklen_t salen = sizeof(sa); local
1232 r = getpeername(s->socket_fd, &sa.sa, &salen);
1241 r = sockaddr_pretty(&sa.sa, salen, true, false, &addr);
/systemd/src/journal/
H A Djournald-audit.c432 socklen_t salen) {
445 salen != sizeof(struct sockaddr_nl) ||
426 server_process_audit_message( Server *s, const void *buffer, size_t buffer_size, const struct ucred *ucred, const union sockaddr_union *sa, socklen_t salen) argument
/systemd/src/resolve/
H A Dresolved-dns-scope.c308 socklen_t salen; local
322 salen = sizeof(sa.in);
327 salen = sizeof(sa.in6);
339 salen = sizeof(sa.in);
344 salen = sizeof(sa.in6);
387 r = connect(fd, &sa.sa, salen);
/systemd/src/socket-proxy/
H A Dsocket-proxyd.c329 static int connection_start(Connection *c, struct sockaddr *sa, socklen_t salen) { argument
334 assert(salen);
342 r = connect(c->client_fd, sa, salen);
403 socklen_t salen; local
411 salen = offsetof(union sockaddr_union, un.sun_path) + strlen(sa.un.sun_path);
413 return connection_start(c, &sa.sa, salen);
422 salen = offsetof(union sockaddr_union, un.sun_path) + 1 + strlen(sa.un.sun_path + 1);
424 return connection_start(c, &sa.sa, salen);
/systemd/src/libsystemd/sd-resolve/
H A Dsd-resolve.c1009 const struct sockaddr *sa, socklen_t salen,
1023 assert_return(salen >= sizeof(struct sockaddr), -EINVAL);
1024 assert_return(salen <= sizeof(union sockaddr_union), -EINVAL);
1039 req.header.length = sizeof(NameInfoRequest) + salen;
1042 req.sockaddr_len = salen;
1047 iov[1] = (struct iovec) { .iov_base = (void*) sa, .iov_len = salen };
1006 sd_resolve_getnameinfo( sd_resolve *resolve, sd_resolve_query**_q, const struct sockaddr *sa, socklen_t salen, int flags, uint64_t get, sd_resolve_getnameinfo_handler_t callback, void *userdata) argument

Completed in 275 milliseconds