diff options
| author | Hiroki Shirokura <slank.dev@gmail.com> | 2020-12-17 22:45:58 +0900 | 
|---|---|---|
| committer | Mark Stapp <mjs@voltanet.io> | 2021-06-02 10:24:47 -0400 | 
| commit | 2aa01034f3c437e076cf12f1ea4e4b7b5b6b9075 (patch) | |
| tree | 98533279860fb8dd44b502adb78aae3e5c698a81 /lib/nexthop.h | |
| parent | 4c6f9934e4d0cb824e0383e9435bd957ea54bcb0 (diff) | |
lib: add new nexthop's attributes seg6 (step3)
This commit add new nexthop's addional object for SRv6
routing about seg6 route. Before this commit,
we can add MPLS info as additional object on nexthop.
This commit make it add more support about seg6 routes.
seg6 routes are ones of the LWT routing mechanism,
so configuration of seg6local routes is performed by
ZEBRA_ROUTE_SEND, it's same as MPLS configuration.
Real configuration implementation isn't implemented at
this commit. later commit add that. This commit add
only nexthop additional object and some misc functions.
Signed-off-by: Hiroki Shirokura <slank.dev@gmail.com>
Diffstat (limited to 'lib/nexthop.h')
| -rw-r--r-- | lib/nexthop.h | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/nexthop.h b/lib/nexthop.h index 7bddee8713..8c52631af1 100644 --- a/lib/nexthop.h +++ b/lib/nexthop.h @@ -144,6 +144,9 @@ struct nexthop {  	/* SRv6 localsid info for Endpoint-behaviour */  	enum seg6local_action_t nh_seg6local_action;  	struct seg6local_context *nh_seg6local_ctx; + +	/* SRv6 Headend-behaviour */ +	struct in6_addr *nh_seg6_segs;  };  /* Utility to append one nexthop to another. */ @@ -165,6 +168,8 @@ void nexthop_del_labels(struct nexthop *);  void nexthop_add_seg6local(struct nexthop *nexthop, uint32_t action,  			   const struct seg6local_context *ctx);  void nexthop_del_seg6local(struct nexthop *nexthop); +void nexthop_add_seg6(struct nexthop *nexthop, const struct in6_addr* segs); +void nexthop_del_seg6(struct nexthop *nexthop);  /*   * Allocate a new nexthop object and initialize it from various args.  | 
