mirror of
https://gitlab.labs.nic.cz/labs/bird.git
synced 2024-05-11 16:54:54 +00:00
All outstanding MPLS label stacks are stored as adata
This commit is contained in:
@@ -70,7 +70,6 @@ struct nexthop {
|
||||
struct nexthop *next;
|
||||
byte flags;
|
||||
byte weight;
|
||||
byte labels_orig; /* Number of labels before hostentry was applied */
|
||||
byte labels; /* Number of all labels */
|
||||
u32 label[0];
|
||||
};
|
||||
@@ -314,6 +313,10 @@ extern struct ea_class ea_gen_source;
|
||||
static inline u32 rt_get_source_attr(rte *rt)
|
||||
{ return ea_get_int(rt->attrs->eattrs, &ea_gen_source, 0); }
|
||||
|
||||
/* MPLS labels: Use with a recursive nexthop specification
|
||||
* to add additional labels to the resolved nexthop */
|
||||
extern struct ea_class ea_mpls_labels;
|
||||
|
||||
/* Next hop structures */
|
||||
|
||||
#define NEXTHOP_MAX_SIZE (sizeof(struct nexthop) + sizeof(u32)*MPLS_MAX_LABEL_STACK)
|
||||
|
Reference in New Issue
Block a user