Home
last modified time | relevance | path

Searched refs:dst_prefixlen (Results 1 – 12 of 12) sorted by relevance

/systemd-251/src/network/
Dtest-network.c69 assert_se(routes[0].dst_prefixlen == 16); in test_deserialize_dhcp_routes()
73 assert_se(routes[1].dst_prefixlen == 24); in test_deserialize_dhcp_routes()
77 assert_se(routes[2].dst_prefixlen == 0); in test_deserialize_dhcp_routes()
90 assert_se(routes[0].dst_prefixlen == 16); in test_deserialize_dhcp_routes()
94 assert_se(routes[1].dst_prefixlen == 0); in test_deserialize_dhcp_routes()
Dnetworkd-route-util.c50 if (route->dst_prefixlen != 0) in link_find_default_gateway()
126 if (!in_addr_is_set(route->family, &route->dst) && route->dst_prefixlen == 0) in gateway_is_ready()
128 if (in_addr_prefix_covers(family, &route->dst, route->dst_prefixlen, gw) > 0) in gateway_is_ready()
176 if (in_addr_prefix_covers(family, &route->dst, route->dst_prefixlen, address) <= 0) in link_address_is_reachable_internal()
Dnetworkd-dhcp4.c285 route->dst_prefixlen = in4_addr_netmask_to_prefixlen(&netmask); in dhcp4_request_prefix_route()
310 route->dst_prefixlen = 32; in dhcp4_request_route_to_gateway()
347 … IPV4_ADDRESS_FMT_VAL(route->dst.in), route->dst_prefixlen, IPV4_ADDRESS_FMT_VAL(*gw)); in dhcp4_request_route_auto()
358 … IPV4_ADDRESS_FMT_VAL(route->dst.in), route->dst_prefixlen, IPV4_ADDRESS_FMT_VAL(*gw)); in dhcp4_request_route_auto()
365 } else if (route->dst_prefixlen >= prefixlen && in dhcp4_request_route_auto()
370 IPV4_ADDRESS_FMT_VAL(route->dst.in), route->dst_prefixlen, in dhcp4_request_route_auto()
383 IPV4_ADDRESS_FMT_VAL(route->dst.in), route->dst_prefixlen, in dhcp4_request_route_auto()
500 r = sd_dhcp_route_get_destination_prefix_length(routes[i], &route->dst_prefixlen); in dhcp4_request_static_routes()
508 in4_addr_is_null(&route->dst.in) && route->dst_prefixlen == 0 && in dhcp4_request_static_routes()
646 route->dst_prefixlen = 32; in dhcp4_request_routes_to_servers()
Dnetworkd-route.c121 siphash24_compress(&route->dst_prefixlen, sizeof(route->dst_prefixlen), state); in route_hash_func()
165 r = CMP(a->dst_prefixlen, b->dst_prefixlen); in route_compare_func()
561 if (in_addr_is_set(route->family, &route->dst) || route->dst_prefixlen > 0) in log_route_debug()
562 … (void) in_addr_prefix_to_string(route->family, &route->dst, route->dst_prefixlen, &dst); in log_route_debug()
633 if (route->dst_prefixlen > 0) { in route_set_netlink_message()
638 r = sd_rtnl_message_route_set_dst_prefixlen(req, route->dst_prefixlen); in route_set_netlink_message()
865 route->dst_prefixlen == 8 && in route_by_kernel()
1750 r = sd_rtnl_message_route_get_dst_prefixlen(message, &tmp->dst_prefixlen); in manager_rtnl_process_route()
1905 n->dst_prefixlen = 16; in network_add_ipv4ll_route()
2105 prefixlen = &n->dst_prefixlen; in config_parse_destination()
Dnetworkd-route.h41 unsigned char dst_prefixlen; member
Dnetworkd-dhcp-prefix-delegation.c326 route->dst_prefixlen = 64; in dhcp_pd_request_route()
633 .prefixlen = route->dst_prefixlen, in dhcp_pd_prefix_lost()
725 route->dst_prefixlen = prefixlen; in dhcp_request_unreachable_route()
Dnetworkd-ndisc.c527 route->dst_prefixlen = prefixlen; in ndisc_router_process_onlink_prefix()
668 route->dst_prefixlen = prefixlen; in ndisc_router_process_route()
Dnetworkd-json.c300 … JSON_BUILD_PAIR_UNSIGNED("DestinationPrefixLength", route->dst_prefixlen), in route_build_json()
/systemd-251/src/libsystemd-network/
Ddhcp-lease-internal.h18 unsigned char dst_prefixlen; member
Dnetwork-internal.c210 routes[size].dst_prefixlen = (uint8_t) n; in deserialize_dhcp_routes()
Dsd-dhcp-lease.c519 .dst_prefixlen = prefixlen, in lease_parse_static_routes()
564 .dst_prefixlen = prefixlen, in lease_parse_classless_routes()
1496 *length = route->dst_prefixlen; in sd_dhcp_route_get_destination_prefix_length()
/systemd-251/src/network/netdev/
Dwireguard.c1167 route->dst_prefixlen = ipmask->cidr; in wireguard_verify()