diff options
| author | 2010-02-19 10:35:52 +0000 | |
|---|---|---|
| committer | 2010-02-19 10:35:52 +0000 | |
| commit | 119f0f1dd7d6ec63814a312ebe61ae20977be985 (patch) | |
| tree | 61056a81c081990cdbe721ed158afdf549efcfa6 /usr.sbin/ospfctl/ospfctl.c | |
| parent | more hw has been tested (diff) | |
| download | wireguard-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.c | 8 |
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: |
