kernel-interface: Make first reqid configurable

This can be helpful to reserve low reqids for manual configuration.

Signed-off-by: Thomas Egerer <[email protected]>
This commit is contained in:
Thomas Egerer
2022-10-05 10:28:05 +02:00
committed by Tobias Brunner
parent 27da024a5d
commit 4ea61dcbfe
3 changed files with 20 additions and 5 deletions
+2 -1
View File
@@ -147,7 +147,8 @@ struct kernel_interface_t {
* @param if_id_out outbound interface ID on SA
* @param label security label (usually the one on the policy, not SA)
* @param reqid allocated reqid
* @return SUCCESS if reqid allocated
* @return SUCCESS if reqid allocated, OUT_OF_RES if no reqid is
* available due to an overflow
*/
status_t (*alloc_reqid)(kernel_interface_t *this,
linked_list_t *local_ts, linked_list_t *remote_ts,