1
0
mirror of https://gitlab.labs.nic.cz/labs/bird.git synced 2024-05-11 16:54:54 +00:00

Implemented real attribute cache.

This commit is contained in:
Martin Mares
2000-03-04 21:09:14 +00:00
parent d4d7562806
commit ee76a92a80
3 changed files with 119 additions and 45 deletions

View File

@@ -215,8 +215,7 @@ void rt_show(struct rt_show_data *);
*/
typedef struct rta {
struct rta *next, *prev; /* Hash chain */
struct rta *garbage; /* Garbage collector chain */
struct rta *next, **pprev; /* Hash chain */
struct proto *proto; /* Protocol instance */
unsigned uc; /* Use count */
byte source; /* Route source (RTS_...) */
@@ -225,7 +224,7 @@ typedef struct rta {
byte dest; /* Route destination type (RTD_...) */
byte flags; /* Route flags (RTF_...), now unused */
byte aflags; /* Attribute cache flags (RTAF_...) */
byte rfu, rfu2; /* Padding */
u16 hash_key; /* Hash over important fields */
ip_addr gw; /* Next hop */
ip_addr from; /* Advertising router */
struct iface *iface; /* Outgoing interface */