Home
last modified time | relevance | path

Searched refs:prefsrc (Results 1 – 7 of 7) sorted by relevance

/systemd-251/src/network/
Dnetworkd-route-util.c157 const union in_addr_union *prefsrc, /* optional */ in link_address_is_reachable_internal() argument
179 if (prefsrc && in link_address_is_reachable_internal()
180 in_addr_is_set(family, prefsrc) && in link_address_is_reachable_internal()
181 in_addr_is_set(family, &route->prefsrc) && in link_address_is_reachable_internal()
182 !in_addr_equal(family, prefsrc, &route->prefsrc)) in link_address_is_reachable_internal()
204 const union in_addr_union *prefsrc, /* optional */ in link_address_is_reachable() argument
218 r = link_address_is_reachable_internal(link, family, address, prefsrc, &route); in link_address_is_reachable()
222 if (!in_addr_is_set(route->family, &route->prefsrc)) { in link_address_is_reachable()
228 r = link_get_address(link, route->family, &route->prefsrc, 0, &a); in link_address_is_reachable()
245 const union in_addr_union *prefsrc, /* optional */ in manager_address_is_reachable() argument
[all …]
Dnetworkd-route-util.h23 const union in_addr_union *prefsrc, /* optional */
30 const union in_addr_union *prefsrc, /* optional */
Dnetworkd-route.c133 siphash24_compress(&route->prefsrc, FAMILY_ADDRESS_SIZE(route->family), state); in route_hash_func()
195 r = memcmp(&a->prefsrc, &b->prefsrc, FAMILY_ADDRESS_SIZE(a->family)); in route_compare_func()
547 … _cleanup_free_ char *state = NULL, *dst = NULL, *src = NULL, *gw_alloc = NULL, *prefsrc = NULL, in log_route_debug() local
591 if (in_addr_is_set(route->family, &route->prefsrc)) in log_route_debug()
592 (void) in_addr_to_string(route->family, &route->prefsrc, &prefsrc); in log_route_debug()
602 strna(dst), strna(src), strna(gw), strna(prefsrc), in log_route_debug()
653 if (in_addr_is_set(route->family, &route->prefsrc)) { in route_set_netlink_message()
654 … r = netlink_message_append_in_addr_union(req, RTA_PREFSRC, route->family, &route->prefsrc); in route_set_netlink_message()
1282 if (in_addr_is_set(route->family, &route->prefsrc) > 0) { in route_is_ready_to_configure()
1283 … r = manager_has_address(link->manager, route->family, &route->prefsrc, route->family == AF_INET6); in route_is_ready_to_configure()
[all …]
Dnetworkd-dhcp4.c286 route->prefsrc.in = address; in dhcp4_request_prefix_route()
311 route->prefsrc.in = address; in dhcp4_request_route_to_gateway()
352 route->prefsrc = IN_ADDR_NULL; in dhcp4_request_route_auto()
363 route->prefsrc.in = address; in dhcp4_request_route_auto()
377 route->prefsrc.in = address; in dhcp4_request_route_auto()
395 route->prefsrc.in = address; in dhcp4_request_route_auto()
570 route->prefsrc.in = address; in dhcp4_request_gateway()
Dnetworkd-route.h68 union in_addr_union prefsrc; member
Dnetworkd-json.c305 … JSON_BUILD_PAIR_IN_ADDR_NON_NULL("PreferredSource", &route->prefsrc, route->family), in route_build_json()
Dnetworkd-address.c793 if (in_addr_equal(address->family, &address->in_addr, &route->prefsrc)) in link_address_is_dynamic()