diff options
| author | Cy Schubert <cy@FreeBSD.org> | 2022-09-29 14:14:11 +0000 |
|---|---|---|
| committer | Cy Schubert <cy@FreeBSD.org> | 2022-09-29 14:14:11 +0000 |
| commit | 0dde6f4f8e604df8c6fbdab8b4aadb5ddf80c76f (patch) | |
| tree | 83c686c2b95a7045dd0a33836a68de8354ce34cb /services/mesh.h | |
| parent | 9b76d32f2310b735dbeb896cbf2776cad61f23e8 (diff) | |
Diffstat (limited to 'services/mesh.h')
| -rw-r--r-- | services/mesh.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/services/mesh.h b/services/mesh.h index 3be9b63faedd..25121a67b3a5 100644 --- a/services/mesh.h +++ b/services/mesh.h @@ -685,4 +685,15 @@ struct dns_msg* mesh_serve_expired_lookup(struct module_qstate* qstate, struct query_info* lookup_qinfo); +/** + * See if the mesh has space for more queries. You can allocate queries + * anyway, but this checks for the allocated space. + * @param mesh: mesh area. + * @return true if the query list is full. + * It checks the number of all queries, not just number of reply states, + * that have a client address. So that spawned queries count too, + * that were created by the iterator, or other modules. + */ +int mesh_jostle_exceeded(struct mesh_area* mesh); + #endif /* SERVICES_MESH_H */ |
