[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bgpd and lost networks after reload ?



* 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