diff options
author | Filip Tehlar <ftehlar@cisco.com> | 2020-08-19 07:54:08 +0000 |
---|---|---|
committer | Andrew Yourtchenko <ayourtch@gmail.com> | 2020-08-20 13:40:16 +0000 |
commit | 9c4d10c7aede6c549d5c6d56404fe182bd75d0ec (patch) | |
tree | f7491a96edb5c3e8ba9c2fedf7763287c1f5ce16 | |
parent | fcb03a0ea5930a4188f1659ade84269196e3abf6 (diff) |
ikev2: use remote proposals when installing tunnel
Type: fix
Change-Id: Ia1556aa854fa83fb5340308c4eec868b7b4f8351
Signed-off-by: Filip Tehlar <ftehlar@cisco.com>
-rw-r--r-- | src/plugins/ikev2/ikev2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/ikev2/ikev2.c b/src/plugins/ikev2/ikev2.c index 5ae1c0c24d0..cc45d14b56f 100644 --- a/src/plugins/ikev2/ikev2.c +++ b/src/plugins/ikev2/ikev2.c @@ -1498,7 +1498,7 @@ ikev2_create_tunnel_interface (vnet_main_t * vnm, ikev2_sa_t * sa, { a.local_ip.ip4.as_u32 = sa->iaddr.as_u32; a.remote_ip.ip4.as_u32 = sa->raddr.as_u32; - proposals = child->i_proposals; + proposals = child->r_proposals; a.local_spi = child->r_proposals[0].spi; a.remote_spi = child->i_proposals[0].spi; } @@ -1506,7 +1506,7 @@ ikev2_create_tunnel_interface (vnet_main_t * vnm, ikev2_sa_t * sa, { a.local_ip.ip4.as_u32 = sa->raddr.as_u32; a.remote_ip.ip4.as_u32 = sa->iaddr.as_u32; - proposals = child->r_proposals; + proposals = child->i_proposals; a.local_spi = child->i_proposals[0].spi; a.remote_spi = child->r_proposals[0].spi; } |