diff options
author | Ondrej Filip <feela@network.cz> | 2000-09-02 09:58:05 +0200 |
---|---|---|
committer | Ondrej Filip <feela@network.cz> | 2000-09-02 09:58:05 +0200 |
commit | 5ddec4e6cfef8e5867d7440693894517f955e96f (patch) | |
tree | 179cca51836531ad1682c50e07ea3236d2f61f8e /proto/ospf | |
parent | 7cedbf217e8ce8a8669f31b1ee38e5f9ccb4eefd (diff) | |
download | bird-5ddec4e6cfef8e5867d7440693894517f955e96f.tar bird-5ddec4e6cfef8e5867d7440693894517f955e96f.zip |
Reconfigure poll interval.
Diffstat (limited to 'proto/ospf')
-rw-r--r-- | proto/ospf/ospf.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 3fc3f60..d77158c 100644 --- a/proto/ospf/ospf.c +++ b/proto/ospf/ospf.c @@ -532,6 +532,17 @@ ospf_reconfigure(struct proto *p, struct proto_config *c) ifa->iface->name,ip1->helloint,ip2->helloint); } + /* POLL TIMER */ + if(ip1->pollint!=ip2->pollint) + { + ifa->pollint=ip2->helloint; + ifa->poll_timer->recurrent=ifa->pollint; + tm_start(ifa->poll_timer,ifa->pollint); + OSPF_TRACE(D_EVENTS, + "Changing poll interval on interface %s from %d to %d", + ifa->iface->name,ip1->pollint,ip2->pollint); + } + /* COST */ if(ip1->cost!=ip2->cost) { |