diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-03-22 15:37:45 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2006-03-22 15:37:45 +0000 |
commit | 93e62b255f32a33e21eed1171de38a9b05bb377c (patch) | |
tree | a9361799b3864331931046f56546bf40ae2891e6 /usr.sbin/ospfctl/ospfctl.c | |
parent | 022bdc963534de84cbd86cddbcec6e0fd47a580c (diff) |
ospfd has the framework to couple and decouple the FIB. Add the needed
functionality to ospfctl for it.
NOTE: decoupling the FIB one a router may totaly fuck up the complete network.
Use it with care!
OK norby@
Diffstat (limited to 'usr.sbin/ospfctl/ospfctl.c')
-rw-r--r-- | usr.sbin/ospfctl/ospfctl.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/usr.sbin/ospfctl/ospfctl.c b/usr.sbin/ospfctl/ospfctl.c index 4b88142327d..339ab1be378 100644 --- a/usr.sbin/ospfctl/ospfctl.c +++ b/usr.sbin/ospfctl/ospfctl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ospfctl.c,v 1.28 2006/03/09 18:11:33 norby Exp $ */ +/* $OpenBSD: ospfctl.c,v 1.29 2006/03/22 15:37:44 claudio Exp $ */ /* * Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org> @@ -185,6 +185,19 @@ main(int argc, char *argv[]) imsg_compose(ibuf, IMSG_CTL_IFINFO, 0, 0, NULL, 0); show_interface_head(); break; + case FIB: + errx(1, "fib couple|decouple"); + break; + case FIB_COUPLE: + imsg_compose(ibuf, IMSG_CTL_FIB_COUPLE, 0, 0, NULL, 0); + printf("couple request sent.\n"); + done = 1; + break; + case FIB_DECOUPLE: + imsg_compose(ibuf, IMSG_CTL_FIB_DECOUPLE, 0, 0, NULL, 0); + printf("decouple request sent.\n"); + done = 1; + break; case RELOAD: imsg_compose(ibuf, IMSG_CTL_RELOAD, 0, 0, NULL, 0); printf("reload request sent.\n"); @@ -246,6 +259,9 @@ main(int argc, char *argv[]) done = show_fib_interface_msg(&imsg); break; case NONE: + case FIB: + case FIB_COUPLE: + case FIB_DECOUPLE: case RELOAD: break; } |