diff options
author | John Lo <loj@cisco.com> | 2020-01-31 23:48:30 -0500 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2020-02-05 14:29:59 +0000 |
commit | 1d609270b61b551b9e81db0f573e861dedc1d3cf (patch) | |
tree | 0065441c673b8b7dd36bcba81b73ad84d931c4c9 | |
parent | a4eac3fb0aa5c1331dd067258036f82c88697d62 (diff) |
ipsec: set l2_len for GRE-TEB tunnel decap
Type: fix
Ticket: VPP-1831
Signed-off-by: John Lo <loj@cisco.com>
Change-Id: I655964b22021ac38cbced577091a1156286d4fd6
-rw-r--r-- | src/vnet/ipsec/esp_decrypt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vnet/ipsec/esp_decrypt.c b/src/vnet/ipsec/esp_decrypt.c index ee53b018552..56724c00239 100644 --- a/src/vnet/ipsec/esp_decrypt.c +++ b/src/vnet/ipsec/esp_decrypt.c @@ -18,6 +18,7 @@ #include <vnet/vnet.h> #include <vnet/api_errno.h> #include <vnet/ip/ip.h> +#include <vnet/l2/l2_input.h> #include <vnet/ipsec/ipsec.h> #include <vnet/ipsec/esp.h> @@ -506,6 +507,7 @@ esp_decrypt_inline (vlib_main_t * vm, switch (clib_net_to_host_u16 (gre->protocol)) { case GRE_PROTOCOL_teb: + vnet_update_l2_len (b[0]); next[0] = ESP_DECRYPT_NEXT_L2_INPUT; break; case GRE_PROTOCOL_ip4: |