diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-06-20 18:03:06 +0200 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2017-12-07 13:53:42 +0100 |
commit | b32d557a6eca10c1e1dc2f2ab83e201f53d134b4 (patch) | |
tree | 2cb47dd9aca4d52ebafce84826da2903e43ca6b2 /proto/ospf/dbdes.c | |
parent | ee528fbd5dc482ceece52832d4a8ea5a08251bfa (diff) |
OSPF: Update to new timers
Note that recurrent timers are currently limited to ~1 hour.
Diffstat (limited to 'proto/ospf/dbdes.c')
-rw-r--r-- | proto/ospf/dbdes.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/proto/ospf/dbdes.c b/proto/ospf/dbdes.c index a4452cc8..270259a7 100644 --- a/proto/ospf/dbdes.c +++ b/proto/ospf/dbdes.c @@ -279,8 +279,8 @@ ospf_process_dbdes(struct ospf_proto *p, struct ospf_packet *pkt, struct ospf_ne req->lsa = lsa; req->lsa_body = LSA_BODY_DUMMY; - if (!tm_active(n->lsrq_timer)) - tm_start(n->lsrq_timer, 0); + if (!tm2_active(n->lsrq_timer)) + tm2_start(n->lsrq_timer, 0); } } @@ -366,7 +366,7 @@ ospf_receive_dbdes(struct ospf_packet *pkt, struct ospf_iface *ifa, n->options = rcv_options; n->myimms &= ~DBDES_MS; n->imms = rcv_imms; - tm_stop(n->dbdes_timer); + tm2_stop(n->dbdes_timer); ospf_neigh_sm(n, INM_NEGDONE); ospf_send_dbdes(p, n); break; @@ -422,13 +422,13 @@ ospf_receive_dbdes(struct ospf_packet *pkt, struct ospf_iface *ifa, if (!(n->myimms & DBDES_M) && !(n->imms & DBDES_M)) { - tm_stop(n->dbdes_timer); + tm2_stop(n->dbdes_timer); ospf_neigh_sm(n, INM_EXDONE); break; } ospf_send_dbdes(p, n); - tm_start(n->dbdes_timer, n->ifa->rxmtint); + tm2_start(n->dbdes_timer, n->ifa->rxmtint S); } else { |