diff options
| author | 2005-02-09 10:56:28 +0000 | |
|---|---|---|
| committer | 2005-02-09 10:56:28 +0000 | |
| commit | 24e022e1688fd19a8ece1ff7faa5fadc0ee38e70 (patch) | |
| tree | 510fdf1fdc50e2497651a279087d8de08bc00888 | |
| parent | Attach to the D-Link DWL-510. (diff) | |
| download | wireguard-openbsd-24e022e1688fd19a8ece1ff7faa5fadc0ee38e70.tar.xz wireguard-openbsd-24e022e1688fd19a8ece1ff7faa5fadc0ee38e70.zip | |
need to send IMSG_NETWORK_DONE after sending networks and associated filter
sets, otherwise local netyworks get withdrawn after config reload;
misbehaviour noticed by peter.galbavy@knowtion.net, claudio ok
| -rw-r--r-- | usr.sbin/bgpd/bgpd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/bgpd.c b/usr.sbin/bgpd/bgpd.c index a238c577183..d2877ef1aef 100644 --- a/usr.sbin/bgpd/bgpd.c +++ b/usr.sbin/bgpd/bgpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.c,v 1.112 2005/02/02 18:52:32 henning Exp $ */ +/* $OpenBSD: bgpd.c,v 1.113 2005/02/09 10:56:28 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -433,6 +433,9 @@ reconfigure(char *conffile, struct bgpd_config *conf, struct mrt_head *mrt_l, return (-1); if (send_filterset(ibuf_rde, &n->net.attrset, 0, 1) == -1) return (-1); + if (imsg_compose(ibuf_rde, IMSG_NETWORK_DONE, 0, 0, -1, + NULL, 0) == -1) + return (-1); TAILQ_REMOVE(&net_l, n, entry); free(n); } |
