aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/srv6-as/as.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/srv6-as/as.c')
-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)
{