From c7eaa711f3e25580687df0618e9ca80d3dc85e5f Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Thu, 4 Feb 2021 11:09:33 +0000 Subject: ipsec: Use the new tunnel API types to add flow label and TTL copy support Type: feature Signed-off-by: Neale Ranns Change-Id: I6d4a9b187daa725d4b2cbb66e11616802d44d2d3 --- src/vnet/ipsec/ah_encrypt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/vnet/ipsec/ah_encrypt.c') diff --git a/src/vnet/ipsec/ah_encrypt.c b/src/vnet/ipsec/ah_encrypt.c index a4c34917550..7213e473723 100644 --- a/src/vnet/ipsec/ah_encrypt.c +++ b/src/vnet/ipsec/ah_encrypt.c @@ -251,7 +251,7 @@ ah_encrypt_inline (vlib_main_t * vm, oh6_0->ip6.ip_version_traffic_class_and_flow_label = ih6_0->ip6.ip_version_traffic_class_and_flow_label; - ip6_set_dscp_network_order (&oh6_0->ip6, sa0->dscp); + ip6_set_dscp_network_order (&oh6_0->ip6, sa0->tunnel.t_dscp); tunnel_encap_fixup_6o6 (sa0->tunnel_flags, &ih6_0->ip6, &oh6_0->ip6); @@ -287,8 +287,8 @@ ah_encrypt_inline (vlib_main_t * vm, oh0 = vlib_buffer_get_current (b[0]); pd->ttl = ih0->ip4.ttl; - if (sa0->dscp) - pd->tos = sa0->dscp << 2; + if (sa0->tunnel.t_dscp) + pd->tos = sa0->tunnel.t_dscp << 2; else { pd->tos = ih0->ip4.tos; -- cgit 1.2.3-korg