diff options
author | Martin Mares <mj@ucw.cz> | 2000-03-04 21:09:14 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-03-04 21:09:14 +0000 |
commit | ee76a92a80a0241421f57fe332c251255d2af4f8 (patch) | |
tree | 597fbcff4e8dd94ee89c67162099e47d0ae9841a /nest/route.h | |
parent | d4d7562806b7306d6e5ed9b759906e264b743dc5 (diff) |
Implemented real attribute cache.
Diffstat (limited to 'nest/route.h')
-rw-r--r-- | nest/route.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/nest/route.h b/nest/route.h index 8b14c85a..74fbf9ce 100644 --- a/nest/route.h +++ b/nest/route.h @@ -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 */ |