aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/srv6-mobile/node.c
diff options
context:
space:
mode:
authorPablo Camarillo <pcamaril@cisco.com>2019-12-18 17:13:13 +0000
committerNeale Ranns <nranns@cisco.com>2020-03-12 08:31:42 +0000
commit79bfd272546dd436a4d12f0ac98571194965dab0 (patch)
tree2610496dd4a94cf3c0d4a3da1b1e7cc5855d7c71 /src/plugins/srv6-mobile/node.c
parentf2833e42c1e3721ce06b0f510447d8a6dd3e5eb4 (diff)
sr: SRv6 uN behavior
Implements the uN behavior Type: feature Change-Id: Icb5efc560e09052cd183b468772cf7f799f81194 Signed-off-by: pcamaril <pcamaril@cisco.com>
Diffstat (limited to 'src/plugins/srv6-mobile/node.c')
-rw-r--r--src/plugins/srv6-mobile/node.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/srv6-mobile/node.c b/src/plugins/srv6-mobile/node.c
index efc92215cac..6eafefd3f5b 100644
--- a/src/plugins/srv6-mobile/node.c
+++ b/src/plugins/srv6-mobile/node.c
@@ -372,8 +372,8 @@ VLIB_NODE_FN (srv6_end_m_gtp4_e) (vlib_main_t * vm,
len0 = vlib_buffer_length_in_chain (vm, b0);
- offset = ls0->localsid_len / 8;
- shift = ls0->localsid_len % 8;
+ offset = ls0->localsid_prefix_len / 8;
+ shift = ls0->localsid_prefix_len % 8;
gtpu_type = gtpu_type_get (tag);
@@ -1169,7 +1169,7 @@ VLIB_NODE_FN (srv6_end_m_gtp6_e) (vlib_main_t * vm,
u16 offset, shift;
u32 hdrlen = 0;
- index = ls0->localsid_len;
+ index = ls0->localsid_prefix_len;
index += 8;
offset = index / 8;
shift = index % 8;