aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
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/plugins
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/plugins')
-rw-r--r--src/plugins/srv6-as/as.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/srv6-as/as.c b/src/plugins/srv6-as/as.c
index 3a476044d60..99e68511f32 100644
--- a/src/plugins/srv6-as/as.c
+++ b/src/plugins/srv6-as/as.c
@@ -64,7 +64,7 @@ prepare_rewrite (ip6_address_t src_addr, ip6_address_t * sid_list,
iph->src_address = src_addr;
iph->dst_address = sid_list[0];
iph->payload_length = sr_hdr_len;
- iph->hop_limit = IPv6_DEFAULT_HOP_LIMIT;
+ iph->hop_limit = sr_get_hop_limit ();
if (num_sids > 1)
{