diff options
author | Stanislav Zaikin <zstaseg@gmail.com> | 2022-05-17 19:18:53 +0200 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2022-05-19 14:51:17 +0000 |
commit | bf95e3efde3402cf2f7beaf6d70433646cc68280 (patch) | |
tree | 68a2231dd063146e75e9edbe3b64aa1ff6e75eac /src | |
parent | 8b874fc6a8ca58d420edee870e9ba8ef6fe439ae (diff) |
ikev2: fix tunnel direction
Type: fix
Change-Id: I480b1fcace1c27a5cb2d2956cec80b379105b55d
Signed-off-by: Stanislav Zaikin <zstaseg@gmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/ikev2/ikev2.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/ikev2/ikev2.c b/src/plugins/ikev2/ikev2.c index b5211047242..84b62d2a11e 100644 --- a/src/plugins/ikev2/ikev2.c +++ b/src/plugins/ikev2/ikev2.c @@ -1910,8 +1910,8 @@ ikev2_add_tunnel_from_main (ikev2_add_ipsec_tunnel_args_t * a) .t_mode = TUNNEL_MODE_P2P, .t_table_id = 0, .t_hop_limit = 255, - .t_src = a->local_ip, - .t_dst = a->remote_ip, + .t_src = a->remote_ip, + .t_dst = a->local_ip, }; tunnel_t tun_out = { .t_flags = TUNNEL_FLAG_NONE, @@ -1920,8 +1920,8 @@ ikev2_add_tunnel_from_main (ikev2_add_ipsec_tunnel_args_t * a) .t_mode = TUNNEL_MODE_P2P, .t_table_id = 0, .t_hop_limit = 255, - .t_src = a->remote_ip, - .t_dst = a->local_ip, + .t_src = a->local_ip, + .t_dst = a->remote_ip, }; if (~0 == a->sw_if_index) |