Lines Matching refs:lease

31 #include "dhcp6-lease-internal.h"
206 _cleanup_(sd_dhcp6_lease_unrefp) sd_dhcp6_lease *lease = NULL;
223 assert_se(dhcp6_lease_new(&lease) >= 0);
254 &lease->ia) >= 0);
262 assert_se(dhcp6_lease_set_serverid(lease, optval,
270 assert_se(dhcp6_lease_set_preference(lease,
281 assert_se(dhcp6_lease_set_dns(lease, optval,
287 assert_se(dhcp6_lease_set_domains(lease, optval,
293 assert_se(dhcp6_lease_set_sntp(lease, optval,
307 sd_dhcp6_lease_reset_address_iter(lease);
308 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref,
313 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref,
316 sd_dhcp6_lease_reset_address_iter(lease);
317 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref,
320 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref,
322 sd_dhcp6_lease_reset_address_iter(lease);
323 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref,
326 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref,
329 assert_se(dhcp6_lease_get_serverid(lease, &opt, &len) >= 0);
333 assert_se(dhcp6_lease_get_preference(lease, &preference) >= 0);
336 r = sd_dhcp6_lease_get_dns(lease, &addrs);
340 r = sd_dhcp6_lease_get_domains(lease, &domains);
345 r = sd_dhcp6_lease_get_ntp_addrs(lease, &addrs);
361 sd_dhcp6_lease *lease;
368 assert_se(sd_dhcp6_client_get_lease(client, &lease) >= 0);
370 assert_se(sd_dhcp6_lease_get_domains(lease, &domains) == 1);
374 assert_se(sd_dhcp6_lease_get_dns(lease, &addrs) == 1);
377 assert_se(sd_dhcp6_lease_get_ntp_addrs(lease, &addrs) == 1);
408 _cleanup_(sd_dhcp6_lease_unrefp) sd_dhcp6_lease *lease = NULL;
421 assert_se(dhcp6_lease_new(&lease) >= 0);
450 optcode, &lease->ia));
477 sd_dhcp6_lease_reset_address_iter(lease);
478 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref,
484 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref,
560 sd_dhcp6_lease *lease;
568 assert_se(sd_dhcp6_client_get_lease(client, &lease) >= 0);
570 assert_se(sd_dhcp6_lease_get_domains(lease, &domains) == 1);
574 assert_se(sd_dhcp6_lease_get_dns(lease, &addrs) == 1);
577 assert_se(sd_dhcp6_lease_get_ntp_addrs(lease, &addrs) == 1);
599 _cleanup_(sd_dhcp6_lease_unrefp) sd_dhcp6_lease *lease = NULL;
610 assert_se(dhcp6_lease_new(&lease) >= 0);
647 sd_dhcp6_lease_reset_address_iter(lease);
649 assert_se(sd_dhcp6_lease_get_address(lease, &addr, &lt_pref,