summaryrefslogtreecommitdiff
path: root/proto/static
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 /proto/static
parent170c984a9ef1bde00711f405b03d24a2e151501c (diff)
Removed TOS support. This simplifies many things a lot.
Diffstat (limited to 'proto/static')
-rw-r--r--proto/static/static.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/proto/static/static.c b/proto/static/static.c
index 3a485bf3..871438a6 100644
--- a/proto/static/static.c
+++ b/proto/static/static.c
@@ -32,12 +32,11 @@ static_install(struct proto *p, struct static_route *r, struct iface *ifa)
a.scope = SCOPE_UNIVERSE;
a.cast = RTC_UNICAST;
a.dest = r->dest;
- a.tos = 0;
a.gw = r->via;
a.iface = ifa;
aa = rta_lookup(&a);
- n = net_get(p->table, a.tos, r->net, r->masklen);
+ n = net_get(p->table, r->net, r->masklen);
e = rte_get_temp(aa);
e->net = n;
e->pflags = 0;
@@ -50,7 +49,7 @@ static_remove(struct proto *p, struct static_route *r)
net *n;
DBG("Removing static route %I/%d\n", r->net, r->masklen);
- n = net_find(p->table, 0, r->net, r->masklen);
+ n = net_find(p->table, r->net, r->masklen);
if (n)
rte_update(n, p, NULL);
}