/systemd-251/src/network/ |
D | test-network.c | 54 _cleanup_free_ struct sd_dhcp_route *routes = NULL; in test_deserialize_dhcp_routes() local 55 assert_se(deserialize_dhcp_routes(&routes, &size, "") >= 0); in test_deserialize_dhcp_routes() 61 _cleanup_free_ struct sd_dhcp_route *routes = NULL; in test_deserialize_dhcp_routes() local 64 assert_se(deserialize_dhcp_routes(&routes, &size, routes_string) >= 0); in test_deserialize_dhcp_routes() 67 assert_se(routes[0].dst_addr.s_addr == inet_addr("192.168.0.0")); in test_deserialize_dhcp_routes() 68 assert_se(routes[0].gw_addr.s_addr == inet_addr("192.168.0.1")); in test_deserialize_dhcp_routes() 69 assert_se(routes[0].dst_prefixlen == 16); in test_deserialize_dhcp_routes() 71 assert_se(routes[1].dst_addr.s_addr == inet_addr("10.1.2.0")); in test_deserialize_dhcp_routes() 72 assert_se(routes[1].gw_addr.s_addr == inet_addr("10.1.2.1")); in test_deserialize_dhcp_routes() 73 assert_se(routes[1].dst_prefixlen == 24); in test_deserialize_dhcp_routes() [all …]
|
D | networkd-route.c | 101 set_remove(route->link->routes, route); in route_free() 104 set_remove(route->manager->routes, route); in route_free() 273 r = set_ensure_put(&manager->routes, &route_hash_ops, route); in route_add() 283 r = set_ensure_put(&link->routes, &route_hash_ops, route); in route_add() 304 route = set_get(manager->routes, in); in route_get() 309 route = set_get(link->routes, in); in route_get() 390 Route **routes; member 399 route_free(c->routes[i]); in converted_routes_free() 401 free(c->routes); in converted_routes_free() 411 _cleanup_free_ Route **routes = NULL; in converted_routes_new() local [all …]
|
D | networkd-route-util.c | 45 SET_FOREACH(route, link->routes) { in link_find_default_gateway() 121 SET_FOREACH(route, link->routes) { in gateway_is_ready() 166 SET_FOREACH(route, link->routes) { in link_address_is_reachable_internal()
|
D | networkd-dhcp4.c | 64 SET_FOREACH(route, link->routes) { in dhcp4_remove_address_and_routes() 405 sd_dhcp_route **routes; in dhcp4_request_static_routes() local 475 routes = classless_routes; in dhcp4_request_static_routes() 478 routes = static_routes; in dhcp4_request_static_routes() 492 r = sd_dhcp_route_get_gateway(routes[i], &gw); in dhcp4_request_static_routes() 496 r = sd_dhcp_route_get_destination(routes[i], &route->dst.in); in dhcp4_request_static_routes() 500 r = sd_dhcp_route_get_destination_prefix_length(routes[i], &route->dst_prefixlen); in dhcp4_request_static_routes()
|
D | networkd-json.c | 330 static int routes_build_json(Set *routes, JsonVariant **ret) { in routes_build_json() argument 338 if (set_isempty(routes)) { in routes_build_json() 343 elements = new(JsonVariant*, set_size(routes)); in routes_build_json() 347 SET_FOREACH(route, routes) { in routes_build_json() 1328 r = routes_build_json(link->routes, &w); in link_build_json() 1403 r = routes_build_json(manager->routes, &w); in manager_build_json()
|
D | networkd-manager.h | 80 Set *routes; member
|
D | networkd-link.h | 114 Set *routes; member
|
D | networkd-dhcp-prefix-delegation.c | 152 SET_FOREACH(route, link->routes) { in dhcp_pd_get_assigned_subnet_prefix() 183 SET_FOREACH(route, link->routes) { in dhcp_pd_remove() 623 SET_FOREACH(route, uplink->manager->routes) { in dhcp_pd_prefix_lost()
|
D | networkd-manager.c | 577 m->routes = set_free(m->routes); in manager_free()
|
D | networkd-dhcp6.c | 56 SET_FOREACH(route, link->routes) { in dhcp6_remove()
|
D | networkd-ndisc.c | 91 SET_FOREACH(route, link->routes) { in ndisc_remove()
|
D | networkd-link.c | 209 link->routes = set_free(link->routes); in link_free()
|
D | networkd-address.c | 779 SET_FOREACH(route, link->routes) { in link_address_is_dynamic()
|
/systemd-251/src/libsystemd-network/ |
D | network-internal.c | 137 void serialize_dhcp_routes(FILE *f, const char *key, sd_dhcp_route **routes, size_t size) { in serialize_dhcp_routes() argument 140 assert(routes); in serialize_dhcp_routes() 150 assert_se(sd_dhcp_route_get_destination(routes[i], &dest) >= 0); in serialize_dhcp_routes() 151 assert_se(sd_dhcp_route_get_gateway(routes[i], &gw) >= 0); in serialize_dhcp_routes() 152 assert_se(sd_dhcp_route_get_destination_prefix_length(routes[i], &length) >= 0); in serialize_dhcp_routes() 162 _cleanup_free_ struct sd_dhcp_route *routes = NULL; in deserialize_dhcp_routes() local 182 if (!GREEDY_REALLOC(routes, size + 1)) in deserialize_dhcp_routes() 193 r = inet_aton(tok, &routes[size].dst_addr); in deserialize_dhcp_routes() 210 routes[size].dst_prefixlen = (uint8_t) n; in deserialize_dhcp_routes() 214 r = inet_aton(tok, &routes[size].gw_addr); in deserialize_dhcp_routes() [all …]
|
D | sd-dhcp-lease.c | 218 static int dhcp_lease_get_routes(sd_dhcp_route *routes, size_t n_routes, sd_dhcp_route ***ret) { in dhcp_lease_get_routes() argument 219 assert(routes || n_routes == 0); in dhcp_lease_get_routes() 232 buf[i] = &routes[i]; in dhcp_lease_get_routes() 973 _cleanup_free_ sd_dhcp_route **routes = NULL; in dhcp_lease_save() local 1073 r = sd_dhcp_lease_get_static_routes(lease, &routes); in dhcp_lease_save() 1075 serialize_dhcp_routes(f, "STATIC_ROUTES", routes, r); in dhcp_lease_save() 1077 routes = mfree(routes); in dhcp_lease_save() 1078 r = sd_dhcp_lease_get_classless_routes(lease, &routes); in dhcp_lease_save() 1080 serialize_dhcp_routes(f, "CLASSLESS_ROUTES", routes, r); in dhcp_lease_save()
|
D | network-internal.h | 24 void serialize_dhcp_routes(FILE *f, const char *key, struct sd_dhcp_route **routes, size_t size);
|
/systemd-251/src/network/generator/ |
D | network-generator.h | 50 LIST_FIELDS(Route, routes); 73 LIST_HEAD(Route, routes);
|
D | network-generator.c | 116 LIST_REMOVE(routes, route->network->routes, route); in route_free() 138 LIST_PREPEND(routes, network->routes, route); in route_new() 164 while ((route = network->routes)) in network_free() 1062 LIST_FOREACH(routes, route, all->routes) { in context_merge_networks() 1178 LIST_FOREACH(routes, route, network->routes) in network_dump() local
|
/systemd-251/src/network/netdev/ |
D | wireguard.h | 65 Set *routes; member
|
D | wireguard.c | 1077 set_free(w->routes); in wireguard_done() 1176 r = set_ensure_consume(&w->routes, &route_hash_ops, TAKE_PTR(route)); in wireguard_verify()
|
/systemd-251/test/test-network/ |
D | systemd-networkd-tests.py | 442 def remove_routes(routes): argument 443 for route_type, addr in routes: 2148 … routes = [['blackhole', '202.54.1.2'], ['unreachable', '202.54.1.3'], ['prohibit', '202.54.1.4']] variable in NetworkdNetworkTests 2153 remove_routes(self.routes) 2161 remove_routes(self.routes) 4530 …for (routes, gateway, dns_and_ntp_routes, classless) in itertools.product([True, False], repeat=4): 4532 …with self.subTest(routes=routes, gateway=gateway, dns_and_ntp_routes=dns_and_ntp_routes, classless… 4533 … self._test_dhcp_client_ipv4_use_routes_gateway(routes, gateway, dns_and_ntp_routes, classless)
|
/systemd-251/ |
D | TODO | 410 * nspawn: optionally set up nftables/iptables routes that forward UDP/TCP 1837 …- dhcp: do we allow configuring dhcp routes on interfaces that are not the one we got the dhcp inf… 1846 for all routes to it. possibly a second default for DHCP routes.
|
D | NEWS | 14 routes to addresses specified in AllowedIPs= was added and enabled by 424 * The default scope for unicast routes configured through [Route] 999 * systemd-networkd will now automatically configure routes to addresses 1688 gained matching settings for their prefix routes. (The option of the 1704 connections towards the default routes. On multi-homed hosts this is 2990 locally defined, explicit routes to the gateway acquired via DHCP or 3372 enabled systemd-networkd manages all routes configured by other tools. 3463 which sets the route priority for routes specified by the DHCP server. 3934 * systemd-networkd gained support for configuring multi-path IP routes, 3942 MTU size to be used for routes generated from DHCPv4 leases. [all …]
|