summaryrefslogtreecommitdiffstats
path: root/src/vnet/srv6/sr_policy_rewrite.c
diff options
context:
space:
mode:
authorPablo Camarillo <pcamaril@cisco.com>2017-11-16 16:02:50 +0100
committerDamjan Marion <dmarion.lists@gmail.com>2017-11-27 19:00:17 +0000
commit1a5e301fcdcd109d14112aafc5f5ee48d1462458 (patch)
tree76e88e7c4f142356fd20a0e71fa7d74e743a046c /src/vnet/srv6/sr_policy_rewrite.c
parent7af4a57e7824c850f28a3cc5b4451a9e9baad068 (diff)
SRv6 improvements to binary API
Change-Id: I260f5fe43074c0be973309f0a0895f50f0ca7c2b Signed-off-by: Pablo Camarillo <pcamaril@cisco.com>
Diffstat (limited to 'src/vnet/srv6/sr_policy_rewrite.c')
-rwxr-xr-xsrc/vnet/srv6/sr_policy_rewrite.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/vnet/srv6/sr_policy_rewrite.c b/src/vnet/srv6/sr_policy_rewrite.c
index 514dd6584d0..b42942c3cd5 100755
--- a/src/vnet/srv6/sr_policy_rewrite.c
+++ b/src/vnet/srv6/sr_policy_rewrite.c
@@ -112,6 +112,12 @@ static ip6_address_t sr_pr_encaps_src;
/* Note: This is temporal. We don't know whether to follow this path or
take the ip address of a loopback interface or even the OIF */
+void
+sr_set_source (ip6_address_t * address)
+{
+ clib_memcpy (&sr_pr_encaps_src, address, sizeof (sr_pr_encaps_src));
+}
+
static clib_error_t *
set_sr_src_command_fn (vlib_main_t * vm, unformat_input_t * input,
vlib_cli_command_t * cmd)