diff options
author | Martin Mares <mj@ucw.cz> | 2000-02-29 23:19:52 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 2000-02-29 23:19:52 +0000 |
commit | 6a636392d33627944df9d5a9573932cdc0bf6da5 (patch) | |
tree | 9e689378151af5a882085356ba7d3bb3ebabcbbb /nest/rt-dev.c | |
parent | e69e4ed9349ee28262fe74f70e7e52c181d5d098 (diff) |
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.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/nest/rt-dev.c b/nest/rt-dev.c index b9253ccb..edadeba5 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; |