From 09686693d35bd71187847c95c0967d4125215b97 Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Mon, 23 Jan 2012 03:15:12 +0100 Subject: Implements handling of BSD iface arrival/departure notifications. Thanks to Alexander V. Chernikov for original patch. --- sysdep/unix/krt.c | 7 +++++++ sysdep/unix/krt.h | 1 + 2 files changed, 8 insertions(+) (limited to 'sysdep/unix') diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c index e5a8ce17..ad8ea6b6 100644 --- a/sysdep/unix/krt.c +++ b/sysdep/unix/krt.c @@ -104,6 +104,13 @@ kif_force_scan(void) } } +void +kif_request_scan(void) +{ + if (kif_proto && kif_scan_timer->expires > now) + tm_start(kif_scan_timer, 1); +} + static struct proto * kif_init(struct proto_config *c) { diff --git a/sysdep/unix/krt.h b/sysdep/unix/krt.h index 7bb4fe70..b0c4dc5e 100644 --- a/sysdep/unix/krt.h +++ b/sysdep/unix/krt.h @@ -77,6 +77,7 @@ extern pool *krt_pool; if (pr->p.debug & fl) \ { log(L_TRACE "%s: " msg, pr->p.name , ## args); } } while(0) +void kif_request_scan(void); void krt_got_route(struct krt_proto *p, struct rte *e); void krt_got_route_async(struct krt_proto *p, struct rte *e, int new); -- cgit v1.2.3