Change-Id: Ic206601413bb366e2a920daf00524e92a47287ef
Signed-off-by: Pavel Kotucek <pkotucek@cisco.com>
sa.crypto_key_len = mp->crypto_key_length;
clib_memcpy (&sa.crypto_key, mp->crypto_key, sizeof (sa.crypto_key));
/* check for unsupported integ-alg */
- if (mp->integrity_algorithm < IPSEC_INTEG_ALG_NONE ||
- mp->integrity_algorithm >= IPSEC_INTEG_N_ALG)
+ if (mp->integrity_algorithm >= IPSEC_INTEG_N_ALG)
{
clib_warning ("unsupported integ-alg: '%U'", format_ipsec_integ_alg,
mp->integrity_algorithm);
u32 i;
si0 = vec_elt_at_index (sm->interfaces, sw_if_index0);
- if (!si0)
- return;
if (is_rx != 0 && si0->num_rx_mirror_ports == 0)
return;