ikev2: fix msgid 36/30936/2
authorFilip Tehlar <ftehlar@cisco.com>
Tue, 26 Jan 2021 15:08:25 +0000 (15:08 +0000)
committerBeno�t Ganne <bganne@cisco.com>
Thu, 4 Feb 2021 18:05:47 +0000 (18:05 +0000)
Type: fix

In responder initialize msgid in requests to 1 as the previous value (0) was
causing retransmision on the initiator.

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

index 9b13991..8bb3277 100644 (file)
@@ -3103,6 +3103,7 @@ ikev2_node_internal (vlib_main_t *vm, vlib_node_runtime_t *node,
                  sa0->stats.n_sa_auth_req++;
                  stats->n_sa_auth_req++;
                  ike0->flags = IKEV2_HDR_FLAG_RESPONSE;
+                 sa0->last_init_msg_id = 1;
                  slen =
                    ikev2_generate_message (b0, sa0, ike0, 0, udp0, stats);
                  if (~0 == slen)