[quagga-dev 6602] Re: [PATCH] bgp: reference count the BGP instance

Stephen Hemminger shemminger at vyatta.com
Thu May 21 18:27:20 BST 2009


On Thu, 21 May 2009 12:43:51 -0400
Michael Lambert <lambert at psc.edu> wrote:

> Not wanting to be pedantic, but should lock be int or unsigned?
> 
> Michael
> 
> On 21 May 2009, at 11:51, Stephen Hemminger wrote:
> 
> > struct peer *
> > --- a/bgpd/bgpd.h	2009-03-11 08:57:09.454314578 -0700
> > +++ b/bgpd/bgpd.h	2009-05-21 08:43:05.979402292 -0700
> > @@ -70,6 +70,9 @@ struct bgp
> >   /* Name of this BGP instance.  */
> >   char *name;
> >
> > +  /* Reference count to allow peer_delete to finish after  
> > bgp_delete */
> > +  int lock;
> > +
> >   /* Self peer.  */
> >   struct peer *peer_self;
> 
> _______________________________________________
> Quagga-dev mailing list
> Quagga-dev at lists.quagga.net
> http://lists.quagga.net/mailman/listinfo/quagga-dev

All the other lock values are int (peer etc).

-- 



More information about the Quagga-dev mailing list