summaryrefslogtreecommitdiff
path: root/usr.sbin/ospfd/ospfd.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2005-03-15 22:03:57 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2005-03-15 22:03:57 +0000
commit6c43ce0a87e4135c87e825ee6010fe73e1fedd90 (patch)
treed561d6a23be0181530a8c904582f0273ec618e1e /usr.sbin/ospfd/ospfd.c
parentca2b4fe95174a634c722406dcf18371f0e4c4f2b (diff)
Add control messages for the show fib commands.
OK norby@ deraadt@
Diffstat (limited to 'usr.sbin/ospfd/ospfd.c')
-rw-r--r--usr.sbin/ospfd/ospfd.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/ospfd.c b/usr.sbin/ospfd/ospfd.c
index 0cf43983da7..1a965e2bcc9 100644
--- a/usr.sbin/ospfd/ospfd.c
+++ b/usr.sbin/ospfd/ospfd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ospfd.c,v 1.8 2005/03/08 20:12:18 norby Exp $ */
+/* $OpenBSD: ospfd.c,v 1.9 2005/03/15 22:03:56 claudio Exp $ */
/*
* Copyright (c) 2005 Claudio Jeker <claudio@openbsd.org>
@@ -329,6 +329,16 @@ main_dispatch_ospfe(int fd, short event, void *bula)
case IMSG_CTL_FIB_DECOUPLE:
kr_fib_decouple();
break;
+ case IMSG_CTL_KROUTE:
+ case IMSG_CTL_KROUTE_ADDR:
+ kr_show_route(&imsg);
+ break;
+ case IMSG_CTL_IFINFO:
+ if (imsg.hdr.len != IMSG_HEADER_SIZE + IFNAMSIZ)
+ log_warnx("IFINFO request with wrong len");
+ else
+ kr_ifinfo(imsg.data);
+ break;
default:
log_debug("main_dispatch_ospfe: error handling imsg %d",
imsg.hdr.type);