diff options
author | Martin Mares <mj@ucw.cz> | 1998-12-06 18:40:42 +0100 |
---|---|---|
committer | Martin Mares <mj@ucw.cz> | 1998-12-06 18:40:42 +0100 |
commit | 980ffedbb04bf3beedf147fc7dfed40cdbf968aa (patch) | |
tree | 075cadebb6c03fe359f77f51dc11d5e06d66f95f /sysdep/linux/krt-scan.c | |
parent | 0846203e896d8ab009217968e391b5e13ea3c4c6 (diff) | |
download | bird-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/linux/krt-scan.c')
-rw-r--r-- | sysdep/linux/krt-scan.c | 13 |
1 files changed, 7 insertions, 6 deletions
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 |