ikev2: handoff packets 00/40400/8
authorStanislav Zaikin <[email protected]>
Fri, 8 Sep 2023 08:27:15 +0000 (10:27 +0200)
committerBeno�t Ganne <[email protected]>
Wed, 7 Aug 2024 12:07:13 +0000 (12:07 +0000)
commit0f2c6cd1ab5b5a627b78e4d7019d5f8a15a76613
tree14fce7d90a120ad01e4e04d9c61f6c4ff77d72a3
parent9aa833b144200e88a382f3583196533c95d5e68f
ikev2: handoff packets

current approach saves state in per-thread data structure. in
multi-worker + nat-t cases udp/500 and udp/4500 might be dispatched on
different workers. this patch adds hands off packet to 1 explicit thread
- 1st worker (or main thread in case there're no workers) or to thread
  that was explicitly set by user via configuration

Type: improvement

Change-Id: Ib5cd9a4b8612dfaa63b276035709524f7a492d4f
Signed-off-by: Stanislav Zaikin <[email protected]>
src/plugins/ikev2/CMakeLists.txt
src/plugins/ikev2/ikev2.api
src/plugins/ikev2/ikev2.c
src/plugins/ikev2/ikev2_api.c
src/plugins/ikev2/ikev2_handoff.c [new file with mode: 0644]
src/plugins/ikev2/ikev2_priv.h
test/test_ikev2.py