From aa3fabbcc19637714eb1ebf23c382458bd37866b Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Thu, 1 Feb 2007 13:06:01 +0000 Subject: 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@ --- usr.sbin/ospfd/interface.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'usr.sbin/ospfd/interface.c') 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 @@ -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); } -- cgit v1.2.3