summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/ospfd.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2010-02-19 10:35:53 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2010-02-19 10:35:53 +0000
commitc7e23a3386688c502957b025f81b43d39dbef10a (patch)
tree47d9826536c432d68d3637a0767721f9dd693d8c /usr.sbin/ospfd/ospfd.c
parentfbd811739ba75515c19bff2c032f88ede4e82d0a (diff)
implement ospfctl fib reload.
this tells the daemon to resync the kernels list of interfaces and routes with the daemons list. this is very useful if the routing socket overflows and you want to sync things up again. lots and lots of help from claudio@ ok claudio@
Diffstat (limited to 'usr.sbin/ospfd/ospfd.c')
-rw-r--r--usr.sbin/ospfd/ospfd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/ospfd.c b/usr.sbin/ospfd/ospfd.c
index 82e351f66f8..3d28bc1b39b 100644
--- a/usr.sbin/ospfd/ospfd.c
+++ b/usr.sbin/ospfd/ospfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfd.c,v 1.72 2010/02/16 18:16:40 claudio Exp $ */
+/* $OpenBSD: ospfd.c,v 1.73 2010/02/19 10:35:52 dlg Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -402,6 +402,9 @@ main_dispatch_ospfe(int fd, short event, void *bula)
case IMSG_CTL_FIB_DECOUPLE:
kr_fib_decouple();
break;
+ case IMSG_CTL_FIB_RELOAD:
+ kr_fib_reload();
+ break;
case IMSG_CTL_KROUTE:
case IMSG_CTL_KROUTE_ADDR:
kr_show_route(&imsg);