summaryrefslogtreecommitdiffstats
path: root/sysdep/unix
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-08 12:38:51 +0200
committerMartin Mares <mj@ucw.cz>2000-05-08 12:38:51 +0200
commit1151401e2b8b4434bbd1419ff33a48f2848d600d (patch)
tree008b389a6a59d4416c1c4c6300c450d0b2f5d082 /sysdep/unix
parent92ef4fa719058af80a9dbb39e3d2fbd9314e8a1a (diff)
downloadbird-1151401e2b8b4434bbd1419ff33a48f2848d600d.tar
bird-1151401e2b8b4434bbd1419ff33a48f2848d600d.zip
Don't crash when reporting deleted routes.
Set preferences correctly.
Diffstat (limited to 'sysdep/unix')
-rw-r--r--sysdep/unix/krt.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c
index 6ef8d90..6d8c696 100644
--- a/sysdep/unix/krt.c
+++ b/sysdep/unix/krt.c
@@ -209,6 +209,7 @@ krt_learn_announce_update(struct krt_proto *p, rte *e)
net *nn = net_get(p->p.table, n->n.prefix, n->n.pxlen);
ee->net = nn;
ee->pflags = 0;
+ ee->pref = p->p.preference;
ee->u.krt = e->u.krt;
rte_update(p->p.table, nn, &p->p, ee);
}
@@ -580,7 +581,7 @@ krt_prune(struct krt_proto *p)
krt_set_notify(p, n, new, old);
break;
case KRF_DELETE:
- krt_trace_in(p, new, "deleting");
+ krt_trace_in(p, old, "deleting");
krt_set_notify(p, n, NULL, old);
break;
default: