ikev2: fix lookup in wrong ip table 97/30597/2
authorFilip Tehlar <ftehlar@cisco.com>
Mon, 4 Jan 2021 14:03:53 +0000 (14:03 +0000)
committerBeno�t Ganne <bganne@cisco.com>
Fri, 8 Jan 2021 13:05:32 +0000 (13:05 +0000)
commited4b38e868c7cabb8e88cc0f1254c95a8f1c5939
tree3aef7ce8bbbb78a25d385b449f34e68d7774e983
parenta5a9efd4d1995ef6d46dfab4e5b8aba9c5d114ef
ikev2: fix lookup in wrong ip table

In responder mode we need to remember interface index from which IKE
session was initiated. Otherwise when sending keep alive packets to the
initiator, the default ip table is always used for lookup instead of the
one associated with the interface.

Type: fix

Change-Id: Iade3fc3a490b7ae83c3f6e9014d1f4204e476ac1
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
src/plugins/ikev2/ikev2.c