mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-05-03 00:27:57 +00:00
staticd: add srv6 static route seg information
Signed-off-by: Dmytro Shytyi <dmytro.shytyi@6wind.com>
This commit is contained in:
parent
b417f5cd39
commit
21eb1449c7
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
#include "lib/bfd.h"
|
#include "lib/bfd.h"
|
||||||
#include "lib/mpls.h"
|
#include "lib/mpls.h"
|
||||||
|
#include "lib/srv6.h"
|
||||||
#include "table.h"
|
#include "table.h"
|
||||||
#include "memory.h"
|
#include "memory.h"
|
||||||
|
|
||||||
@ -27,6 +28,12 @@ struct static_nh_label {
|
|||||||
mpls_label_t label[MPLS_MAX_LABELS];
|
mpls_label_t label[MPLS_MAX_LABELS];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/* Static route seg information */
|
||||||
|
struct static_nh_seg {
|
||||||
|
int num_segs;
|
||||||
|
struct in6_addr seg[SRV6_MAX_SIDS];
|
||||||
|
};
|
||||||
|
|
||||||
enum static_blackhole_type {
|
enum static_blackhole_type {
|
||||||
STATIC_BLACKHOLE_DROP = 0,
|
STATIC_BLACKHOLE_DROP = 0,
|
||||||
STATIC_BLACKHOLE_NULL,
|
STATIC_BLACKHOLE_NULL,
|
||||||
@ -129,6 +136,9 @@ struct static_nexthop {
|
|||||||
/* Label information */
|
/* Label information */
|
||||||
struct static_nh_label snh_label;
|
struct static_nh_label snh_label;
|
||||||
|
|
||||||
|
/* SRv6 Seg information */
|
||||||
|
struct static_nh_seg snh_seg;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Whether to pretend the nexthop is directly attached to the specified
|
* Whether to pretend the nexthop is directly attached to the specified
|
||||||
* link. Only meaningful when both a gateway address and interface name
|
* link. Only meaningful when both a gateway address and interface name
|
||||||
|
Loading…
Reference in New Issue
Block a user