]> git.ipfire.org Git - thirdparty/strongswan.git/commit
kernel-interface: Use reqid as sole key in hash table
authorTobias Brunner <tobias@strongswan.org>
Mon, 2 Oct 2023 11:59:23 +0000 (13:59 +0200)
committerTobias Brunner <tobias@strongswan.org>
Mon, 13 Nov 2023 11:02:11 +0000 (12:02 +0100)
commit90cf0078e1aea32c650ad0cba13619c0bc845d1b
tree27890fab14de04d7e47193a52b7176a79e0bc63d
parent04c17ab56a6a00a60cf2ac0becbbc29a7eff22bb
kernel-interface: Use reqid as sole key in hash table

Every reqid is allocated once, we don't store the same reqid with e.g.
different marks or interface IDs that would make it necessary to make
them part of the key in that table (that's different in the other table).

To preserve the current behavior, that is, allocating a new reqid if e.g.
the marks are different, the additional selector values (which will
result in an additional policy in the Linux kernel) are compared after
the initial lookup.
src/libcharon/kernel/kernel_interface.c