From: Ondrej Filip Date: Sat, 2 Sep 2000 07:58:05 +0000 (+0000) Subject: Reconfigure poll interval. X-Git-Tag: v1.2.0~494 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5ddec4e6cfef8e5867d7440693894517f955e96f;p=thirdparty%2Fbird.git Reconfigure poll interval. --- diff --git a/proto/ospf/ospf.c b/proto/ospf/ospf.c index 3fc3f607a..d77158cad 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) {