From bc69426737b54533992fe763b037f81c912dada1 Mon Sep 17 00:00:00 2001 From: Chinmaya Agarwal Date: Tue, 23 Jun 2020 12:38:23 +0000 Subject: sr: fix for SID index across segment lists within a sr policy Type: fix Signed-off-by: Chinmaya Agarwal Change-Id: I9aa5456bf94356e8702fbfd39b14db4c2e74d3e6 (cherry picked from commit edc2ea435b5c407a78f4fcb42d750338d6cdd6d5) --- src/vnet/srv6/sr_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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++]); -- cgit 1.2.3-korg