diff options
author | Martin Mares <mj@ucw.cz> | 1999-02-05 21:38:50 +0000 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1999-02-05 21:38:50 +0000 |
commit | 10d807d000155a6257f6fbad88eb72a8bf9045da (patch) | |
tree | d5a5d175b49efa2585a7e8aa3dd9b0114a9d01be /sysdep/unix/sync-if.c | |
parent | e9e3dc265971fbf985c5df09cb1d98494c386581 (diff) |
Synced kernel interface to new interface.
Diffstat (limited to 'sysdep/unix/sync-if.c')
-rw-r--r-- | sysdep/unix/sync-if.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/sysdep/unix/sync-if.c b/sysdep/unix/sync-if.c index 70a2c0ce..cec3e864 100644 --- a/sysdep/unix/sync-if.c +++ b/sysdep/unix/sync-if.c @@ -1,7 +1,7 @@ /* * BIRD -- Unix Interface Scanning and 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. */ @@ -174,25 +174,26 @@ scan_if(timer *t) void krt_if_start(struct krt_proto *p) { - if_scan_timer = tm_new(&root_pool); + struct krt_config *c = (struct krt_config *) p->p.cf; + + if_scan_timer = tm_new(p->p.pool); if_scan_timer->hook = scan_if; if_scan_timer->data = p; - if_scan_timer->recurrent = p->ifopt.scan_time; + if_scan_timer->recurrent = c->ifopt.scan_time; scan_if(if_scan_timer); - tm_start(if_scan_timer, p->ifopt.scan_time); + tm_start(if_scan_timer, c->ifopt.scan_time); } void -krt_if_preconfig(struct krt_proto *p) +krt_if_preconfig(struct krt_config *c) { - p->ifopt.scan_time = 60; + c->ifopt.scan_time = 60; } void krt_if_shutdown(struct krt_proto *p) { tm_stop(if_scan_timer); - rfree(if_scan_timer); /* FIXME: What should we do with interfaces? */ } |