From 10d807d000155a6257f6fbad88eb72a8bf9045da Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Fri, 5 Feb 1999 21:38:50 +0000 Subject: Synced kernel interface to new interface. --- sysdep/unix/krt-set.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'sysdep/unix/krt-set.c') diff --git a/sysdep/unix/krt-set.c b/sysdep/unix/krt-set.c index 83984fec..c66116c4 100644 --- a/sysdep/unix/krt-set.c +++ b/sysdep/unix/krt-set.c @@ -1,7 +1,7 @@ /* * BIRD -- Unix Routing Table Syncing * - * (c) 1998 Martin Mares + * (c) 1998--1999 Martin Mares * * Can be freely distributed and used under the terms of the GNU GPL. */ @@ -115,8 +115,8 @@ krt_add_route(rte *new) void krt_set_notify(struct proto *x, net *net, rte *new, rte *old) { - if (x->state != PRS_UP) - return; + if (x->proto_state != PS_UP) + bug("FIXME: krt_set_notify called for downed protocol"); if (old) krt_remove_route(old); if (new) @@ -124,9 +124,14 @@ krt_set_notify(struct proto *x, net *net, rte *new, rte *old) } void -krt_set_preconfig(struct krt_proto *x) +krt_set_start(struct krt_proto *x) { if (if_scan_sock < 0) bug("krt set: missing socket"); x->p.rt_notify = krt_set_notify; } + +void +krt_set_preconfig(struct krt_config *c) +{ +} -- cgit v1.2.3