diff options
author | 2007-02-01 13:06:00 +0000 | |
---|---|---|
committer | 2007-02-01 13:06:00 +0000 | |
commit | 4d12edf6dd843fda90772a6d39124d48354e58ae (patch) | |
tree | a885803f62ba5c506484b042e7d9a69f0a70d82e | |
parent | Preliminary configuration reload support. Seems to work reasonably well (diff) | |
download | wireguard-openbsd-4d12edf6dd843fda90772a6d39124d48354e58ae.tar.xz wireguard-openbsd-4d12edf6dd843fda90772a6d39124d48354e58ae.zip |
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@
-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); } |