diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-02-01 13:06:01 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2007-02-01 13:06:01 +0000 |
commit | aa3fabbcc19637714eb1ebf23c382458bd37866b (patch) | |
tree | 2a03cd64b99f582d1c0f0479fa45c3386100425f /usr.sbin/ospfd | |
parent | bd1e897795344b38b1650c50b65d7b8591c5c681 (diff) |
If an interface is going down send out an empty OSPF hello packet so that
all other routers will drop the session immediatly instead of waiting for
the timeout that is normaly 40 sec. This reduces fail-over time massivly
and does not hurt anymore since we are now able to reload the configuration
on the fly. OK norby@ pyr@
Diffstat (limited to 'usr.sbin/ospfd')
-rw-r--r-- | usr.sbin/ospfd/interface.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/interface.c b/usr.sbin/ospfd/interface.c index 7b7d3785a3d..f60c7745197 100644 --- a/usr.sbin/ospfd/interface.c +++ b/usr.sbin/ospfd/interface.c @@ -1,4 +1,4 @@ -/* $OpenBSD: interface.c,v 1.56 2007/01/24 14:08:28 claudio Exp $ */ +/* $OpenBSD: interface.c,v 1.57 2007/02/01 13:06:00 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -564,6 +564,9 @@ if_act_reset(struct iface *iface) stop_ls_ack_tx_timer(iface); if_stop_hello_timer(iface); if_stop_wait_timer(iface); + + /* send empty hello to tell everybody that we are going down */ + send_hello(iface); return (0); } |