diff options
author | Ignas Bačius <ignas@noia.network> | 2019-10-03 17:15:38 +0300 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2019-10-23 07:52:22 +0000 |
commit | eeb5fb3a50079e1af6e655694c6ff99ec2f9d070 (patch) | |
tree | da14b1e36c66e6977e175cbe040892df57f828cf /src/vnet/srv6/sr.api | |
parent | bd0a00a45637c1dde533ef6c3798418c2ab15009 (diff) |
sr: add "set sr encaps hop-limit" command
Default hop-limit for the encapsulating IPv6 header is a compile-time
constant. Add ability to specify custom hop-limit, in order to avoid
packets being dropped with "hop limit exceeded in transit" response in
certain network configurations.
Type: feature
Signed-off-by: Ignas Bačius <ignas@noia.network>
Change-Id: I77f2b35c987cfd31801dc2744d31fb3c1984158f
Diffstat (limited to 'src/vnet/srv6/sr.api')
-rw-r--r-- | src/vnet/srv6/sr.api | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vnet/srv6/sr.api b/src/vnet/srv6/sr.api index e989ffe2f16..1d696b0c897 100644 --- a/src/vnet/srv6/sr.api +++ b/src/vnet/srv6/sr.api @@ -137,6 +137,18 @@ autoreply define sr_set_encap_source u8 encaps_source[16]; }; +/** \brief IPv6 SR Set SRv6 encapsulation hop-limit + @param client_index - opaque cookie to identify the sender + @param context - sender context, to match reply w/ request + @param hop_limit is the hop-limit value to set +*/ +autoreply define sr_set_encap_hop_limit +{ + u32 client_index; + u32 context; + u8 hop_limit; +}; + /** \brief IPv6 SR steering add/del @param client_index - opaque cookie to identify the sender @param context - sender context, to match reply w/ request |