/systemd-251/src/shared/ |
D | local-addresses.c | 14 static int address_compare(const struct local_address *a, const struct local_address *b) { in address_compare() 39 static void suppress_duplicates(struct local_address *list, size_t *n_list) { in suppress_duplicates() 65 struct local_address **ret) { in local_addresses() 69 _cleanup_free_ struct local_address *list = NULL; in local_addresses() 95 struct local_address *a; in local_addresses() 180 struct local_address **list, in add_local_gateway() 197 (*list)[(*n_list)++] = (struct local_address) { in add_local_gateway() 211 struct local_address **ret) { in local_gateways() 215 _cleanup_free_ struct local_address *list = NULL; in local_gateways() 368 struct local_address **ret) { in local_outbounds() [all …]
|
D | local-addresses.h | 8 struct local_address { struct 15 int local_addresses(sd_netlink *rtnl, int ifindex, int af, struct local_address **ret); argument 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);
|
/systemd-251/src/resolve/ |
D | resolved-dns-synthesize.c | 138 struct local_address *addresses, in answer_add_addresses_rr() 169 struct local_address *addresses, in answer_add_addresses_ptr() 211 _cleanup_free_ struct local_address *addresses = NULL; in synthesize_system_hostname_rr() 225 struct local_address buffer[2]; in synthesize_system_hostname_rr() 231 buffer[n++] = (struct local_address) { in synthesize_system_hostname_rr() 238 buffer[n++] = (struct local_address) { in synthesize_system_hostname_rr() 254 _cleanup_free_ struct local_address *addresses = NULL; in synthesize_system_hostname_ptr() 318 …int (*lookup)(sd_netlink *context, int ifindex, int af, struct local_address **ret), /* either loc… in synthesize_gateway_rr() 320 _cleanup_free_ struct local_address *addresses = NULL; in synthesize_gateway_rr() 359 _cleanup_free_ struct local_address *addresses = NULL; in synthesize_gateway_ptr()
|
/systemd-251/src/test/ |
D | test-nss-hosts.c | 354 static int make_addresses(struct local_address **addresses) { in make_addresses() 356 _cleanup_free_ struct local_address *addrs = NULL; in make_addresses() 364 addrs[n++] = (struct local_address) { .family = AF_INET, in make_addresses() 366 addrs[n++] = (struct local_address) { .family = AF_INET, in make_addresses() 368 addrs[n++] = (struct local_address) { .family = AF_INET6, in make_addresses() 376 struct local_address *addresses, in test_one_module() 401 struct local_address **the_addresses, int *n_addresses) { in parse_argv() 404 _cleanup_free_ struct local_address *addrs = NULL; in parse_argv() 445 addrs[n++] = (struct local_address) { .family = family, in parse_argv() 468 _cleanup_free_ struct local_address *addresses = NULL; in run()
|
D | test-local-addresses.c | 11 static void print_local_addresses(struct local_address *a, unsigned n) { in print_local_addresses() 23 struct local_address *a = NULL; in TEST()
|
/systemd-251/src/libsystemd-network/ |
D | dhcp6-network.c | 20 int dhcp6_network_bind_udp_socket(int ifindex, struct in6_addr *local_address) { in dhcp6_network_bind_udp_socket() argument 30 assert(local_address); in dhcp6_network_bind_udp_socket() 32 src.in6.sin6_addr = *local_address; in dhcp6_network_bind_udp_socket()
|
D | sd-dhcp6-client.c | 84 const struct in6_addr *local_address) { in sd_dhcp6_client_set_local_address() argument 88 assert_return(local_address, -EINVAL); in sd_dhcp6_client_set_local_address() 89 assert_return(in6_addr_is_link_local(local_address) > 0, -EINVAL); in sd_dhcp6_client_set_local_address() 91 client->local_address = *local_address; in sd_dhcp6_client_set_local_address() 1329 assert_return(in6_addr_is_link_local(&client->local_address) > 0, -EINVAL); in sd_dhcp6_client_start() 1346 r = dhcp6_network_bind_udp_socket(client->ifindex, &client->local_address); in sd_dhcp6_client_start() 1350 (void) in6_addr_to_string(&client->local_address, &p); in sd_dhcp6_client_start()
|
D | dhcp6-internal.h | 38 struct in6_addr local_address; member
|
D | fuzz-dhcp6-client.c | 19 int dhcp6_network_bind_udp_socket(int index, struct in6_addr *local_address) { in dhcp6_network_bind_udp_socket() argument
|
D | test-dhcp6-client.c | 57 static const struct in6_addr local_address = variable 960 assert_se(in6_addr_equal(a, &local_address)); in dhcp6_network_bind_udp_socket() 978 assert_se(sd_dhcp6_client_set_local_address(client, &local_address) >= 0); in TEST()
|
/systemd-251/src/nss-myhostname/ |
D | nss-myhostname.c | 38 _cleanup_free_ struct local_address *addresses = NULL; in _nss_myhostname_gethostbyname4_r() 141 struct local_address *a = addresses + i - 1; in _nss_myhostname_gethostbyname4_r() 181 struct local_address *addresses, unsigned n_addresses, in fill_in_hostent() 191 struct local_address *a; in fill_in_hostent() 323 _cleanup_free_ struct local_address *addresses = NULL; in _nss_myhostname_gethostbyname3_r() 420 _cleanup_free_ struct local_address *addresses = NULL; in _nss_myhostname_gethostbyaddr2_r() 423 struct local_address *a; in _nss_myhostname_gethostbyaddr2_r()
|
/systemd-251/src/network/netdev/ |
D | l2tp-tunnel.c | 95 static int netdev_l2tp_create_message_tunnel(NetDev *netdev, union in_addr_union *local_address, sd… in netdev_l2tp_create_message_tunnel() argument 102 assert(local_address); in netdev_l2tp_create_message_tunnel() 136 r = sd_netlink_message_append_in_addr(m, L2TP_ATTR_IP_SADDR, &local_address->in); in netdev_l2tp_create_message_tunnel() 144 r = sd_netlink_message_append_in6_addr(m, L2TP_ATTR_IP6_SADDR, &local_address->in6); in netdev_l2tp_create_message_tunnel() 437 union in_addr_union local_address; in l2tp_create_tunnel() local 444 r = l2tp_get_local_address(netdev, &local_address); in l2tp_create_tunnel() 451 (void) in_addr_to_string(t->family, &local_address, &str); in l2tp_create_tunnel() 455 r = netdev_l2tp_create_message_tunnel(netdev, &local_address, &m); in l2tp_create_tunnel()
|
/systemd-251/src/machine/ |
D | machine-dbus.c | 208 _cleanup_free_ struct local_address *addresses = NULL; in bus_machine_method_get_addresses() 209 struct local_address *a; in bus_machine_method_get_addresses() 269 _cleanup_free_ struct local_address *addresses = NULL; in bus_machine_method_get_addresses() 270 struct local_address *a; in bus_machine_method_get_addresses()
|
/systemd-251/src/systemd/ |
D | sd-dhcp6-client.h | 207 const struct in6_addr *local_address);
|
/systemd-251/src/nspawn/ |
D | nspawn-expose-ports.c | 116 _cleanup_free_ struct local_address *addresses = NULL; in expose_port_execute()
|
/systemd-251/src/network/ |
D | networkctl.c | 1031 _cleanup_free_ struct local_address *local = NULL; in dump_gateways() 1076 _cleanup_free_ struct local_address *local = NULL; in dump_addresses()
|