Lines Matching refs:pd_prefix_len
64 uint8_t pd_prefix_len; in dhcp6_lease_has_pd_prefix() local
71 …return sd_dhcp6_lease_get_pd(lease, &pd_prefix, &pd_prefix_len, &lifetime_preferred_sec, &lifetime… in dhcp6_lease_has_pd_prefix()
123 …d_subnet_prefix(Link *link, const struct in6_addr *pd_prefix, uint8_t pd_prefix_len, struct in6_ad… in dhcp_pd_get_assigned_subnet_prefix() argument
138 … if (in6_addr_prefix_covers(pd_prefix, pd_prefix_len, &address->in_addr.in6) <= 0) 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()
436 uint8_t pd_prefix_len, in dhcp_pd_calculate_subnet_prefix() argument
443 assert(pd_prefix_len <= 64); in dhcp_pd_calculate_subnet_prefix()
446 if (subnet_id >= UINT64_C(1) << (64 - pd_prefix_len)) in dhcp_pd_calculate_subnet_prefix()
451 if (pd_prefix_len < 32) in dhcp_pd_calculate_subnet_prefix()
463 uint8_t pd_prefix_len, in dhcp_pd_get_preferred_subnet_prefix() argument
478 …r = dhcp_pd_calculate_subnet_prefix(pd_prefix, pd_prefix_len, link->network->dhcp_pd_subnet_id, &p… in dhcp_pd_get_preferred_subnet_prefix()
482 … link->network->dhcp_pd_subnet_id, UINT64_C(1) << (64 - pd_prefix_len)); in dhcp_pd_get_preferred_subnet_prefix()
488 if (dhcp_pd_get_assigned_subnet_prefix(link, pd_prefix, pd_prefix_len, ret) >= 0) in dhcp_pd_get_preferred_subnet_prefix()
495 r = dhcp_pd_calculate_subnet_prefix(pd_prefix, pd_prefix_len, n, &prefix); in dhcp_pd_get_preferred_subnet_prefix()
522 uint8_t pd_prefix_len, in dhcp_pd_assign_subnet_prefix() argument
535 r = dhcp_pd_get_preferred_subnet_prefix(link, pd_prefix, pd_prefix_len, &prefix); in dhcp_pd_assign_subnet_prefix()
1056 uint8_t pd_prefix_len; in dhcp6_pd_assign_subnet_prefixes() local
1058 r = sd_dhcp6_lease_get_pd(uplink->dhcp6_lease, &pd_prefix, &pd_prefix_len, in dhcp6_pd_assign_subnet_prefixes()
1063 if (pd_prefix_len > 64) in dhcp6_pd_assign_subnet_prefixes()
1067 r = in6_addr_mask(&pd_prefix, pd_prefix_len); in dhcp6_pd_assign_subnet_prefixes()
1074 r = dhcp_pd_assign_subnet_prefix(link, &pd_prefix, pd_prefix_len, in dhcp6_pd_assign_subnet_prefixes()
1106 uint8_t pd_prefix_len; in dhcp6_pd_prefix_acquired() local
1108 r = sd_dhcp6_lease_get_pd(uplink->dhcp6_lease, &pd_prefix, &pd_prefix_len, in dhcp6_pd_prefix_acquired()
1114 r = in6_addr_mask(&pd_prefix, pd_prefix_len); in dhcp6_pd_prefix_acquired()
1120 r = dhcp_pd_prefix_add(uplink, &pd_prefix, pd_prefix_len); in dhcp6_pd_prefix_acquired()
1124 …r = dhcp6_request_unreachable_route(uplink, &pd_prefix, pd_prefix_len, lifetime_valid_usec, &serve… in dhcp6_pd_prefix_acquired()