diff options
author | claudio <claudio@openbsd.org> | 2019-12-13 14:10:56 +0000 |
---|---|---|
committer | claudio <claudio@openbsd.org> | 2019-12-13 14:10:56 +0000 |
commit | ac6d3615d70d55db368e3e2fcb993fb067f31551 (patch) | |
tree | 3315aac64650a9e65f4105c2ec904d4557b9e681 /usr.sbin | |
parent | add support for CIDR in a: spf atoms (diff) | |
download | wireguard-openbsd-ac6d3615d70d55db368e3e2fcb993fb067f31551.tar.xz wireguard-openbsd-ac6d3615d70d55db368e3e2fcb993fb067f31551.zip |
In rde_dispatch_imsg_session() reorder the case blocks a bit so they
group better together.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/bgpd/rde.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.sbin/bgpd/rde.c b/usr.sbin/bgpd/rde.c index 504d1149605..f500233fe27 100644 --- a/usr.sbin/bgpd/rde.c +++ b/usr.sbin/bgpd/rde.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rde.c,v 1.491 2019/11/27 01:21:54 claudio Exp $ */ +/* $OpenBSD: rde.c,v 1.492 2019/12/13 14:10:56 claudio Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -616,10 +616,6 @@ badnetdel: imsg_compose(ibuf_se_ctl, IMSG_CTL_SHOW_NEIGHBOR, 0, imsg.hdr.pid, -1, &p, sizeof(struct peer)); break; - case IMSG_CTL_END: - imsg_compose(ibuf_se_ctl, IMSG_CTL_END, 0, imsg.hdr.pid, - -1, NULL, 0); - break; case IMSG_CTL_SHOW_RIB_MEM: imsg_compose(ibuf_se_ctl, IMSG_CTL_SHOW_RIB_MEM, 0, imsg.hdr.pid, -1, &rdemem, sizeof(rdemem)); @@ -643,6 +639,13 @@ badnetdel: memcpy(&verbose, imsg.data, sizeof(verbose)); log_setverbose(verbose); break; + case IMSG_CTL_END: + imsg_compose(ibuf_se_ctl, IMSG_CTL_END, 0, imsg.hdr.pid, + -1, NULL, 0); + break; + case IMSG_CTL_TERMINATE: + rde_dump_ctx_terminate(imsg.hdr.pid); + break; case IMSG_XON: if (imsg.hdr.peerid) { peer = peer_get(imsg.hdr.peerid); @@ -661,9 +664,6 @@ badnetdel: rde_dump_ctx_throttle(imsg.hdr.pid, 1); } break; - case IMSG_CTL_TERMINATE: - rde_dump_ctx_terminate(imsg.hdr.pid); - break; default: break; } |