Lines Matching refs:pd_prefix
63 struct in6_addr pd_prefix; 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 static int dhcp_pd_get_assigned_subnet_prefix(Link *link, const struct in6_addr *pd_prefix, uint8_t… in dhcp_pd_get_assigned_subnet_prefix() argument
125 assert(pd_prefix); in dhcp_pd_get_assigned_subnet_prefix()
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()
435 const struct in6_addr *pd_prefix, in dhcp_pd_calculate_subnet_prefix() argument
442 assert(pd_prefix); in dhcp_pd_calculate_subnet_prefix()
449 prefix = *pd_prefix; in dhcp_pd_calculate_subnet_prefix()
462 const struct in6_addr *pd_prefix, in dhcp_pd_get_preferred_subnet_prefix() argument
473 assert(pd_prefix); in dhcp_pd_get_preferred_subnet_prefix()
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()
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()
521 const struct in6_addr *pd_prefix, in dhcp_pd_assign_subnet_prefix() argument
533 assert(pd_prefix); in dhcp_pd_assign_subnet_prefix()
535 r = dhcp_pd_get_preferred_subnet_prefix(link, pd_prefix, pd_prefix_len, &prefix); in dhcp_pd_assign_subnet_prefix()
850 struct in6_addr pd_prefix; in dhcp4_calculate_pd_prefix() local
858 pd_prefix = *sixrd_prefix; in dhcp4_calculate_pd_prefix()
861 … pd_prefix.s6_addr[(i + sixrd_prefixlen) / 8] |= 1 << (7 - (i + sixrd_prefixlen) % 8); in dhcp4_calculate_pd_prefix()
863 *ret_pd_prefix = pd_prefix; in dhcp4_calculate_pd_prefix()
870 struct in6_addr sixrd_prefix, pd_prefix; in dhcp4_pd_assign_subnet_prefix() local
895 …te_pd_prefix(&ipv4address, ipv4masklen, &sixrd_prefix, sixrd_prefixlen, &pd_prefix, &pd_prefixlen); in dhcp4_pd_assign_subnet_prefix()
910 …r = dhcp_pd_assign_subnet_prefix(link, &pd_prefix, pd_prefixlen, lifetime_usec, lifetime_usec, /* … in dhcp4_pd_assign_subnet_prefix()
941 struct in6_addr sixrd_prefix, pd_prefix; in dhcp4_pd_prefix_acquired() local
980 …te_pd_prefix(&ipv4address, ipv4masklen, &sixrd_prefix, sixrd_prefixlen, &pd_prefix, &pd_prefixlen); in dhcp4_pd_prefix_acquired()
983 r = dhcp_pd_prefix_add(uplink, &pd_prefix, pd_prefixlen); in dhcp4_pd_prefix_acquired()
988 …r = dhcp4_request_unreachable_route(uplink, &pd_prefix, pd_prefixlen, lifetime_usec, &server_addre… in dhcp4_pd_prefix_acquired()
1055 struct in6_addr pd_prefix; 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()
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()
1105 struct in6_addr pd_prefix; 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()