summaryrefslogtreecommitdiff
path: root/nest/rt-dev.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-04-12 18:01:07 +0000
committerMartin Mares <mj@ucw.cz>1999-04-12 18:01:07 +0000
commit08e2d6259a71c5e43ac0083ea6d81357678f99eb (patch)
treeb8c1cfaf6196d54c506ed025a9d29697bda087b6 /nest/rt-dev.c
parent170c984a9ef1bde00711f405b03d24a2e151501c (diff)
Removed TOS support. This simplifies many things a lot.
Diffstat (limited to 'nest/rt-dev.c')
-rw-r--r--nest/rt-dev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nest/rt-dev.c b/nest/rt-dev.c
index a92fe6f9..d6035f56 100644
--- a/nest/rt-dev.c
+++ b/nest/rt-dev.c
@@ -31,7 +31,7 @@ dev_if_notify(struct proto *p, unsigned c, struct iface *new, struct iface *old)
net *n;
debug("dev_if_notify: %s going down\n", old->name);
- n = net_find(p->table, 0, old->prefix, old->pxlen);
+ n = net_find(p->table, old->prefix, old->pxlen);
if (!n)
{
debug("dev_if_notify: device shutdown: prefix not found\n");
@@ -56,9 +56,9 @@ dev_if_notify(struct proto *p, unsigned c, struct iface *new, struct iface *old)
A.attrs = NULL;
a = rta_lookup(&A);
if (new->flags & IF_UNNUMBERED)
- n = net_get(p->table, 0, new->opposite, new->pxlen);
+ n = net_get(p->table, new->opposite, new->pxlen);
else
- n = net_get(p->table, 0, new->prefix, new->pxlen);
+ n = net_get(p->table, new->prefix, new->pxlen);
e = rte_get_temp(a);
e->net = n;
e->pflags = 0;