From 980ffedbb04bf3beedf147fc7dfed40cdbf968aa Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 6 Dec 1998 17:40:42 +0000 Subject: Kernel syncer is now configurable. It will probably need some more options, but at least basic tuning is possible now. --- sysdep/linux/krt-scan.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'sysdep/linux/krt-scan.c') diff --git a/sysdep/linux/krt-scan.c b/sysdep/linux/krt-scan.c index 6fdb3bf..9d8cf5f 100644 --- a/sysdep/linux/krt-scan.c +++ b/sysdep/linux/krt-scan.c @@ -131,11 +131,11 @@ krt_parse_entry(byte *e, struct krt_proto *p) return; #endif DBG("krt_parse_entry: kernel reporting unknown route %I/%d\n", dest, masklen); -#if 1 - /* FIXME: should be configurable */ - if (flags & RTF_GATEWAY) - krt_magic_route(p, net, gw); -#endif + if (p->scanopt.learn) + { + if (flags & RTF_GATEWAY) + krt_magic_route(p, net, gw); + } net->n.flags |= KRF_UPDATE; } } @@ -235,7 +235,8 @@ krt_scan_preconfig(struct krt_proto *x) { SCANOPT; - p->recurrence = 10; /* FIXME: use reasonable default value */ + p->recurrence = 60; + p->learn = 0; } void -- cgit v1.2.3