Lines Matching refs:lease

437         _cleanup_(sd_dhcp6_lease_unrefp) sd_dhcp6_lease *lease = NULL;  in TEST()
443 …6_lease_new_from_message(client, (const DHCP6Message*) msg, sizeof(msg), NULL, NULL, &lease) >= 0); in TEST()
756 sd_dhcp6_lease *lease; in test_lease_common() local
763 assert_se(sd_dhcp6_client_get_lease(client, &lease) >= 0); in test_lease_common()
765 assert_se(dhcp6_lease_get_clientid(lease, &id, &len) >= 0); in test_lease_common()
768 assert_se(sd_dhcp6_lease_get_domains(lease, &strv) == 1); in test_lease_common()
772 assert_se(sd_dhcp6_lease_get_fqdn(lease, &str) >= 0); in test_lease_common()
775 assert_se(sd_dhcp6_lease_get_dns(lease, &addrs) == 2); in test_lease_common()
779 assert_se(sd_dhcp6_lease_get_ntp_addrs(lease, &addrs) == 2); in test_lease_common()
783 assert_se(sd_dhcp6_lease_get_ntp_fqdn(lease, &strv) == 1); in test_lease_common()
787 assert_se(lease->sntp_count == 2); in test_lease_common()
788 assert_se(in6_addr_equal(&lease->sntp[0], &sntp1)); in test_lease_common()
789 assert_se(in6_addr_equal(&lease->sntp[1], &sntp2)); in test_lease_common()
793 sd_dhcp6_lease *lease; in test_lease_managed() local
799 assert_se(sd_dhcp6_client_get_lease(client, &lease) >= 0); in test_lease_managed()
801 assert_se(dhcp6_lease_get_serverid(lease, &id, &len) >= 0); in test_lease_managed()
804 sd_dhcp6_lease_reset_address_iter(lease); in test_lease_managed()
805 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref, &lt_valid) >= 0); in test_lease_managed()
809 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref, &lt_valid) >= 0); in test_lease_managed()
813 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref, &lt_valid) == -ENODATA); in test_lease_managed()
815 sd_dhcp6_lease_reset_address_iter(lease); in test_lease_managed()
816 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref, &lt_valid) >= 0); in test_lease_managed()
820 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref, &lt_valid) >= 0); in test_lease_managed()
824 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref, &lt_valid) == -ENODATA); in test_lease_managed()
826 sd_dhcp6_lease_reset_pd_prefix_iter(lease); in test_lease_managed()
827 assert_se(sd_dhcp6_lease_get_pd(lease, &addr, &prefixlen, &lt_pref, &lt_valid) >= 0); in test_lease_managed()
832 assert_se(sd_dhcp6_lease_get_pd(lease, &addr, &prefixlen, &lt_pref, &lt_valid) >= 0); in test_lease_managed()
837 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref, &lt_valid) == -ENODATA); in test_lease_managed()
839 sd_dhcp6_lease_reset_pd_prefix_iter(lease); in test_lease_managed()
840 assert_se(sd_dhcp6_lease_get_pd(lease, &addr, &prefixlen, &lt_pref, &lt_valid) >= 0); in test_lease_managed()
845 assert_se(sd_dhcp6_lease_get_pd(lease, &addr, &prefixlen, &lt_pref, &lt_valid) >= 0); in test_lease_managed()
850 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref, &lt_valid) == -ENODATA); in test_lease_managed()
898 sd_dhcp6_lease *lease; in test_client_callback() local
907 assert_se(sd_dhcp6_client_get_lease(client, &lease) >= 0); in test_client_callback()
908 assert_se(dhcp6_lease_get_preference(lease, &preference) >= 0); in test_client_callback()