aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2021-01-19 13:38:47 +0000
committerOle Tr�an <otroan@employees.org>2021-01-21 10:58:22 +0000
commit45d6d83761cd8c09c0a6430d11f70c37c3df256e (patch)
treea90b9330215d82cad045610328adc2e2c6170454
parentc15539af6f2f8e816475e8ed03d1992a773ccba3 (diff)
ipsec: Tunnelled packets are locally generated
Type: fix this means we 1) don't decrement TTL and (for v6) can fragment. Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: I0f718da7dcaba834ad495ae9242a9a58c9e7c184
-rw-r--r--src/vnet/ipsec/esp_encrypt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vnet/ipsec/esp_encrypt.c b/src/vnet/ipsec/esp_encrypt.c
index bd6e7641f4a..4f6976baaee 100644
--- a/src/vnet/ipsec/esp_encrypt.c
+++ b/src/vnet/ipsec/esp_encrypt.c
@@ -779,6 +779,7 @@ esp_encrypt_inline (vlib_main_t *vm, vlib_node_runtime_t *node,
len = payload_len_total + hdr_len - len;
ip6->payload_length = clib_net_to_host_u16 (len);
+ b[0]->flags |= VNET_BUFFER_F_LOCALLY_ORIGINATED;
}
else
{