summaryrefslogtreecommitdiffstats
path: root/sysdep/unix/krt-set.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1999-02-05 22:38:50 +0100
committerMartin Mares <mj@ucw.cz>1999-02-05 22:38:50 +0100
commit10d807d000155a6257f6fbad88eb72a8bf9045da (patch)
treed5a5d175b49efa2585a7e8aa3dd9b0114a9d01be /sysdep/unix/krt-set.c
parente9e3dc265971fbf985c5df09cb1d98494c386581 (diff)
downloadbird-10d807d000155a6257f6fbad88eb72a8bf9045da.tar
bird-10d807d000155a6257f6fbad88eb72a8bf9045da.zip
Synced kernel interface to new interface.
Diffstat (limited to 'sysdep/unix/krt-set.c')
-rw-r--r--sysdep/unix/krt-set.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/sysdep/unix/krt-set.c b/sysdep/unix/krt-set.c
index 83984fe..c66116c 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 <mj@ucw.cz>
+ * (c) 1998--1999 Martin Mares <mj@ucw.cz>
*
* 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)
+{
+}