diff options
author | Martin Mares <mj@ucw.cz> | 1998-10-20 15:13:18 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1998-10-20 15:13:18 +0000 |
commit | a0762910a62085d875b5bf5e1494c4fdde6f603f (patch) | |
tree | fd7d94a5b8abf9c06b98c4b2596a4050ad2fe295 /nest/rt-dev.c | |
parent | b6903c948b2325f11cfb07f2df0590708920b987 (diff) |
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.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nest/rt-dev.c b/nest/rt-dev.c index 1794b90a..7ef04f09 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); } |