From 93e62b255f32a33e21eed1171de38a9b05bb377c Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Wed, 22 Mar 2006 15:37:45 +0000 Subject: 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@ --- usr.sbin/ospfctl/ospfctl.c | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'usr.sbin/ospfctl/ospfctl.c') 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 @@ -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; } -- cgit v1.2.3