diff options
author | Ahmed Abdelsalam <ahabdels@cisco.com> | 2019-06-20 11:18:57 +0000 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-07-28 14:17:52 +0000 |
commit | be83704c5b1482dfd2ba38423662a9da5a8d8f81 (patch) | |
tree | 3f057ac50b73f3fa90f501d46ec9f6196eb44f8e /src/plugins | |
parent | 0ae1d80f9a42158b8904e87179966713dfe9b650 (diff) |
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 <ahabdels@cisco.com>
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/srv6-as/as.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; |