/systemd-251/src/network/ |
D | networkd-route.c | 25 _cleanup_(route_freep) Route *route = NULL; in route_new() 27 route = new(Route, 1); in route_new() 28 if (!route) in route_new() 31 *route = (Route) { in route_new() 44 *ret = TAKE_PTR(route); in route_new() 51 _cleanup_(route_freep) Route *route = NULL; in route_new_static() 63 route = hashmap_get(network->routes_by_section, n); in route_new_static() 64 if (route) { in route_new_static() 65 *ret = TAKE_PTR(route); in route_new_static() 72 r = route_new(&route); in route_new_static() [all …]
|
D | networkd-route-util.c | 41 Route *route; in link_find_default_gateway() local 45 SET_FOREACH(route, link->routes) { in link_find_default_gateway() 46 if (!route_exists(route)) in link_find_default_gateway() 48 if (family != AF_UNSPEC && route->family != family) in link_find_default_gateway() 50 if (route->dst_prefixlen != 0) in link_find_default_gateway() 52 if (route->src_prefixlen != 0) in link_find_default_gateway() 54 if (route->table != RT_TABLE_MAIN) in link_find_default_gateway() 56 if (route->type != RTN_UNICAST) in link_find_default_gateway() 58 if (route->scope != RT_SCOPE_UNIVERSE) in link_find_default_gateway() 60 if (!in_addr_is_set(route->gw_family, &route->gw)) in link_find_default_gateway() [all …]
|
D | networkd-dhcp4.c | 59 Route *route; in dhcp4_remove_address_and_routes() local 64 SET_FOREACH(route, link->routes) { in dhcp4_remove_address_and_routes() 65 if (route->source != NETWORK_CONFIG_SOURCE_DHCP4) in dhcp4_remove_address_and_routes() 67 if (only_marked && !route_is_marked(route)) in dhcp4_remove_address_and_routes() 70 k = route_remove(route); in dhcp4_remove_address_and_routes() 74 route_cancel_request(route, link); in dhcp4_remove_address_and_routes() 180 …p4_route_handler(sd_netlink *rtnl, sd_netlink_message *m, Request *req, Link *link, Route *route) { in dhcp4_route_handler() argument 220 _cleanup_(route_freep) Route *route = in; in dhcp4_request_route() 225 assert(route); in dhcp4_request_route() 233 route->source = NETWORK_CONFIG_SOURCE_DHCP4; in dhcp4_request_route() [all …]
|
D | networkd-ndisc.c | 86 Route *route; in ndisc_remove() local 91 SET_FOREACH(route, link->routes) { in ndisc_remove() 92 if (route->source != NETWORK_CONFIG_SOURCE_NDISC) in ndisc_remove() 94 if (!route_is_marked(route)) in ndisc_remove() 96 if (router && !in6_addr_equal(router, &route->provider.in6)) in ndisc_remove() 99 k = route_remove(route); in ndisc_remove() 103 route_cancel_request(route, link); in ndisc_remove() 206 …sc_route_handler(sd_netlink *rtnl, sd_netlink_message *m, Request *req, Link *link, Route *route) { in ndisc_route_handler() argument 223 _cleanup_(route_freep) Route *route = in; in ndisc_request_route() 228 assert(route); in ndisc_request_route() [all …]
|
D | networkd-dhcp-prefix-delegation.c | 150 Route *route; in dhcp_pd_get_assigned_subnet_prefix() local 152 SET_FOREACH(route, link->routes) { in dhcp_pd_get_assigned_subnet_prefix() 153 if (route->source != NETWORK_CONFIG_SOURCE_DHCP_PD) in dhcp_pd_get_assigned_subnet_prefix() 155 assert(route->family == AF_INET6); in dhcp_pd_get_assigned_subnet_prefix() 157 if (in6_addr_prefix_covers(pd_prefix, pd_prefix_len, &route->dst.in6) > 0) { in dhcp_pd_get_assigned_subnet_prefix() 159 *ret = route->dst.in6; in dhcp_pd_get_assigned_subnet_prefix() 181 Route *route; in dhcp_pd_remove() local 183 SET_FOREACH(route, link->routes) { in dhcp_pd_remove() 184 if (route->source != NETWORK_CONFIG_SOURCE_DHCP_PD) in dhcp_pd_remove() 186 if (only_marked && !route_is_marked(route)) in dhcp_pd_remove() [all …]
|
D | networkd-json.c | 264 static int route_build_json(Route *route, JsonVariant **ret) { in route_build_json() argument 270 assert(route); in route_build_json() 273 manager = route->link ? route->link->manager : route->manager; in route_build_json() 277 r = route_scope_to_string_alloc(route->scope, &scope); in route_build_json() 281 r = route_protocol_to_string_alloc(route->protocol, &protocol); in route_build_json() 285 r = manager_get_route_table_to_string(manager, route->table, &table); in route_build_json() 289 r = route_flags_to_string_alloc(route->flags, &flags); in route_build_json() 293 r = network_config_state_to_string_alloc(route->state, &state); in route_build_json() 298 JSON_BUILD_PAIR_INTEGER("Family", route->family), in route_build_json() 299 JSON_BUILD_PAIR_IN_ADDR("Destination", &route->dst, route->family), in route_build_json() [all …]
|
D | networkd-route.h | 23 Route *route); 81 Route *route_free(Route *route); 86 int route_remove(Route *route); 94 void route_cancel_request(Route *route, Link *link); 97 Route *route, 110 DEFINE_NETWORK_CONFIG_STATE_FUNCTIONS(Route, route);
|
D | networkd-dhcp6.c | 48 Route *route; in dhcp6_remove() local 56 SET_FOREACH(route, link->routes) { in dhcp6_remove() 57 if (route->source != NETWORK_CONFIG_SOURCE_DHCP6) in dhcp6_remove() 59 if (only_marked && !route_is_marked(route)) in dhcp6_remove() 62 k = route_remove(route); in dhcp6_remove() 66 route_cancel_request(route, link); in dhcp6_remove()
|
D | meson.build | 128 'networkd-route-util.c', 129 'networkd-route-util.h', 130 'networkd-route.c', 131 'networkd-route.h',
|
D | networkd-gperf.gperf | 11 #include "networkd-route-util.h"
|
D | networkd-address.c | 768 Route *route; in link_address_is_dynamic() local 779 SET_FOREACH(route, link->routes) { in link_address_is_dynamic() 780 if (route->source != NETWORK_CONFIG_SOURCE_FOREIGN) in link_address_is_dynamic() 784 if (!route_exists(route)) in link_address_is_dynamic() 787 if (route->protocol != RTPROT_DHCP) in link_address_is_dynamic() 790 if (address->family != route->family) in link_address_is_dynamic() 793 if (in_addr_equal(address->family, &address->in_addr, &route->prefsrc)) in link_address_is_dynamic()
|
D | networkd-network.c | 781 Route *route; in network_has_static_ipv6_configurations() local 792 HASHMAP_FOREACH(route, network->routes_by_section) in network_has_static_ipv6_configurations() 793 if (route->family == AF_INET6) in network_has_static_ipv6_configurations()
|
/systemd-251/src/network/generator/ |
D | network-generator.c | 111 static Route *route_free(Route *route) { in route_free() argument 112 if (!route) in route_free() 115 if (route->network) in route_free() 116 LIST_REMOVE(routes, route->network->routes, route); in route_free() 118 return mfree(route); in route_free() 123 Route *route; in route_new() local 127 route = new(Route, 1); in route_new() 128 if (!route) in route_new() 131 *route = (Route) { in route_new() 138 LIST_PREPEND(routes, network->routes, route); in route_new() [all …]
|
/systemd-251/src/network/netdev/ |
D | wireguard.c | 1159 _cleanup_(route_freep) Route *route = NULL; in wireguard_verify() 1161 r = route_new(&route); in wireguard_verify() 1165 route->family = ipmask->family; in wireguard_verify() 1166 route->dst = ipmask->ip; in wireguard_verify() 1167 route->dst_prefixlen = ipmask->cidr; in wireguard_verify() 1168 route->scope = RT_SCOPE_UNIVERSE; in wireguard_verify() 1169 route->protocol = RTPROT_STATIC; in wireguard_verify() 1170 route->table = peer->route_table_set ? peer->route_table : w->route_table; in wireguard_verify() 1171 … route->priority = peer->route_priority_set ? peer->route_priority : w->route_priority; in wireguard_verify() 1172 if (route->priority == 0 && route->family == AF_INET6) in wireguard_verify() [all …]
|
/systemd-251/src/systemd/ |
D | sd-dhcp-lease.h | 83 int sd_dhcp_route_get_destination(sd_dhcp_route *route, struct in_addr *destination); 84 int sd_dhcp_route_get_destination_prefix_length(sd_dhcp_route *route, uint8_t *length); 85 int sd_dhcp_route_get_gateway(sd_dhcp_route *route, struct in_addr *gateway);
|
/systemd-251/docs/ |
D | RESOLVED-VPNS.md | 84 3. The `default-route` boolean. This is a simple boolean value that may be set 135 domains.) This interface should also set `default-route` to false, to ensure 144 `default-route` for this interface is then irrelevant. This means: once the 149 `fritz.box`. The default `true` setting for `default-route` is good too. 168 the VPN contact point provided. And you set `default-route` to false. If you 173 value for `default-route` is actually irrelevant, but I'd set it to true. No 178 and do not disable `default-route`.) 190 the `default-route` boolean, all on the `org.freedesktop.resolve1.Manager` 197 `resolvectl default-route <iface> …` to set the `default-route` boolean. 202 resolvectl default-route corporate0 false [all …]
|
/systemd-251/shell-completion/zsh/ |
D | _resolvectl | 44 default-route:"Configure per-interface default-route setting" 48 domain:"Configure per-interface search and route-only domains"
|
/systemd-251/src/libsystemd-network/ |
D | sd-dhcp-lease.c | 1484 int sd_dhcp_route_get_destination(sd_dhcp_route *route, struct in_addr *destination) { in sd_dhcp_route_get_destination() argument 1485 assert_return(route, -EINVAL); in sd_dhcp_route_get_destination() 1488 *destination = route->dst_addr; in sd_dhcp_route_get_destination() 1492 int sd_dhcp_route_get_destination_prefix_length(sd_dhcp_route *route, uint8_t *length) { in sd_dhcp_route_get_destination_prefix_length() argument 1493 assert_return(route, -EINVAL); in sd_dhcp_route_get_destination_prefix_length() 1496 *length = route->dst_prefixlen; in sd_dhcp_route_get_destination_prefix_length() 1500 int sd_dhcp_route_get_gateway(sd_dhcp_route *route, struct in_addr *gateway) { in sd_dhcp_route_get_gateway() argument 1501 assert_return(route, -EINVAL); in sd_dhcp_route_get_gateway() 1504 *gateway = route->gw_addr; in sd_dhcp_route_get_gateway()
|
/systemd-251/units/ |
D | systemd-networkd.socket | 20 ListenNetlink=route 1361
|
/systemd-251/shell-completion/bash/ |
D | resolvectl | 48 [BOOLEAN]='default-route'
|
/systemd-251/po/ |
D | fr.po | 735 msgid "Set default route" 736 msgstr "Définir la route par défaut" 740 msgid "Authentication is required to set default route." 741 msgstr "Authentification requise pour définir la route par défaut."
|
D | be.po | 707 msgid "Set default route" 712 msgid "Authentication is required to set default route."
|
D | ka.po | 681 msgid "Set default route" 686 msgid "Authentication is required to set default route."
|
D | kab.po | 620 msgid "Set default route" 625 msgid "Authentication is required to set default route."
|
D | ru.po | 761 msgid "Set default route" 766 msgid "Authentication is required to set default route."
|