[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: bgpd and lost networks after reload ?
- To: misc_(_at_)_openbsd_(_dot_)_org
- Subject: Re: bgpd and lost networks after reload ?
- From: Henning Brauer <lists-openbsd_(_at_)_bsws_(_dot_)_de>
- Date: Tue, 8 Feb 2005 21:13:33 +0100
- Cc: claudio_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
- Mail-followup-to: misc_(_at_)_openbsd_(_dot_)_org, claudio_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org
* Peter Galbavy <peter_(_dot_)_galbavy_(_at_)_knowtion_(_dot_)_net> [2005-02-08 19:43]:
> The behaviour is this:
>
> # bgpctl network sh
> flags: S = Static
> flags destination
> *S 213.253.23.112/28
> # bgpctl reload
> reload request sent.
> # bgpctl network sh
> flags: S = Static
> flags destination
> #
>
>
> Where did my networks go ? After a reload, local networks get withdrawn.
bug.
Index: bgpd.c
===================================================================
RCS file: /cvs/src/usr.sbin/bgpd/bgpd.c,v
retrieving revision 1.112
diff -u -p -r1.112 bgpd.c
--- bgpd.c 2 Feb 2005 18:52:32 -0000 1.112
+++ bgpd.c 8 Feb 2005 20:13:39 -0000
@@ -433,6 +433,9 @@ reconfigure(char *conffile, struct bgpd_
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);
}
Visit your host, monkey.org