/systemd-251/src/resolve/ |
D | resolved-dns-synthesize.c | 171 int af, const union in_addr_union *match) { in answer_add_addresses_ptr() argument 183 if (af != AF_UNSPEC) { in answer_add_addresses_ptr() 185 if (addresses[j].family != af) in answer_add_addresses_ptr() 188 if (match && !in_addr_equal(af, match, &addresses[j].address)) in answer_add_addresses_ptr() 212 int n = 0, af; in synthesize_system_hostname_rr() local 218 af = dns_type_to_af(key->type); in synthesize_system_hostname_rr() 219 if (af >= 0) { in synthesize_system_hostname_rr() 220 n = local_addresses(m->rtnl, ifindex, af, &addresses); in synthesize_system_hostname_rr() 230 if (IN_SET(af, AF_INET, AF_UNSPEC)) in synthesize_system_hostname_rr() 237 if (IN_SET(af, AF_INET6, AF_UNSPEC) && socket_ipv6_is_enabled()) in synthesize_system_hostname_rr() [all …]
|
D | test-dnssec-complex.c | 75 const char *af; in test_hostname_lookup() local 78 af = family == AF_UNSPEC ? "AF_UNSPEC" : af_to_name(family); in test_hostname_lookup() 101 log_info("[OK] %s/%s resulted in <%s>.", name, af, error.name); in test_hostname_lookup() 104 log_info("[OK] %s/%s succeeded.", name, af); in test_hostname_lookup()
|
/systemd-251/src/nss-myhostname/ |
D | nss-myhostname.c | 180 int af, in fill_in_hostent() argument 195 assert(IN_SET(af, AF_INET, AF_INET6)); in fill_in_hostent() 203 alen = FAMILY_ADDRESS_SIZE(af); in fill_in_hostent() 206 if (af == a->family) in fill_in_hostent() 215 (c > 0 ? c : af == AF_INET ? 1 : socket_ipv6_is_enabled()) * ALIGN(alen) + in fill_in_hostent() 216 … (c > 0 ? c+1 : af == AF_INET ? 2 : (unsigned) socket_ipv6_is_enabled() + 1) * sizeof(char*); in fill_in_hostent() 253 if (af != a->family) in fill_in_hostent() 263 } else if (af == AF_INET) { in fill_in_hostent() 282 } else if (af == AF_INET || socket_ipv6_is_enabled()) { in fill_in_hostent() 296 result->h_addrtype = af; in fill_in_hostent() [all …]
|
/systemd-251/src/nspawn/ |
D | nspawn-expose-ports.c | 85 int expose_port_flush(FirewallContext **fw_ctx, ExposePort* l, int af, union in_addr_union *exposed… in expose_port_flush() argument 93 if (!in_addr_is_set(af, exposed)) in expose_port_flush() 101 af, in expose_port_flush() 108 log_warning_errno(r, "Failed to modify %s firewall: %m", af_to_name(af)); in expose_port_flush() 115 int expose_port_execute(sd_netlink *rtnl, FirewallContext **fw_ctx, ExposePort *l, int af, union in… in expose_port_execute() argument 129 r = local_addresses(rtnl, 0, af, &addresses); in expose_port_execute() 134 addresses[0].family == af && in expose_port_execute() 138 return expose_port_flush(fw_ctx, l, af, exposed); in expose_port_execute() 141 if (in_addr_equal(af, exposed, &new_exposed)) in expose_port_execute() 146 in_addr_to_string(af, &new_exposed, &pretty); in expose_port_execute() [all …]
|
D | nspawn-expose-ports.h | 26 int expose_port_execute(sd_netlink *rtnl, FirewallContext **fw_ctx, ExposePort *l, int af, union in… 27 int expose_port_flush(FirewallContext **fw_ctx, ExposePort* l, int af, union in_addr_union *exposed…
|
/systemd-251/src/basic/ |
D | socket-util.h | 308 int socket_set_recvpktinfo(int fd, int af, bool b); 309 int socket_set_unicast_if(int fd, int af, int ifi); 311 int socket_set_option(int fd, int af, int opt_ipv4, int opt_ipv6, int val); 312 static inline int socket_set_recverr(int fd, int af, bool b) { in socket_set_recverr() argument 313 return socket_set_option(fd, af, IP_RECVERR, IPV6_RECVERR, b); in socket_set_recverr() 315 static inline int socket_set_recvttl(int fd, int af, bool b) { in socket_set_recvttl() argument 316 return socket_set_option(fd, af, IP_RECVTTL, IPV6_RECVHOPLIMIT, b); in socket_set_recvttl() 318 static inline int socket_set_ttl(int fd, int af, int ttl) { in socket_set_ttl() argument 319 return socket_set_option(fd, af, IP_TTL, IPV6_UNICAST_HOPS, ttl); in socket_set_ttl() 321 static inline int socket_set_freebind(int fd, int af, bool b) { in socket_set_freebind() argument [all …]
|
D | sysctl-util.c | 79 int sysctl_write_ip_property(int af, const char *ifname, const char *property, const char *value) { in sysctl_write_ip_property() argument 85 if (!IN_SET(af, AF_INET, AF_INET6)) in sysctl_write_ip_property() 92 p = strjoina("net/", af_to_ipv4_ipv6(af), "/conf/", ifname, "/", property); in sysctl_write_ip_property() 94 p = strjoina("net/", af_to_ipv4_ipv6(af), "/", property); in sysctl_write_ip_property() 120 int sysctl_read_ip_property(int af, const char *ifname, const char *property, char **ret) { in sysctl_read_ip_property() argument 125 if (!IN_SET(af, AF_INET, AF_INET6)) in sysctl_read_ip_property() 132 p = strjoina("net/", af_to_ipv4_ipv6(af), "/conf/", ifname, "/", property); in sysctl_read_ip_property() 134 p = strjoina("net/", af_to_ipv4_ipv6(af), "/", property); in sysctl_read_ip_property()
|
D | sysctl-util.h | 16 int sysctl_read_ip_property(int af, const char *ifname, const char *property, char **ret); 17 int sysctl_write_ip_property(int af, const char *ifname, const char *property, const char *value); 18 static inline int sysctl_write_ip_property_boolean(int af, const char *ifname, const char *property… in sysctl_write_ip_property_boolean() argument 19 return sysctl_write_ip_property(af, ifname, property, one_zero(value)); in sysctl_write_ip_property_boolean() 23 …static inline int sysctl_write_ip_property_##name(int af, const char *ifname, const char *property… 26 return sysctl_write_ip_property(af, ifname, property, buf); \
|
D | nss-util.h | 25 int af, \ 33 int af, \ 46 int af, \ 53 int af, \ 61 int af, \ 67 af, \ 105 int af, \ 111 af, \ 219 int af, 228 int af, [all …]
|
D | socket-util.c | 1313 int af; in socket_get_family() local 1314 socklen_t sl = sizeof(af); in socket_get_family() 1316 if (getsockopt(fd, SOL_SOCKET, SO_DOMAIN, &af, &sl) < 0) in socket_get_family() 1319 if (sl != sizeof(af)) in socket_get_family() 1322 return af; in socket_get_family() 1325 int socket_set_recvpktinfo(int fd, int af, bool b) { in socket_set_recvpktinfo() argument 1328 if (af == AF_UNSPEC) { in socket_set_recvpktinfo() 1329 r = socket_get_family(fd, &af); in socket_set_recvpktinfo() 1334 switch (af) { in socket_set_recvpktinfo() 1353 int socket_set_unicast_if(int fd, int af, int ifi) { in socket_set_unicast_if() argument [all …]
|
D | af-list.c | 49 int af_from_ipv4_ipv6(const char *af) { in af_from_ipv4_ipv6() argument 50 return streq_ptr(af, "ipv4") ? AF_INET : in af_from_ipv4_ipv6() 51 streq_ptr(af, "ipv6") ? AF_INET6 : AF_UNSPEC; in af_from_ipv4_ipv6()
|
/systemd-251/src/nss-mymachines/ |
D | nss-mymachines.c | 38 static int count_addresses(sd_bus_message *m, int af, unsigned *ret) { in count_addresses() argument 60 if (af != AF_UNSPEC && family != af) in count_addresses() 242 int af, in _nss_mymachines_gethostbyname3_r() argument 266 if (af == AF_UNSPEC) in _nss_mymachines_gethostbyname3_r() 267 af = AF_INET; in _nss_mymachines_gethostbyname3_r() 269 if (af != AF_INET && af != AF_INET6) { in _nss_mymachines_gethostbyname3_r() 299 r = count_addresses(reply, af, &c); in _nss_mymachines_gethostbyname3_r() 308 alen = FAMILY_ADDRESS_SIZE(af); in _nss_mymachines_gethostbyname3_r() 349 if (family != af) in _nss_mymachines_gethostbyname3_r() 380 result->h_addrtype = af; in _nss_mymachines_gethostbyname3_r()
|
/systemd-251/src/shared/ |
D | local-addresses.c | 64 int af, in local_addresses() argument 82 r = sd_rtnl_message_new_addr(rtnl, &req, RTM_GETADDR, ifindex, af); in local_addresses() 119 if (af != AF_UNSPEC && af != family) in local_addresses() 182 int af, in add_local_gateway() argument 191 if (af != AF_UNSPEC && af != via->family) in add_local_gateway() 210 int af, in local_gateways() argument 227 r = sd_rtnl_message_new_route(rtnl, &req, RTM_GETROUTE, af, RTPROT_UNSPEC); in local_gateways() 312 r = add_local_gateway(&list, &n_list, af, ifi, metric, &via); in local_gateways() 326 r = add_local_gateway(&list, &n_list, af, ifi, metric, &via); in local_gateways() 348 … r = add_local_gateway(&list, &n_list, af, ifi, metric, &mr->gateway); in local_gateways() [all …]
|
D | firewall-util-nft.c | 854 int af, in fw_nftables_add_masquerade_internal() argument 865 if (af == AF_INET6 && source_prefixlen < 8) in fw_nftables_add_masquerade_internal() 873 …r = sd_nfnl_nft_message_new_setelems_begin(ctx->nfnl, &transaction[tsize], af, NFT_SYSTEMD_TABLE_N… in fw_nftables_add_masquerade_internal() 875 …r = sd_nfnl_nft_message_del_setelems_begin(ctx->nfnl, &transaction[tsize], af, NFT_SYSTEMD_TABLE_N… in fw_nftables_add_masquerade_internal() 879 if (af == AF_INET) in fw_nftables_add_masquerade_internal() 904 int af, in fw_nftables_add_masquerade() argument 910 if (!socket_ipv6_is_supported() && af == AF_INET6) in fw_nftables_add_masquerade() 913 r = fw_nftables_add_masquerade_internal(ctx, add, af, source, source_prefixlen); in fw_nftables_add_masquerade() 934 r = fw_nftables_init_family(ctx->nfnl, af); in fw_nftables_add_masquerade() 938 return fw_nftables_add_masquerade_internal(ctx, add, af, source, source_prefixlen); in fw_nftables_add_masquerade() [all …]
|
D | firewall-util.c | 73 int af, in fw_add_masquerade() argument 90 return fw_iptables_add_masquerade(add, af, source, source_prefixlen); in fw_add_masquerade() 93 return fw_nftables_add_masquerade(*ctx, add, af, source, source_prefixlen); in fw_add_masquerade() 102 int af, in fw_add_local_dnat() argument 122 …return fw_iptables_add_local_dnat(add, af, protocol, local_port, remote, remote_port, previous_rem… in fw_add_local_dnat() 125 …return fw_nftables_add_local_dnat(*ctx, add, af, protocol, local_port, remote, remote_port, previo… in fw_add_local_dnat()
|
D | parse-helpers.c | 65 int af; in parse_af_token() local 70 af = af_from_ipv4_ipv6(token); in parse_af_token() 71 if (af == AF_UNSPEC) in parse_af_token() 74 *family = af; in parse_af_token() 145 int af = AF_UNSPEC, proto = 0, r; in parse_socket_bind_item() local 171 r = (*parser_ptr)(token, &af, &proto, &nr, &mn); in parse_socket_bind_item() 194 *address_family = af; in parse_socket_bind_item()
|
D | firewall-util-private.h | 34 int af, 41 int af, 53 int af, 59 int af,
|
D | local-addresses.h | 15 int local_addresses(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret); 17 int local_gateways(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret); 19 int local_outbounds(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret);
|
D | seccomp-util.c | 1471 int af = PTR_TO_INT(afp); in seccomp_restrict_address_families() local 1473 if (af <= 0 || af >= af_max()) in seccomp_restrict_address_families() 1476 if (first == 0 || af < first) in seccomp_restrict_address_families() 1477 first = af; in seccomp_restrict_address_families() 1479 if (last == 0 || af > last) in seccomp_restrict_address_families() 1480 last = af; in seccomp_restrict_address_families() 1525 for (int af = 1; af < af_max(); af++) { in seccomp_restrict_address_families() local 1527 if (set_contains(address_families, INT_TO_PTR(af))) in seccomp_restrict_address_families() 1535 SCMP_A0(SCMP_CMP_EQ, af)); in seccomp_restrict_address_families() 1546 void *af; in seccomp_restrict_address_families() local [all …]
|
D | gpt.h | 14 #define GPT_ROOT_ARM64 SD_ID128_MAKE(b9,21,b0,45,1d,f0,41,c3,af,44,4c,6f,28,0d,3f,ae) 15 #define GPT_ROOT_IA64 SD_ID128_MAKE(99,3d,8d,3d,f8,0e,42,25,85,5a,9d,af,8e,d7,ea,97) 37 #define GPT_USR_PPC SD_ID128_MAKE(7d,14,fe,c5,cc,71,41,5d,9d,6c,06,bf,0b,3c,3e,af) 38 #define GPT_USR_PPC64 SD_ID128_MAKE(2c,97,39,e2,f0,68,46,b3,9f,d0,01,c5,a9,af,bc,ca) 39 #define GPT_USR_PPC64_LE SD_ID128_MAKE(15,bb,03,af,77,e7,4d,4a,b1,2b,c0,d0,84,f7,49,1c) 40 #define GPT_USR_RISCV32 SD_ID128_MAKE(b9,33,fb,22,5c,3f,4f,91,af,90,e2,bb,0f,a5,07,02) 51 #define GPT_ROOT_ARC_VERITY SD_ID128_MAKE(24,b2,d9,75,0f,97,45,21,af,a1,cd,53,1e,42,1b,8d) 55 #define GPT_ROOT_LOONGARCH64_VERITY SD_ID128_MAKE(f3,39,3b,22,e9,af,46,13,a9,48,9d,3b,fb,d0,c5,35) 97 …fine GPT_ROOT_PPC64_VERITY_SIG SD_ID128_MAKE(f5,e2,c2,0c,45,b2,4f,fa,bc,e9,2a,60,73,7e,1a,af) 115 …fine GPT_USR_PPC64_VERITY_SIG SD_ID128_MAKE(0b,88,88,63,d7,f8,4d,9e,97,66,23,9f,ce,4d,58,af) [all …]
|
D | firewall-util.h | 19 int af, 26 int af,
|
/systemd-251/src/test/ |
D | test-nss-hosts.c | 153 static void test_gethostbyname3_r(void *handle, const char *module, const char *name, int af) { in test_gethostbyname3_r() argument 177 status = f(name, af, &host, buffer, sizeof buffer, &errno1, &errno2, &ttl, &canon); in test_gethostbyname3_r() 179 fname, name, af_to_string(af, family_name, sizeof family_name), in test_gethostbyname3_r() 188 static void test_gethostbyname2_r(void *handle, const char *module, const char *name, int af) { in test_gethostbyname2_r() argument 206 status = f(name, af, &host, buffer, sizeof buffer, &errno1, &errno2); in test_gethostbyname2_r() 208 fname, name, af_to_string(af, family_name, sizeof family_name), in test_gethostbyname2_r() 246 int af) { in test_gethostbyaddr2_r() argument 268 assert_se(in_addr_to_string(af, addr, &addr_pretty) >= 0); in test_gethostbyaddr2_r() 270 status = f(addr, len, af, &host, buffer, sizeof buffer, &errno1, &errno2, &ttl); in test_gethostbyaddr2_r() 284 int af) { in test_gethostbyaddr_r() argument [all …]
|
D | test-parse-helpers.c | 18 int af, ip_protocol; in test_valid_item() local 20 assert_se(parse_socket_bind_item(str, &af, &ip_protocol, &nr_ports, &port_min) >= 0); in test_valid_item() 21 assert_se(af == expected_af); in test_valid_item() 31 int af, ip_protocol; in test_invalid_item() local 33 assert_se(parse_socket_bind_item(str, &af, &ip_protocol, &nr_ports, &port_min) == -EINVAL); in test_invalid_item()
|
/systemd-251/src/nss-resolve/ |
D | nss-resolve.c | 379 int af, in _nss_resolve_gethostbyname3_r() argument 401 if (af == AF_UNSPEC) in _nss_resolve_gethostbyname3_r() 402 af = AF_INET; in _nss_resolve_gethostbyname3_r() 404 if (!IN_SET(af, AF_INET, AF_INET6)) { in _nss_resolve_gethostbyname3_r() 414 … JSON_BUILD_PAIR("family", JSON_BUILD_INTEGER(af)), in _nss_resolve_gethostbyname3_r() 458 size_t alen = FAMILY_ADDRESS_SIZE(af); in _nss_resolve_gethostbyname3_r() 491 if (q.family != af) in _nss_resolve_gethostbyname3_r() 518 result->h_addrtype = af; in _nss_resolve_gethostbyname3_r() 588 int af, in _nss_resolve_gethostbyaddr2_r() argument 609 if (!IN_SET(af, AF_INET, AF_INET6)) { in _nss_resolve_gethostbyaddr2_r() [all …]
|
/systemd-251/catalog/ |
D | systemd.da.catalog.in | 112 Subject: Opstart af systemet er nu fuldført 120 Opstart af kernel tog @KERNEL_USEC@ mikrosekunder. 122 Opstart af initrd tog @INITRD_USEC@ mikrosekunder. 124 Opstart af userspace tog @USERSPACE_USEC@ mikrosekunder. 188 Subject: Enhed @UNIT@ har påbegyndt genindlæsning af sin konfiguration 195 Subject: Enhed @UNIT@ har færdiggjort genindlæsning af sin konfiguration 219 implementationen ikke har kunnet følge med mængden af ventende beskeder.
|