aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/srv6
diff options
context:
space:
mode:
authorChinmaya Agarwal <chinmaya.agarwal@hsc.com>2020-06-23 12:38:23 +0000
committerDamjan Marion <dmarion@me.com>2020-06-27 10:26:35 +0000
commitedc2ea435b5c407a78f4fcb42d750338d6cdd6d5 (patch)
tree0a13b2ac1eb3ca555f4bf4a61746cfd825a0f7e3 /src/vnet/srv6
parent975a3cbb130fe7f3d5415dee7c05ea5e7bc59daf (diff)
sr: fix for SID index across segment lists within a sr policy
Type: fix Signed-off-by: Chinmaya Agarwal <chinmaya.agarwal@hsc.com> Change-Id: I9aa5456bf94356e8702fbfd39b14db4c2e74d3e6
Diffstat (limited to 'src/vnet/srv6')
-rw-r--r--src/vnet/srv6/sr_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/srv6/sr_api.c b/src/vnet/srv6/sr_api.c
index 9bb1a16f18a..c039da01c63 100644
--- a/src/vnet/srv6/sr_api.c
+++ b/src/vnet/srv6/sr_api.c
@@ -314,7 +314,7 @@ static void send_sr_policies_details
api_sid_list->num_sids = vec_len (segment_list->segments);
api_sid_list->weight = htonl (segment_list->weight);
-
+ slidx = 0;
vec_foreach (segment, segment_list->segments)
{
ip6_address_encode (segment, api_sid_list->sids[slidx++]);