summaryrefslogtreecommitdiffstats
path: root/sysdep/unix/sync-rt.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>1998-12-06 18:40:42 +0100
committerMartin Mares <mj@ucw.cz>1998-12-06 18:40:42 +0100
commit980ffedbb04bf3beedf147fc7dfed40cdbf968aa (patch)
tree075cadebb6c03fe359f77f51dc11d5e06d66f95f /sysdep/unix/sync-rt.c
parent0846203e896d8ab009217968e391b5e13ea3c4c6 (diff)
downloadbird-980ffedbb04bf3beedf147fc7dfed40cdbf968aa.tar
bird-980ffedbb04bf3beedf147fc7dfed40cdbf968aa.zip
Kernel syncer is now configurable. It will probably need some more
options, but at least basic tuning is possible now.
Diffstat (limited to 'sysdep/unix/sync-rt.c')
-rw-r--r--sysdep/unix/sync-rt.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sysdep/unix/sync-rt.c b/sysdep/unix/sync-rt.c
index 69b2bde..169494e 100644
--- a/sysdep/unix/sync-rt.c
+++ b/sysdep/unix/sync-rt.c
@@ -23,6 +23,8 @@
#include "unix.h"
#include "krt.h"
+struct proto *cf_krt_proto;
+
void
krt_start(struct proto *P)
{
@@ -42,6 +44,7 @@ krt_preconfig(struct protocol *x)
{
struct krt_proto *p = (struct krt_proto *) proto_new(&proto_unix_kernel, sizeof(struct krt_proto));
+ cf_krt_proto = &p->p;
p->p.preference = DEF_PREF_UKR;
p->p.start = krt_start;
p->p.shutdown = krt_shutdown;