0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Squashed one bug in timing of route scans.

This commit is contained in:
Martin Mares 1999-02-13 19:57:19 +00:00
parent 4c9dd1e4b9
commit 7f3d1a0850
2 changed files with 6 additions and 6 deletions

8
TODO
View File

@ -5,22 +5,22 @@ Core
* cleanup debugging calls * cleanup debugging calls
* logging and tracing; use appropriate log levels * logging and tracing; use appropriate log levels
* check log calls for trailing newlines * check log calls for trailing newlines
* check if all protocols set proper packet priorities and TTL's.
* replace all NUM's by expr's * replace all NUM's by expr's
- TOS not supported by kernel -> automatically drop routes with TOS<>0 - TOS not supported by kernel -> automatically drop routes with TOS<>0
- config: executable config files - config: executable config files
- config: define ipaddr constants?
- config: better default protocol names
- fake multipath? - fake multipath?
- config file: define ipaddr constants?
- counters (according to SNMP MIB?) - counters (according to SNMP MIB?)
- better memory allocators - better memory allocators
- default preferences of protocols: prefer BGP over OSPF/RIP external routes? - default preferences of protocols: prefer BGP over OSPF/RIP external routes?
- secondary addresses -> subinterfaces - secondary addresses -> subinterfaces
- check if all protocols set proper packet priorities and TTL's.
- better default protocol names
- config: comments at end of line -> explicit ';' needed? - config: comments at end of line -> explicit ';' needed?
- command-line arguments: name of config file
- static: check validity of route destination? - static: check validity of route destination?
- static: device routes - static: device routes

View File

@ -310,7 +310,7 @@ krt_scan_ifaces_done(struct krt_proto *x)
SCANOPT; SCANOPT;
SCANSTAT; SCANSTAT;
s->accum_time += p->scan_time; s->accum_time += ((struct krt_config *) x->p.cf)->ifopt.scan_time;
if (p->scan_time && s->accum_time >= p->scan_time) if (p->scan_time && s->accum_time >= p->scan_time)
{ {
s->accum_time %= p->scan_time; s->accum_time %= p->scan_time;
@ -322,7 +322,7 @@ krt_scan_ifaces_done(struct krt_proto *x)
void void
krt_scan_preconfig(struct krt_config *c) krt_scan_preconfig(struct krt_config *c)
{ {
c->scanopt.scan_time = 1; c->scanopt.scan_time = 60;
c->scanopt.learn = 0; c->scanopt.learn = 0;
} }