diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-04 19:39:47 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-01-04 19:39:47 +0000 |
commit | 5b0dae60071f3691da10254fc987c1f5f086e9ad (patch) | |
tree | 407496dab0c706903e705cc31bec478982404159 /usr.sbin/bgpd/bgpd.c | |
parent | f96f673c3d6c854eb7853103f6a09e6b33c4ace0 (diff) |
-new imsg CTL_RELOAD
-upong receival in the SE forward to parent
-make sending messages from SE to parent work for that (was not required before)
-parent reacts to that just like a SIGHUP, reread config file
Diffstat (limited to 'usr.sbin/bgpd/bgpd.c')
-rw-r--r-- | usr.sbin/bgpd/bgpd.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c index 6b95380fe77..2254203a2f0 100644 --- a/usr.sbin/bgpd/bgpd.c +++ b/usr.sbin/bgpd/bgpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.c,v 1.52 2004/01/03 20:37:34 henning Exp $ */ +/* $OpenBSD: bgpd.c,v 1.53 2004/01/04 19:39:46 henning Exp $ */ /* * Copyright (c) 2003 Henning Brauer <henning@openbsd.org> @@ -426,6 +426,12 @@ dispatch_imsg(struct imsgbuf *ibuf, int idx, struct mrt_config *conf) kroute_nexthop_delete(ina); } break; + case IMSG_CTL_RELOAD: + if (idx != PFD_PIPE_SESSION) + logit(LOG_CRIT, "reload request not from SE"); + else + reconfig = 1; + break; default: break; } |