diff options
author | 2005-10-18 15:42:15 +0000 | |
---|---|---|
committer | 2005-10-18 15:42:15 +0000 | |
commit | e01828d080985acd81afbf3da628a52dc6afa10a (patch) | |
tree | b8249a5d4d084c473491197b91ba13a0b0d0740f | |
parent | Cleanup interface code a minimal bit. There is no need for if_shutdown(), (diff) | |
download | wireguard-openbsd-e01828d080985acd81afbf3da628a52dc6afa10a.tar.xz wireguard-openbsd-e01828d080985acd81afbf3da628a52dc6afa10a.zip |
Simplify code a bit. OK norby@
-rw-r--r-- | usr.sbin/ospfd/control.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.sbin/ospfd/control.c b/usr.sbin/ospfd/control.c index 3c7dab95fe0..319ada77571 100644 --- a/usr.sbin/ospfd/control.c +++ b/usr.sbin/ospfd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.11 2005/05/12 19:10:12 norby Exp $ */ +/* $OpenBSD: control.c,v 1.12 2005/10/18 15:42:15 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -224,6 +224,7 @@ control_dispatch_imsg(int fd, short event, void *bula) case IMSG_CTL_FIB_COUPLE: case IMSG_CTL_FIB_DECOUPLE: case IMSG_CTL_RELOAD: + c->ibuf.pid = imsg.hdr.pid; ospfe_imsg_compose_parent(imsg.hdr.type, 0, NULL, 0); break; case IMSG_CTL_KROUTE: @@ -250,6 +251,8 @@ control_dispatch_imsg(int fd, short event, void *bula) case IMSG_CTL_SHOW_DB_SELF: case IMSG_CTL_SHOW_DB_SUM: case IMSG_CTL_SHOW_DB_ASBR: + case IMSG_CTL_SHOW_RIB: + case IMSG_CTL_SHOW_SUM: c->ibuf.pid = imsg.hdr.pid; ospfe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid, imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE); @@ -257,12 +260,6 @@ control_dispatch_imsg(int fd, short event, void *bula) case IMSG_CTL_SHOW_NBR: ospfe_nbr_ctl(c); break; - case IMSG_CTL_SHOW_RIB: - case IMSG_CTL_SHOW_SUM: - c->ibuf.pid = imsg.hdr.pid; - ospfe_imsg_compose_rde(imsg.hdr.type, 0, imsg.hdr.pid, - imsg.data, imsg.hdr.len - IMSG_HEADER_SIZE); - break; default: log_debug("control_dispatch_imsg: " "error handling imsg %d", imsg.hdr.type); |