summaryrefslogtreecommitdiff
path: root/sysdep
diff options
context:
space:
mode:
authorJan Moskyto Matejka <mq@ucw.cz>2016-05-10 14:21:15 +0200
committerJan Moskyto Matejka <mq@ucw.cz>2016-05-10 14:21:15 +0200
commit92912f063a94bd7c743a25628ca2073380e09ef4 (patch)
treee8328b04713b3004747bcd3160294dd97e16b35e /sysdep
parenta8caff322f83f1303c408bbefc440aeea9e619a3 (diff)
parent2003a1840731bd57365876e48c96c5a1ea0348cb (diff)
Merge remote-tracking branch 'origin/rte-update' into int-new
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/unix/krt.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c
index 38f31235..7c9bfb24 100644
--- a/sysdep/unix/krt.c
+++ b/sysdep/unix/krt.c
@@ -345,18 +345,15 @@ krt_learn_announce_update(struct krt_proto *p, rte *e)
net *n = e->net;
rta *aa = rta_clone(e->attrs);
rte *ee = rte_get_temp(aa);
- net *nn = net_get(p->p.main_channel->table, n->n.addr);
- ee->net = nn;
ee->pflags = 0;
ee->u.krt = e->u.krt;
- rte_update(&p->p, nn, ee);
+ rte_update(&p->p, n->n.addr, ee);
}
static void
krt_learn_announce_delete(struct krt_proto *p, net *n)
{
- n = net_find(p->p.main_channel->table, n->n.addr);
- rte_update(&p->p, n, NULL);
+ rte_update(&p->p, n->n.addr, NULL);
}
/* Called when alien route is discovered during scan */