diff options
author | Martin Mares <mj@ucw.cz> | 1999-11-04 13:29:43 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-11-04 13:29:43 +0000 |
commit | 2727bb7c5bbdac54661a5097f86d979799095db8 (patch) | |
tree | a981480d9cb1489ec5e8e792b77d1062806921c2 /nest | |
parent | 6dc7a0cb39d712c7670a113d5a66e9e868eb9872 (diff) |
Renamed attr->attrs to attr->eattrs.
Diffstat (limited to 'nest')
-rw-r--r-- | nest/route.h | 4 | ||||
-rw-r--r-- | nest/rt-attr.c | 20 | ||||
-rw-r--r-- | nest/rt-dev.c | 2 |
3 files changed, 13 insertions, 13 deletions
diff --git a/nest/route.h b/nest/route.h index c11d771b..0451e254 100644 --- a/nest/route.h +++ b/nest/route.h @@ -208,7 +208,7 @@ typedef struct rta { ip_addr gw; /* Next hop */ ip_addr from; /* Advertising router */ struct iface *iface; /* Outgoing interface */ - struct ea_list *attrs; /* Extended Attribute chain */ + struct ea_list *eattrs; /* Extended Attribute chain */ } rta; #define RTS_DUMMY 0 /* Dummy route to be removed soon */ @@ -305,7 +305,7 @@ void rta__free(rta *r); static inline void rta_free(rta *r) { if (r && !--r->uc) rta__free(r); } void rta_dump(rta *); void rta_dump_all(void); -static inline eattr * rta_find(rta *a, unsigned ea) { return ea_find(a->attrs, ea); } +static inline eattr * rta_find(rta *a, unsigned ea) { return ea_find(a->eattrs, ea); } /* * Default protocol preferences diff --git a/nest/rt-attr.c b/nest/rt-attr.c index 2a369ced..ca6cb101 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -275,7 +275,7 @@ rta_same(rta *x, rta *y) ipa_equal(x->gw, y->gw) && ipa_equal(x->from, y->from) && x->iface == y->iface && - ea_same(x->attrs, y->attrs)); + ea_same(x->eattrs, y->eattrs)); } static rta * @@ -285,7 +285,7 @@ rta_copy(rta *o) memcpy(r, o, sizeof(rta)); r->uc = 1; - r->attrs = ea_list_copy(o->attrs); + r->eattrs = ea_list_copy(o->eattrs); return r; } @@ -295,15 +295,15 @@ rta_lookup(rta *o) rta *r; ASSERT(!(o->aflags & RTAF_CACHED)); - if (o->attrs) + if (o->eattrs) { - if (o->attrs->next) /* Multiple ea_list's, need to merge them */ + if (o->eattrs->next) /* Multiple ea_list's, need to merge them */ { - ea_list *ml = alloca(ea_scan(o->attrs)); - ea_merge(o->attrs, ml); - o->attrs = ml; + ea_list *ml = alloca(ea_scan(o->eattrs)); + ea_merge(o->eattrs, ml); + o->eattrs = ml; } - ea_sort(o->attrs); + ea_sort(o->eattrs); } for(r=first_rta; r; r=r->next) @@ -347,10 +347,10 @@ rta_dump(rta *a) debug(" ->%I", a->gw); if (a->dest == RTD_DEVICE || a->dest == RTD_ROUTER) debug(" [%s]", a->iface ? a->iface->name : "???" ); - if (a->attrs) + if (a->eattrs) { debug(" EA: "); - ea_dump(a->attrs); + ea_dump(a->eattrs); } } diff --git a/nest/rt-dev.c b/nest/rt-dev.c index c07b5de6..2253a113 100644 --- a/nest/rt-dev.c +++ b/nest/rt-dev.c @@ -54,7 +54,7 @@ dev_ifa_notify(struct proto *p, unsigned c, struct ifa *ad) A.cast = RTC_UNICAST; A.dest = RTD_DEVICE; A.iface = ad->iface; - A.attrs = NULL; + A.eattrs = NULL; a = rta_lookup(&A); if (ad->flags & IF_UNNUMBERED) n = net_get(p->table, ad->opposite, ad->pxlen); |