summaryrefslogtreecommitdiffstats
path: root/nest/rt-dev.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-03-01 00:19:52 +0100
committerMartin Mares <mj@ucw.cz>2000-03-01 00:19:52 +0100
commit6a636392d33627944df9d5a9573932cdc0bf6da5 (patch)
tree9e689378151af5a882085356ba7d3bb3ebabcbbb /nest/rt-dev.c
parente69e4ed9349ee28262fe74f70e7e52c181d5d098 (diff)
downloadbird-6a636392d33627944df9d5a9573932cdc0bf6da5.tar
bird-6a636392d33627944df9d5a9573932cdc0bf6da5.zip
Rewrote interface type detection logic. The `unnumbered' flag is now per
address, not per interface (hence it's ifa->flags & IA_UNNUMBERED) and should be set reliably. IF_MULTIACCESS should be fixed now, but it isn't wise to rely on it on interfaces configured with /30 prefix.
Diffstat (limited to 'nest/rt-dev.c')
-rw-r--r--nest/rt-dev.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/nest/rt-dev.c b/nest/rt-dev.c
index b9253cc..edadeba 100644
--- a/nest/rt-dev.c
+++ b/nest/rt-dev.c
@@ -56,10 +56,7 @@ dev_ifa_notify(struct proto *p, unsigned c, struct ifa *ad)
A.iface = ad->iface;
A.eattrs = NULL;
a = rta_lookup(&A);
- if (ad->flags & IF_UNNUMBERED)
- n = net_get(p->table, ad->opposite, ad->pxlen);
- else
- n = net_get(p->table, ad->prefix, ad->pxlen);
+ n = net_get(p->table, ad->prefix, ad->pxlen);
e = rte_get_temp(a);
e->net = n;
e->pflags = 0;