/systemd-251/src/basic/ |
D | socket-util.c | 172 return sockaddr_pretty(&a->sockaddr.sa, a->size, false, true, ret); in socket_address_print() 333 if (getsockname(fd, &b.sockaddr.sa, &b.size) < 0) in socket_address_matches_fd() 336 if (b.sockaddr.sa.sa_family != a->sockaddr.sa.sa_family) in socket_address_matches_fd() 359 const union sockaddr_union *sa = (const union sockaddr_union*) _sa; in sockaddr_port() local 363 assert(sa); in sockaddr_port() 365 switch (sa->sa.sa_family) { in sockaddr_port() 368 *ret_port = be16toh(sa->in.sin_port); in sockaddr_port() 372 *ret_port = be16toh(sa->in6.sin6_port); in sockaddr_port() 376 *ret_port = sa->vm.svm_port; in sockaddr_port() 385 const union sockaddr_union *sa = (const union sockaddr_union*) _sa; in sockaddr_in_addr() local [all …]
|
D | socket-util.h | 26 struct sockaddr sa; member 71 #define socket_address_family(a) ((a)->sockaddr.sa.sa_family) 76 int sockaddr_un_unlink(const struct sockaddr_un *sa); 109 const union in_addr_union *sockaddr_in_addr(const struct sockaddr *sa); 116 int socknameinfo_pretty(union sockaddr_union *sa, socklen_t salen, char **_ret); 160 const struct sockaddr *sa, socklen_t len, 164 const struct sockaddr *sa, socklen_t len, 204 #define SOCKADDR_LL_LEN(sa) \ argument 206 const struct sockaddr_ll *_sa = &(sa); \ 217 #define SOCKADDR_UN_LEN(sa) \ argument [all …]
|
D | signal-util.c | 15 static const struct sigaction sa = { in reset_all_signal_handlers() local 29 if (sigaction(sig, &sa, NULL) < 0) in reset_all_signal_handlers() 46 int sigaction_many_internal(const struct sigaction *sa, ...) { in sigaction_many_internal() argument 50 va_start(ap, sa); in sigaction_many_internal() 58 if (sigaction(sig, sa, NULL) < 0) { in sigaction_many_internal()
|
D | signal-util.h | 11 int sigaction_many_internal(const struct sigaction *sa, ...); 31 #define sigaction_many(sa, ...) \ argument 32 sigaction_many_internal(sa, __VA_ARGS__, -1)
|
/systemd-251/src/resolve/ |
D | resolved-llmnr.c | 141 union sockaddr_union sa = { in manager_llmnr_ipv4_udp_fd() local 179 r = bind(s, &sa.sa, sizeof(sa.in)); in manager_llmnr_ipv4_udp_fd() 191 r = bind(s, &sa.sa, sizeof(sa.in)); in manager_llmnr_ipv4_udp_fd() 211 union sockaddr_union sa = { in manager_llmnr_ipv6_udp_fd() local 249 r = bind(s, &sa.sa, sizeof(sa.in6)); in manager_llmnr_ipv6_udp_fd() 261 r = bind(s, &sa.sa, sizeof(sa.in6)); in manager_llmnr_ipv6_udp_fd() 344 union sockaddr_union sa = { in manager_llmnr_ipv4_tcp_fd() local 374 r = bind(s, &sa.sa, sizeof(sa.in)); in manager_llmnr_ipv4_tcp_fd() 386 r = bind(s, &sa.sa, sizeof(sa.in)); in manager_llmnr_ipv4_tcp_fd() 410 union sockaddr_union sa = { in manager_llmnr_ipv6_tcp_fd() local [all …]
|
D | resolved-dns-stream.c | 107 r = getsockname(s->fd, &s->local.sa, &s->local_salen); in dns_stream_identify() 110 if (s->local.sa.sa_family == AF_INET6 && s->ifindex <= 0) in dns_stream_identify() 115 r = getpeername(s->fd, &s->peer.sa, &s->peer_salen); in dns_stream_identify() 118 if (s->peer.sa.sa_family == AF_INET6 && s->ifindex <= 0) in dns_stream_identify() 122 assert(s->peer.sa.sa_family == s->local.sa.sa_family); in dns_stream_identify() 123 assert(IN_SET(s->peer.sa.sa_family, AF_INET, AF_INET6)); in dns_stream_identify() 127 if (s->peer.sa.sa_family == AF_INET) { in dns_stream_identify() 131 } else if (s->peer.sa.sa_family == AF_INET6) { in dns_stream_identify() 145 assert(s->peer.sa.sa_family == AF_INET6); in dns_stream_identify() 163 assert(s->peer.sa.sa_family == AF_INET); in dns_stream_identify() [all …]
|
D | resolved-dns-scope.c | 355 union sockaddr_union sa; in dns_scope_socket() local 369 sa = (union sockaddr_union) { in dns_scope_socket() 374 salen = sizeof(sa.in); in dns_scope_socket() 377 sa = (union sockaddr_union) { in dns_scope_socket() 383 salen = sizeof(sa.in6); in dns_scope_socket() 396 sa = (union sockaddr_union) { in dns_scope_socket() 401 salen = sizeof(sa.in); in dns_scope_socket() 404 sa = (union sockaddr_union) { in dns_scope_socket() 410 salen = sizeof(sa.in6); in dns_scope_socket() 417 fd = socket(sa.sa.sa_family, type|SOCK_CLOEXEC|SOCK_NONBLOCK, 0); in dns_scope_socket() [all …]
|
D | resolved-mdns.c | 438 union sockaddr_union sa = { in manager_mdns_ipv4_fd() local 481 r = bind(s, &sa.sa, sizeof(sa.in)); in manager_mdns_ipv4_fd() 493 r = bind(s, &sa.sa, sizeof(sa.in)); in manager_mdns_ipv4_fd() 513 union sockaddr_union sa = { in manager_mdns_ipv6_fd() local 556 r = bind(s, &sa.sa, sizeof(sa.in6)); in manager_mdns_ipv6_fd() 568 r = bind(s, &sa.sa, sizeof(sa.in6)); in manager_mdns_ipv6_fd()
|
D | resolved-manager.c | 753 union sockaddr_union sa; in manager_recv() local 756 .msg_name = &sa.sa, in manager_recv() 757 .msg_namelen = sizeof(sa), in manager_recv() 794 p->family = sa.sa.sa_family; in manager_recv() 797 p->sender.in = sa.in.sin_addr; in manager_recv() 798 p->sender_port = be16toh(sa.in.sin_port); in manager_recv() 800 p->sender.in6 = sa.in6.sin6_addr; in manager_recv() 801 p->sender_port = be16toh(sa.in6.sin6_port); in manager_recv() 802 p->ifindex = sa.in6.sin6_scope_id; in manager_recv() 962 union sockaddr_union sa; in manager_ipv4_send() local [all …]
|
/systemd-251/src/network/netdev/ |
D | macsec.c | 23 static void security_association_clear(SecurityAssociation *sa) { in security_association_clear() argument 24 if (!sa) in security_association_clear() 27 explicit_bzero_safe(sa->key, sa->key_len); in security_association_clear() 28 free(sa->key); in security_association_clear() 29 free(sa->key_file); in security_association_clear() 32 static void security_association_init(SecurityAssociation *sa) { in security_association_init() argument 33 assert(sa); in security_association_init() 35 sa->activate = -1; in security_association_init() 36 sa->use_for_encoding = -1; in security_association_init() 47 security_association_clear(&c->sa); in macsec_receive_association_free() [all …]
|
/systemd-251/src/test/ |
D | test-socket-util.c | 422 static const union sockaddr_union sa = { .un.sun_family = AF_UNIX }; in TEST() local 439 assert_se(bind(listen_stream, &sa.sa, sizeof(sa_family_t)) >= 0); in TEST() 440 assert_se(bind(listen_dgram, &sa.sa, sizeof(sa_family_t)) >= 0); in TEST() 441 assert_se(bind(listen_seqpacket, &sa.sa, sizeof(sa_family_t)) >= 0); in TEST() 465 assert_se(getsockname(listen_stream, &lsa.sa, &l) >= 0); in TEST() 466 assert_se(connect(connect_stream, &lsa.sa, l) >= 0); in TEST() 469 assert_se(getsockname(listen_dgram, &lsa.sa, &l) >= 0); in TEST() 470 assert_se(connect(connect_dgram, &lsa.sa, l) >= 0); in TEST() 473 assert_se(getsockname(listen_seqpacket, &lsa.sa, &l) >= 0); in TEST() 474 assert_se(connect(connect_seqpacket, &lsa.sa, l) >= 0); in TEST() [all …]
|
/systemd-251/src/core/ |
D | crash-handler.c | 41 struct sigaction sa; in crash() local 56 sa = (struct sigaction) { in crash() 62 (void) sigaction(SIGCHLD, &sa, NULL); in crash() 70 sa = (struct sigaction) { in crash() 73 (void) sigaction(sig, &sa, NULL); in crash() 123 sa = (struct sigaction) { in crash() 129 (void) sigaction(SIGCHLD, &sa, NULL); in crash() 156 static const struct sigaction sa = { in install_crash_handler() local 163 r = sigaction_many(&sa, SIGNALS_CRASH_HANDLER); in install_crash_handler()
|
/systemd-251/src/shared/ |
D | local-addresses.c | 395 union sockaddr_union sa; in local_outbounds() local 405 sa.in = (struct sockaddr_in) { in local_outbounds() 415 sa.in6 = (struct sockaddr_in6) { in local_outbounds() 453 if (connect(fd, &sa.sa, SOCKADDR_LEN(sa)) < 0) in local_outbounds() 458 salen = SOCKADDR_LEN(sa); in local_outbounds() 459 if (getsockname(fd, &sa.sa, &salen) < 0) in local_outbounds() 461 assert(sa.sa.sa_family == gateways[i].family); in local_outbounds() 462 assert(salen == SOCKADDR_LEN(sa)); in local_outbounds() 467 if (in4_addr_is_null(&sa.in.sin_addr)) /* Auto-binding didn't work. :-( */ in local_outbounds() 476 .address.in = sa.in.sin_addr, in local_outbounds() [all …]
|
D | resolve-util.c | 32 bool dns_server_address_valid(int family, const union in_addr_union *sa) { in dns_server_address_valid() argument 36 if (!in_addr_is_set(family, sa)) in dns_server_address_valid() 39 … if (family == AF_INET && IN_SET(be32toh(sa->in.s_addr), INADDR_DNS_STUB, INADDR_DNS_PROXY_STUB)) in dns_server_address_valid()
|
/systemd-251/po/ |
D | sk.po | 29 "Vyžaduje sa overenie totožnosti na odoslanie zadaného hesla späť do systému." 38 "Vyžaduje sa overenie totožnosti na správu systémových služieb alebo iných " 48 "Vyžaduje sa overenie totožnosti na správu systémovej služby alebo súborov " 62 "Vyžaduje sa overenie totožnosti na nastavenie alebo zrušenie nastavenia " 72 "Vyžaduje sa overenie totožnosti na znovu načítanie stavu systému systemd." 83 "Vyžaduje sa overenie totožnosti na znovu načítanie stavu systému systemd." 94 "Vyžaduje sa overenie totožnosti na znovu načítanie stavu systému systemd." 105 msgstr "Vyžaduje sa overenie totožnosti na nastavenie názvu hostiteľa." 115 msgstr "Vyžaduje sa overenie totožnosti na uspanie systému." 125 msgstr "Vyžaduje sa overenie totožnosti na uspanie systému." [all …]
|
/systemd-251/src/journal/ |
D | journald-audit.c | 418 const union sockaddr_union *sa, in server_process_audit_message() argument 431 if (!sa || in server_process_audit_message() 433 sa->nl.nl_family != AF_NETLINK || in server_process_audit_message() 434 sa->nl.nl_pid != 0) { in server_process_audit_message() 476 union sockaddr_union sa = { in enable_audit() local 487 .msg_name = &sa.sa, in enable_audit() 488 .msg_namelen = sizeof(sa.nl), in enable_audit() 509 static const union sockaddr_union sa = { in server_open_audit() local 525 if (bind(s->audit_fd, &sa.sa, sizeof(sa.nl)) < 0) { in server_open_audit()
|
D | journald-syslog.c | 35 union sockaddr_union sa; in forward_syslog_iovec() local 51 r = sockaddr_un_set_path(&sa.un, j); in forward_syslog_iovec() 57 msghdr.msg_name = &sa.sa; in forward_syslog_iovec() 460 union sockaddr_union sa; in server_open_syslog_socket() local 463 r = sockaddr_un_set_path(&sa.un, syslog_socket); in server_open_syslog_socket() 472 (void) sockaddr_un_unlink(&sa.un); in server_open_syslog_socket() 474 r = bind(s->syslog_fd, &sa.sa, sa_len); in server_open_syslog_socket() 476 return log_error_errno(errno, "bind(%s) failed: %m", sa.un.sun_path); in server_open_syslog_socket() 478 (void) chmod(sa.un.sun_path, 0666); in server_open_syslog_socket()
|
D | journald-native.c | 460 union sockaddr_union sa; in server_open_native_socket() local 463 r = sockaddr_un_set_path(&sa.un, native_socket); in server_open_native_socket() 472 (void) sockaddr_un_unlink(&sa.un); in server_open_native_socket() 474 r = bind(s->native_fd, &sa.sa, sa_len); in server_open_native_socket() 476 return log_error_errno(errno, "bind(%s) failed: %m", sa.un.sun_path); in server_open_native_socket() 478 (void) chmod(sa.un.sun_path, 0666); in server_open_native_socket()
|
/systemd-251/src/libsystemd/sd-resolve/ |
D | test-resolve.c | 65 union sockaddr_union sa = { in main() local 83 sa.in.sin_addr.s_addr = inet_addr(argc >= 3 ? argv[2] : "193.99.144.71"); in main() 84 …r = sd_resolve_getnameinfo(resolve, &q2, &sa.sa, SOCKADDR_LEN(sa), 0, SD_RESOLVE_GET_BOTH, getname… in main()
|
D | resolve-private.h | 13 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, \
|
/systemd-251/src/cgroups-agent/ |
D | cgroups-agent.c | 11 static const union sockaddr_union sa = { in main() local 35 n = sendto(fd, argv[1], l, 0, &sa.sa, SOCKADDR_UN_LEN(sa.un)); in main()
|
/systemd-251/src/libsystemd-network/ |
D | icmp6-util.c | 154 union sockaddr_union sa = {}; in icmp6_receive() local 156 .msg_name = &sa.sa, in icmp6_receive() 157 .msg_namelen = sizeof(sa), in icmp6_receive() 178 sa.in6.sin6_family == AF_INET6) { in icmp6_receive() 180 addr = sa.in6.sin6_addr; in icmp6_receive()
|
/systemd-251/src/libsystemd/sd-daemon/ |
D | sd-daemon.c | 250 if (getsockname(fd, &sockaddr.sa, &l) < 0) in sd_is_socket() 256 return sockaddr.sa.sa_family == family; in sd_is_socket() 274 if (getsockname(fd, &sockaddr.sa, &l) < 0) in sd_is_socket_inet() 280 if (!IN_SET(sockaddr.sa.sa_family, AF_INET, AF_INET6)) in sd_is_socket_inet() 284 if (sockaddr.sa.sa_family != family) in sd_is_socket_inet() 290 r = sockaddr_port(&sockaddr.sa, &sa_port); in sd_is_socket_inet() 314 if (getsockname(fd, &sockaddr.sa, &l) < 0) in sd_is_socket_sockaddr() 320 if (sockaddr.sa.sa_family != addr->sa_family) in sd_is_socket_sockaddr() 323 if (sockaddr.sa.sa_family == AF_INET) { in sd_is_socket_sockaddr() 369 if (getsockname(fd, &sockaddr.sa, &l) < 0) in sd_is_socket_unix() [all …]
|
/systemd-251/src/reply-password/ |
D | reply-password.c | 19 union sockaddr_union sa = {}; in send_on_socket() local 26 salen = sockaddr_un_set_path(&sa.un, socket_name); in send_on_socket() 30 if (sendto(fd, packet, size, MSG_NOSIGNAL, &sa.sa, salen) < 0) in send_on_socket()
|
/systemd-251/catalog/ |
D | systemd.hu.catalog.in | 113 Subject: A rendszer indítása kész 122 A kernel indítása @KERNEL_USEC@ ezredmásodpercet igényelt. 124 A kiinduló RAM lemez indítása @INITRD_USEC@ ezredmásodpercet igényelt. 126 A felhasználói programok indítása @USERSPACE_USEC@ ezredmásodpercet igényelt. 143 Subject: Rendszer leállítása kezdeményezve 147 A systemd leállítása kezdeményezve. A leállítás megkezdődött, minden 151 Subject: A(z) @UNIT@ egység indítása megkezdődött 206 Subject: A folyamat végrehajtása sikertelen: @EXECUTABLE@ 210 A folyamat végrehajtása sikertelen volt, és hibát jelzett: @EXECUTABLE@.
|