diff options
author | Maria Matejka <mq@ucw.cz> | 2022-05-15 15:53:35 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2022-05-26 14:53:09 +0200 |
commit | 4fe9881d625f10e44109a649e369a413bd98de71 (patch) | |
tree | ec9b7c5c5e59eba5684fc9df5b41c1ef20e14e05 /lib/route.h | |
parent | f15f2fcee7eeb5a100bd204a0e67018e25953420 (diff) |
Moved hostentry to eattr
Diffstat (limited to 'lib/route.h')
-rw-r--r-- | lib/route.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/route.h b/lib/route.h index 29a78e90..3ce8021d 100644 --- a/lib/route.h +++ b/lib/route.h @@ -87,7 +87,6 @@ typedef struct rta { u32 uc; /* Use count */ u32 hash_key; /* Hash over important fields */ struct ea_list *eattrs; /* Extended Attribute chain */ - struct hostentry *hostentry; /* Hostentry for recursive next-hops */ u16 cached:1; /* Are attributes cached? */ u16 dest:4; /* Route destination type (RTD_...) */ } rta; @@ -172,6 +171,8 @@ struct ea_class { uint readonly:1; /* This attribute can't be changed by filters */ \ uint conf:1; /* Requested by config */ \ void (*format)(const eattr *ea, byte *buf, uint size); \ + void (*stored)(const eattr *ea); /* When stored into global hash */ \ + void (*freed)(const eattr *ea); /* When released from global hash */ \ EA_CLASS_INSIDE; }; @@ -330,10 +331,6 @@ 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: For now, stored as adata */ extern struct ea_class ea_gen_nexthop; |