summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/ospf.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2010-02-16 08:39:06 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2010-02-16 08:39:06 +0000
commitbe5c5edbf390cc04a11dddd20cbf3d5251afc6b7 (patch)
treee6c8838676aaeac241ea2f37c4de59ea9dcc8bd5 /usr.sbin/ospfd/ospf.h
parentf8705765f4e91d61e6ae819383ee511c58d0613b (diff)
implement support for fast hello packets.
if route-dead-time is set to "minimal" (rather than a number of seconds), the dead time is set to 1 second and hellos are sent at the interval specified by fast-hello-interval in msecs. this is non standard wrt to the ospf rfc, but it does interoperate with at least one other router vendor. this allows much better responsiveness to l3 topology changes than the standard intervals allow. if i yank a cable to one of my upstreams, the routes adjust in a second rather than the default of 40 i was running with before. the users dont even notice something changed. developed while working with joshua atterbury. ok claudio@ as part of a larger diff. dedicated to zan rowe who thinks she is a bigger nerd than me.
Diffstat (limited to 'usr.sbin/ospfd/ospf.h')
-rw-r--r--usr.sbin/ospfd/ospf.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/ospf.h b/usr.sbin/ospfd/ospf.h
index cb950898a61..1bddb36de20 100644
--- a/usr.sbin/ospfd/ospf.h
+++ b/usr.sbin/ospfd/ospf.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospf.h,v 1.17 2010/02/16 08:22:42 dlg Exp $ */
+/* $OpenBSD: ospf.h,v 1.18 2010/02/16 08:39:05 dlg Exp $ */
/*
* Copyright (c) 2004, 2005 Esben Norby <norby@openbsd.org>
@@ -44,7 +44,13 @@
#define MIN_HELLO_INTERVAL 1
#define MAX_HELLO_INTERVAL 65535
+/* msec */
+#define DEFAULT_FAST_INTERVAL 333
+#define MIN_FAST_INTERVAL 50
+#define MAX_FAST_INTERVAL 333
+
#define DEFAULT_RTR_DEAD_TIME 40
+#define FAST_RTR_DEAD_TIME 1
#define MIN_RTR_DEAD_TIME 2
#define MAX_RTR_DEAD_TIME 2147483647