summaryrefslogtreecommitdiffstats
path: root/nest/route.h
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-03-01 21:13:54 +0100
committerMartin Mares <mj@ucw.cz>1999-03-01 21:13:54 +0100
commit1b769b08c195f7d95525131f65e5794c3c09a335 (patch)
treed473d2b13c7b810452d593bd44416c474d924e9f /nest/route.h
parent025d14cd5a0909b534762e5a50bfef97c2b4c9ee (diff)
downloadbird-1b769b08c195f7d95525131f65e5794c3c09a335.tar
bird-1b769b08c195f7d95525131f65e5794c3c09a335.zip
Renamed struct rtattr to struct rta to make things more consistent and
avoid namespace clashes with <linux/rtnetlink.h>. Other files should not be affected since they use 'rta' directly.
Diffstat (limited to 'nest/route.h')
-rw-r--r--nest/route.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/nest/route.h b/nest/route.h
index 916a704..243dcfa 100644
--- a/nest/route.h
+++ b/nest/route.h
@@ -117,7 +117,7 @@ typedef struct network {
typedef struct rte {
struct rte *next;
net *net; /* Network this RTE belongs to */
- struct rtattr *attrs; /* Attributes of this route */
+ struct rta *attrs; /* Attributes of this route */
byte flags; /* Flags (REF_...) */
byte pflags; /* Protocol-specific flags */
word pref; /* Route preference */
@@ -152,7 +152,7 @@ void rt_setup(rtable *, char *);
net *net_find(rtable *tab, unsigned tos, ip_addr addr, unsigned len);
net *net_get(rtable *tab, unsigned tos, ip_addr addr, unsigned len);
rte *rte_find(net *net, struct proto *p);
-rte *rte_get_temp(struct rtattr *);
+rte *rte_get_temp(struct rta *);
void rte_update(net *net, struct proto *p, rte *new);
void rte_discard(rte *old);
void rte_dump(rte *);
@@ -170,9 +170,9 @@ void rt_prune(rtable *tab);
* construction of BGP route attribute lists.
*/
-typedef struct rtattr {
- struct rtattr *next, *prev; /* Hash chain */
- struct rtattr *garbage; /* Garbage collector chain */
+typedef struct rta {
+ struct rta *next, *prev; /* Hash chain */
+ struct rta *garbage; /* Garbage collector chain */
struct proto *proto; /* Protocol instance */
unsigned uc; /* Use count */
byte source; /* Route source (RTS_...) */