Home
last modified time | relevance | path

Searched refs:local_address (Results 1 – 16 of 16) sorted by relevance

/systemd-251/src/shared/
Dlocal-addresses.c14 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 …]
Dlocal-addresses.h8 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/
Dresolved-dns-synthesize.c138 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/
Dtest-nss-hosts.c354 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()
Dtest-local-addresses.c11 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/
Ddhcp6-network.c20 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()
Dsd-dhcp6-client.c84 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()
Ddhcp6-internal.h38 struct in6_addr local_address; member
Dfuzz-dhcp6-client.c19 int dhcp6_network_bind_udp_socket(int index, struct in6_addr *local_address) { in dhcp6_network_bind_udp_socket() argument
Dtest-dhcp6-client.c57 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/
Dnss-myhostname.c38 _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/
Dl2tp-tunnel.c95 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/
Dmachine-dbus.c208 _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/
Dsd-dhcp6-client.h207 const struct in6_addr *local_address);
/systemd-251/src/nspawn/
Dnspawn-expose-ports.c116 _cleanup_free_ struct local_address *addresses = NULL; in expose_port_execute()
/systemd-251/src/network/
Dnetworkctl.c1031 _cleanup_free_ struct local_address *local = NULL; in dump_gateways()
1076 _cleanup_free_ struct local_address *local = NULL; in dump_addresses()