diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-03-15 22:03:57 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2005-03-15 22:03:57 +0000 |
commit | 6c43ce0a87e4135c87e825ee6010fe73e1fedd90 (patch) | |
tree | d561d6a23be0181530a8c904582f0273ec618e1e /usr.sbin/ospfd/control.c | |
parent | ca2b4fe95174a634c722406dcf18371f0e4c4f2b (diff) |
Add control messages for the show fib commands.
OK norby@ deraadt@
Diffstat (limited to 'usr.sbin/ospfd/control.c')
-rw-r--r-- | usr.sbin/ospfd/control.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/usr.sbin/ospfd/control.c b/usr.sbin/ospfd/control.c index a566aed0895..ce9a9e9d6ee 100644 --- a/usr.sbin/ospfd/control.c +++ b/usr.sbin/ospfd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.7 2005/03/15 16:59:45 claudio Exp $ */ +/* $OpenBSD: control.c,v 1.8 2005/03/15 22:03:56 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -226,6 +226,13 @@ control_dispatch_imsg(int fd, short event, void *bula) case IMSG_CTL_RELOAD: ospfe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0); break; + case IMSG_CTL_KROUTE: + case IMSG_CTL_KROUTE_ADDR: + c->ibuf.pid = imsg.hdr.pid; + ospfe_imsg_compose_parent(imsg.hdr.type, + imsg.hdr.pid, imsg.data, + imsg.hdr.len - IMSG_HEADER_SIZE); + break; case IMSG_CTL_SHOW_INTERFACE: if (imsg.hdr.len == IMSG_HEADER_SIZE + sizeof(ifidx)) { |