summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ospfctl/ospfctl.c
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2010-02-19 10:35:52 +0000
committerdlg <dlg@openbsd.org>2010-02-19 10:35:52 +0000
commit119f0f1dd7d6ec63814a312ebe61ae20977be985 (patch)
tree61056a81c081990cdbe721ed158afdf549efcfa6 /usr.sbin/ospfctl/ospfctl.c
parentmore hw has been tested (diff)
downloadwireguard-openbsd-119f0f1dd7d6ec63814a312ebe61ae20977be985.tar.xz
wireguard-openbsd-119f0f1dd7d6ec63814a312ebe61ae20977be985.zip
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/ospfctl/ospfctl.c')
-rw-r--r--usr.sbin/ospfctl/ospfctl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/ospfctl/ospfctl.c b/usr.sbin/ospfctl/ospfctl.c
index ecdb2d9e78e..120a12f1971 100644
--- a/usr.sbin/ospfctl/ospfctl.c
+++ b/usr.sbin/ospfctl/ospfctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfctl.c,v 1.52 2010/02/16 08:39:05 dlg Exp $ */
+/* $OpenBSD: ospfctl.c,v 1.53 2010/02/19 10:35:52 dlg Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -220,6 +220,11 @@ main(int argc, char *argv[])
printf("decouple request sent.\n");
done = 1;
break;
+ case FIB_RELOAD:
+ imsg_compose(ibuf, IMSG_CTL_FIB_RELOAD, 0, 0, -1, NULL, 0);
+ printf("reload request sent.\n");
+ done = 1;
+ break;
case LOG_VERBOSE:
verbose = 1;
/* FALLTHROUGH */
@@ -296,6 +301,7 @@ main(int argc, char *argv[])
case FIB:
case FIB_COUPLE:
case FIB_DECOUPLE:
+ case FIB_RELOAD:
case LOG_VERBOSE:
case LOG_BRIEF:
case RELOAD: