/systemd/src/network/ |
H A D | networkd-ipv4ll.c | 28 _cleanup_route_free_ Route *route = NULL; local 56 r = route_new(&route); 58 log_link_error_errno(link, r, "Could not allocate route: %m"); 62 route->family = AF_INET; 63 route->scope = RT_SCOPE_LINK; 64 route->priority = IPV4LL_ROUTE_METRIC; 66 route_remove(route, link, &link_route_remove_handler); 82 log_link_error_errno(link, r, "could not set ipv4ll route: %m"); 118 _cleanup_route_free_ Route *route = NULL; local 150 r = route_new(&route); [all...] |
H A D | networkd-ndisc.c | 39 log_link_error_errno(link, r, "Could not set NDisc route or address: %m"); 105 _cleanup_route_free_ Route *route = NULL; local 116 r = route_new(&route); 118 log_link_error_errno(link, r, "Could not allocate route: %m"); 124 route->family = AF_INET6; 125 route->table = RT_TABLE_MAIN; 126 route->protocol = RTPROT_RA; 127 route->flags = RTM_F_PREFIX; 128 route->dst.in6 = *prefix; 129 route 143 _cleanup_route_free_ Route *route = NULL; local [all...] |
H A D | networkd-dhcp4.c | 41 log_link_error_errno(link, r, "Could not set DHCPv4 route: %m"); 67 _cleanup_route_free_ Route *route = NULL; local 74 r = route_new(&route); 76 return log_link_error_errno(link, r, "Could not allocate route: %m"); 78 route->protocol = RTPROT_DHCP; 82 return log_link_error_errno(link, r, "Could not allocate route: %m"); 85 * route for the gw host so that we can route no matter the 86 * netmask or existing kernel route tables. */ 97 return log_link_warning_errno(link, r, "Could not set host route 123 _cleanup_route_free_ Route *route = NULL; local 166 _cleanup_route_free_ Route *route = NULL; local 187 _cleanup_route_free_ Route *route = NULL; local [all...] |
H A D | networkd-route.c | 24 #include "networkd-route.h" 32 _cleanup_route_free_ Route *route = NULL; local 34 route = new0(Route, 1); 35 if (!route) 38 route->family = AF_UNSPEC; 39 route->scope = RT_SCOPE_UNIVERSE; 40 route->protocol = RTPROT_UNSPEC; 41 route->table = RT_TABLE_DEFAULT; 42 route->lifetime = USEC_INFINITY; 44 *ret = route; 51 _cleanup_route_free_ Route *route = NULL; local 86 route_free(Route *route) argument 109 const Route *route = b; local 184 Route route = { local 220 _cleanup_route_free_ Route *route = NULL; local 273 Route *route; local 304 route_update(Route *route, union in_addr_union *src, unsigned char src_prefixlen, union in_addr_union *gw, union in_addr_union *prefsrc, unsigned char scope, unsigned char protocol) argument 326 route_drop(Route *route) argument 332 route_remove(Route *route, Link *link, sd_netlink_message_handler_t callback) argument 415 Route *route = userdata; local 427 route_configure(Route *route, Link *link, sd_netlink_message_handler_t callback) argument [all...] |
H A D | networkd-network.c | 43 Route *route; local 163 LIST_FOREACH(routes, route, network->static_routes) { 164 if (!route->family) { 210 Route *route; local 248 while ((route = network->static_routes)) 249 route_free(route); 367 Route *route; local 369 r = route_new_static(network, 0, &route); 373 r = inet_pton(AF_INET, "169.254.0.0", &route->dst.in); 379 route [all...] |
H A D | networkd-manager.c | 291 Route *route = NULL; local 301 log_warning_errno(r, "rtnl: failed to receive route: %m"); 311 log_warning("rtnl: received unexpected message type when processing route"); 317 log_debug("rtnl: received route without ifindex, ignoring"); 320 log_warning_errno(r, "rtnl: could not get ifindex from route, ignoring: %m"); 323 log_warning("rtnl: received route message with invalid ifindex, ignoring: %d", ifindex); 329 * get the route again, so just ignore it */ 331 log_warning("rtnl: received route for nonexistent link (%d), ignoring", ifindex); 344 log_warning_errno(r, "rtnl: could not get route protocol: %m"); 352 log_link_warning_errno(link, r, "rtnl: received route withou 1237 sd_netlink_message *route; local [all...] |
H A D | networkd-link.c | 655 log_link_warning_errno(link, r, "Could not set route: %m"); 709 log_link_warning_errno(link, r, "Could not drop route: %m"); 2006 Route *route; local 2020 SET_FOREACH(route, link->routes_foreign, i) { 2022 if (route->protocol == RTPROT_KERNEL) 2025 r = route_remove(route, link, link_address_remove_handler); 2334 Route *route; local 2345 log_link_debug_errno(link, r, "Failed to extract next route string: %m"); 2353 log_link_debug(link, "Failed to parse route %s", route_str); 2369 log_link_debug_errno(link, r, "Failed to parse route destinatio 2697 Route *route; local [all...] |
/systemd/src/libsystemd-network/ |
H A D | sd-dhcp-lease.c | 438 struct sd_dhcp_route *route = *routes + *routes_size; local 441 r = in_addr_default_prefixlen((struct in_addr*) option, &route->dst_prefixlen); 448 route->dst_addr = inet_makeaddr(inet_netof(addr), 0); 451 assert_se(lease_parse_be32(option, 4, &route->gw_addr.s_addr) >= 0); 478 struct sd_dhcp_route *route; local 483 route = *routes + *routes_size; 486 route->dst_prefixlen = *option; 494 route->dst_addr.s_addr = 0; 495 memcpy(&route->dst_addr.s_addr, option, dst_octets); 502 assert_se(lease_parse_be32(option, 4, &route 1156 sd_dhcp_route_get_destination(sd_dhcp_route *route, struct in_addr *destination) argument 1164 sd_dhcp_route_get_destination_prefix_length(sd_dhcp_route *route, uint8_t *length) argument 1172 sd_dhcp_route_get_gateway(sd_dhcp_route *route, struct in_addr *gateway) argument [all...] |