Re: [PATCH] seg6: using DSCP of inner IPv4 packets

From: Ahmed Abdelsalam
Date: Sat Aug 15 2020 - 18:03:42 EST


Hi David,

Sorry for the late reply. I'm on PTO with limited email access.

I will revise the patch in the next weeks and make outer IPv6 header inherit Hop limit from Inner packet for the IPv6 case.

Ahmed


On 08/08/2020 02:43, David Miller wrote:
From: Ahmed Abdelsalam <ahabdels@xxxxxxxxx>
Date: Thu, 6 Aug 2020 08:43:06 +0200

SRv6 as defined in [1][2] does not mandate that the hop_limit of the
outer IPv6 header has to be copied from the inner packet.

This is not an issue of seg6 RFCs, but rather generic ip6 in ip6
tunnel encapsulation.

Therefore, what the existing ip6 tunnel encap does is our guide,
and it inherits from the inner header.

And that's what the original seg6 code almost certainly used to
guide the decision making in this area.