diff options
Diffstat (limited to 'src/vnet/srv6/sr_policy_rewrite.c')
-rwxr-xr-x | src/vnet/srv6/sr_policy_rewrite.c | 6 |
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) |