ipsec: clear L4-cksum flags when decap'ing packets
[vpp.git] / src / vnet / ipsec / ah_decrypt.c
index f20f620..5f98693 100644 (file)
@@ -325,6 +325,8 @@ ah_decrypt_inline (vlib_main_t * vm,
        + pd->icv_padding_len;
       vlib_buffer_advance (b[0], pd->ip_hdr_size + ah_hdr_len);
       b[0]->flags |= VLIB_BUFFER_TOTAL_LENGTH_VALID;
+      b[0]->flags &= ~(VNET_BUFFER_F_L4_CHECKSUM_COMPUTED |
+                      VNET_BUFFER_F_L4_CHECKSUM_CORRECT);
 
       if (PREDICT_TRUE (ipsec_sa_is_set_IS_TUNNEL (sa0)))
        {                       /* tunnel mode */