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:25 +0000 |
commit | 90430b6e057ecd1ce4f8200a68d4142ebafcb3ec (patch) | |
tree | cb663b66c168aa98da985179251e7ed032bf4c4b /src/vnet/ipsec | |
parent | 51cabf2a1486e8b4aa6756184d6e2ba0efc78b8a (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
Diffstat (limited to 'src/vnet/ipsec')
-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: |