diff options
author | Sergey Matveychuk <sem@FreeBSD.org> | 2005-04-04 08:52:54 +0000 |
---|---|---|
committer | Sergey Matveychuk <sem@FreeBSD.org> | 2005-04-04 08:52:54 +0000 |
commit | c06d49c051b9e359633b3574f059d602d286d6ae (patch) | |
tree | 6361bcb85dee992748335d66c82501bb38de496a /net/quagga/files | |
parent | 1249e5028f5f2987249e399e0685b3c0bda0ef26 (diff) |
Notes
Diffstat (limited to 'net/quagga/files')
-rw-r--r-- | net/quagga/files/patch-ospfd::ospf_lsa.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/net/quagga/files/patch-ospfd::ospf_lsa.c b/net/quagga/files/patch-ospfd::ospf_lsa.c deleted file mode 100644 index 6b63a0b69552..000000000000 --- a/net/quagga/files/patch-ospfd::ospf_lsa.c +++ /dev/null @@ -1,37 +0,0 @@ ---- ospfd/ospf_lsa.c.orig Wed Dec 22 19:16:02 2004 -+++ ospfd/ospf_lsa.c Mon Mar 7 12:24:04 2005 -@@ -3665,6 +3665,7 @@ - struct listnode *node; - struct ospf *ospf = THREAD_ARG (t); - int i; -+ time_t ct; - struct list *lsa_to_refresh = list_new (); - - if (IS_DEBUG_OSPF (lsa, LSA_REFRESH)) -@@ -3672,15 +3673,25 @@ - - - i = ospf->lsa_refresh_queue.index; -+ -+ if ((ct = time(NULL)) < ospf->lsa_refresher_started) { -+ zlog_debug ("LSA[Refresh]: ospf_lsa_refresh_walker(): HACK: fixing lsa_refresher_started: %d -> %d", ospf->lsa_refresher_started, ct); -+ ospf->lsa_refresher_started = ct; -+ } - - ospf->lsa_refresh_queue.index = - (ospf->lsa_refresh_queue.index + -- (time (NULL) - ospf->lsa_refresher_started) / OSPF_LSA_REFRESHER_GRANULARITY) -+ (ct - ospf->lsa_refresher_started) / OSPF_LSA_REFRESHER_GRANULARITY) - % OSPF_LSA_REFRESHER_SLOTS; - - if (IS_DEBUG_OSPF (lsa, LSA_REFRESH)) - zlog_debug ("LSA[Refresh]: ospf_lsa_refresh_walker(): next index %d", - ospf->lsa_refresh_queue.index); -+ -+ if (ospf->lsa_refresh_queue.index >= OSPF_LSA_REFRESHER_SLOTS) { -+ zlog_debug ("LSA[Refresh]: ospf_lsa_refresh_walker(): HACK: fixing index: %hu -> 0", ospf->lsa_refresh_queue.index); -+ ospf->lsa_refresh_queue.index = 0; -+ } - - for (;i != ospf->lsa_refresh_queue.index; - i = (i + 1) % OSPF_LSA_REFRESHER_SLOTS) |