From eeb5fb3a50079e1af6e655694c6ff99ec2f9d070 Mon Sep 17 00:00:00 2001 From: Ignas Bačius Date: Thu, 3 Oct 2019 17:15:38 +0300 Subject: sr: add "set sr encaps hop-limit" command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Default hop-limit for the encapsulating IPv6 header is a compile-time constant. Add ability to specify custom hop-limit, in order to avoid packets being dropped with "hop limit exceeded in transit" response in certain network configurations. Type: feature Signed-off-by: Ignas Bačius Change-Id: I77f2b35c987cfd31801dc2744d31fb3c1984158f --- src/vnet/srv6/sr.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/vnet/srv6/sr.h') diff --git a/src/vnet/srv6/sr.h b/src/vnet/srv6/sr.h index 9ca0348cb87..2e2d43978bf 100755 --- a/src/vnet/srv6/sr.h +++ b/src/vnet/srv6/sr.h @@ -278,6 +278,9 @@ sr_steering_policy (int is_del, ip6_address_t * bsid, u32 sr_policy_index, extern void sr_set_source (ip6_address_t * address); +extern void sr_set_hop_limit (u8 hop_limit); +extern u8 sr_get_hop_limit (void); + /** * @brief SR rewrite string computation for SRH insertion (inline) * -- cgit 1.2.3-korg