On Mon, 2003-08-25 at 14:25, Ruud de Rooij wrote:
> This means that if you do not want to receive any prefixes at all, you'd
> set maximum-prefix to 0 on Cisco and to 1 on Zebra. If you want to
> receive exactly 1 prefix, you need to set it to 2 on Zebra, etc.
>
> Personally, I regard this as a bug in Zebra.
Fortunately it's a one character fix. I'm not going to bounce all my BGP
sessions to correct this in my running binaries, but here's the patch.
% cvs diff bgpd/bgp_route.c
Index: bgpd/bgp_route.c
===================================================================
RCS file: /var/cvsroot/quagga/bgpd/bgp_route.c,v
retrieving revision 1.5
diff -r1.5 bgp_route.c
873c873
< if (peer->pcount[afi][safi] >= peer->pmax[afi][safi])
---
> if (peer->pcount[afi][safi] > peer->pmax[afi][safi])
--
Jeff S Wheeler <jsw@five-elements.com>
> This means that if you do not want to receive any prefixes at all, you'd
> set maximum-prefix to 0 on Cisco and to 1 on Zebra. If you want to
> receive exactly 1 prefix, you need to set it to 2 on Zebra, etc.
>
> Personally, I regard this as a bug in Zebra.
Fortunately it's a one character fix. I'm not going to bounce all my BGP
sessions to correct this in my running binaries, but here's the patch.
% cvs diff bgpd/bgp_route.c
Index: bgpd/bgp_route.c
===================================================================
RCS file: /var/cvsroot/quagga/bgpd/bgp_route.c,v
retrieving revision 1.5
diff -r1.5 bgp_route.c
873c873
< if (peer->pcount[afi][safi] >= peer->pmax[afi][safi])
---
> if (peer->pcount[afi][safi] > peer->pmax[afi][safi])
--
Jeff S Wheeler <jsw@five-elements.com>