summaryrefslogtreecommitdiffstats
path: root/src/vnet/srv6/sr.h
diff options
context:
space:
mode:
authorIgnas Bačius <ignas@noia.network>2019-10-03 17:15:38 +0300
committerDamjan Marion <dmarion@me.com>2019-10-23 07:52:22 +0000
commiteeb5fb3a50079e1af6e655694c6ff99ec2f9d070 (patch)
treeda14b1e36c66e6977e175cbe040892df57f828cf /src/vnet/srv6/sr.h
parentbd0a00a45637c1dde533ef6c3798418c2ab15009 (diff)
sr: add "set sr encaps hop-limit" command
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 <ignas@noia.network> Change-Id: I77f2b35c987cfd31801dc2744d31fb3c1984158f
Diffstat (limited to 'src/vnet/srv6/sr.h')
-rwxr-xr-xsrc/vnet/srv6/sr.h3
1 files changed, 3 insertions, 0 deletions
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)
*