sr: add "set sr encaps hop-limit" command 12/22512/9
authorIgnas Bačius <ignas@noia.network>
Thu, 3 Oct 2019 14:15:38 +0000 (17:15 +0300)
committerDamjan Marion <dmarion@me.com>
Wed, 23 Oct 2019 07:52:22 +0000 (07:52 +0000)
commiteeb5fb3a50079e1af6e655694c6ff99ec2f9d070
treeda14b1e36c66e6977e175cbe040892df57f828cf
parentbd0a00a45637c1dde533ef6c3798418c2ab15009
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
src/plugins/srv6-as/as.c
src/vnet/srv6/sr.api
src/vnet/srv6/sr.h
src/vnet/srv6/sr_api.c
src/vnet/srv6/sr_policy.md
src/vnet/srv6/sr_policy_rewrite.c