From a0762910a62085d875b5bf5e1494c4fdde6f603f Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Tue, 20 Oct 1998 15:13:18 +0000 Subject: 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. --- nest/rt-dev.c | 1 + 1 file changed, 1 insertion(+) (limited to 'nest/rt-dev.c') 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); } -- cgit v1.2.3