Lines Matching refs:lease
321 static void lease_count_cb(struct net_if *iface, struct dhcpv4_addr_slot *lease, in lease_count_cb() argument
326 switch (lease->state) { in lease_count_cb()
372 struct dhcpv4_addr_slot *lease, in get_reserved_cb() argument
377 if (lease->state == DHCPV4_SERVER_ADDR_RESERVED) { in get_reserved_cb()
378 reserved->s_addr = lease->addr.s_addr; in get_reserved_cb()
579 struct dhcpv4_addr_slot *lease, in reserved_address_cb() argument
584 zassert_equal(lease->state, DHCPV4_SERVER_ADDR_RESERVED, in reserved_address_cb()
586 zassert_equal(reserved->s_addr, lease->addr.s_addr, in reserved_address_cb()
771 struct dhcpv4_addr_slot *lease, in allocated_address_cb() argument
776 zassert_equal(lease->state, DHCPV4_SERVER_ADDR_ALLOCATED, in allocated_address_cb()
778 zassert_equal(allocated->s_addr, lease->addr.s_addr, in allocated_address_cb()
856 struct dhcpv4_addr_slot *lease, in declined_address_cb() argument
861 zassert_equal(lease->state, DHCPV4_SERVER_ADDR_DECLINED, in declined_address_cb()
863 zassert_equal(declined->s_addr, lease->addr.s_addr, in declined_address_cb()
937 struct dhcpv4_addr_slot *lease, in after_probe_address_cb() argument
940 if (lease->state == DHCPV4_SERVER_ADDR_DECLINED) { in after_probe_address_cb()
941 zassert_equal(test_ctx.declined_ip.s_addr, lease->addr.s_addr, in after_probe_address_cb()
945 if (lease->state == DHCPV4_SERVER_ADDR_RESERVED) { in after_probe_address_cb()
946 zassert_equal(test_ctx.assigned_ip.s_addr, lease->addr.s_addr, in after_probe_address_cb()