summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospfd/rde.c
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2005-08-08 12:22:48 +0000
committerclaudio <claudio@openbsd.org>2005-08-08 12:22:48 +0000
commit582957f9a3f3847f2bba6dbb03331c54a1cbbe0a (patch)
tree1cffe34a7079dfe041d193775360de3876fa328b /usr.sbin/ospfd/rde.c
parentInitial import of watchdogd, a daemon to retrigger the watchdog timer (diff)
downloadwireguard-openbsd-582957f9a3f3847f2bba6dbb03331c54a1cbbe0a.tar.xz
wireguard-openbsd-582957f9a3f3847f2bba6dbb03331c54a1cbbe0a.zip
Try to do an SPF recalculation only if the LS DB changed.
This is still not perfect as on ABRs it is only necessary to recalculate the area that got changed and not all others too. More to come but it is a good start. OK norby@
Diffstat (limited to 'usr.sbin/ospfd/rde.c')
-rw-r--r--usr.sbin/ospfd/rde.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/ospfd/rde.c b/usr.sbin/ospfd/rde.c
index 9d59129b7cc..65e9ab66bab 100644
--- a/usr.sbin/ospfd/rde.c
+++ b/usr.sbin/ospfd/rde.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.c,v 1.27 2005/05/26 22:22:37 norby Exp $ */
+/* $OpenBSD: rde.c,v 1.28 2005/08/08 12:22:48 claudio Exp $ */
/*
* Copyright (c) 2004, 2005 Claudio Jeker <claudio@openbsd.org>
@@ -371,7 +371,6 @@ rde_dispatch_imsg(int fd, short event, void *bula)
if (nbr->self) {
lsa_merge(nbr, lsa, v);
- start_spf_timer(rdeconf);
break;
}
@@ -395,8 +394,6 @@ rde_dispatch_imsg(int fd, short event, void *bula)
imsg_compose(ibuf_ospfe, IMSG_LS_FLOOD,
v->nbr->peerid, 0, -1,
v->lsa, ntohs(v->lsa->hdr.len));
-
- start_spf_timer(rdeconf);
} else if (rde_req_list_exists(nbr, &lsa->hdr)) {
imsg_compose(ibuf_ospfe, IMSG_LS_BADREQ,
imsg.hdr.peerid, 0, -1, NULL, 0);