From be83704c5b1482dfd2ba38423662a9da5a8d8f81 Mon Sep 17 00:00:00 2001 From: Ahmed Abdelsalam Date: Thu, 20 Jun 2019 11:18:57 +0000 Subject: sr: ipv6 segment routing header (srh) update SRH has passed WG review in IETF and currently an IESG document. This patch updates the SRH definition to be compliant with IETF. - Change "first_segment" to "last_entry" - Change "reserved" to "tag" Change-Id: I1765c968671655c5646f6de478d1f7196abbc040 Type: fix Signed-off-by: Ahmed Abdelsalam --- src/plugins/srv6-as/as.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/plugins/srv6-as/as.c') diff --git a/src/plugins/srv6-as/as.c b/src/plugins/srv6-as/as.c index 8cd964b60f2..3a476044d60 100644 --- a/src/plugins/srv6-as/as.c +++ b/src/plugins/srv6-as/as.c @@ -77,13 +77,13 @@ prepare_rewrite (ip6_address_t src_addr, ip6_address_t * sid_list, srh->length = sr_hdr_len / 8 - 1; srh->type = ROUTING_HEADER_TYPE_SR; srh->segments_left = num_sids - 1; - srh->first_segment = num_sids - 1; + srh->last_entry = num_sids - 1; srh->flags = 0x00; - srh->reserved = 0x00; + srh->tag = 0x0000; /* Fill segment list */ ip6_address_t *this_address; - ip6_address_t *addrp = srh->segments + srh->first_segment; + ip6_address_t *addrp = srh->segments + srh->last_entry; vec_foreach (this_address, sid_list) { *addrp = *this_address; -- cgit 1.2.3-korg