summaryrefslogtreecommitdiffstats
path: root/nest/rt-dev.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-10-20 17:13:18 +0200
committerMartin Mares <mj@ucw.cz>1998-10-20 17:13:18 +0200
commita0762910a62085d875b5bf5e1494c4fdde6f603f (patch)
treefd7d94a5b8abf9c06b98c4b2596a4050ad2fe295 /nest/rt-dev.c
parentb6903c948b2325f11cfb07f2df0590708920b987 (diff)
downloadbird-a0762910a62085d875b5bf5e1494c4fdde6f603f.tar
bird-a0762910a62085d875b5bf5e1494c4fdde6f603f.zip
Added pointer to network to RTE. The complications with passing NET separately
aren't worth 4 bytes per RTE. rte_discard and rte_dump don't need net * as parameter.
Diffstat (limited to 'nest/rt-dev.c')
-rw-r--r--nest/rt-dev.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/rt-dev.c b/nest/rt-dev.c
index 1794b90..7ef04f0 100644
--- a/nest/rt-dev.c
+++ b/nest/rt-dev.c
@@ -53,6 +53,7 @@ dev_if_notify(struct proto *p, unsigned c, struct iface *old, struct iface *new)
else
n = net_get(&master_table, 0, new->prefix, new->pxlen);
e = rte_get_temp(a);
+ e->net = n;
e->pflags = 0;
rte_update(n, p, e);
}