RE: maybe it is a bug in nexthop__same function

2019-03-11 Thread Derek Pan
Got it. Thanks. -Original Message- From: Maria Jan Matějka Sent: Monday, March 11, 2019 6:19 PM To: bird-users@network.cz; Derek Pan ; bird-users@network.cz Subject: Re: maybe it is a bug in nexthop__same function On March 11, 2019 10:57:06 AM GMT+01:00, Derek Pan wrote: > Hi >

Re: maybe it is a bug in nexthop__same function

2019-03-11 Thread Maria Jan Matějka
On March 11, 2019 10:57:06 AM GMT+01:00, Derek Pan wrote: > Hi > > I think below function should be used by comparing two netxhop object > with different pointer. > If this function is called, the X and Y always have different pointer > values, but if their values are same, they also can be treat

Re: maybe it is a bug in nexthop__same function

2019-03-11 Thread Alexander Zubkov
Hi, For me, code looks valid. Loop ends when one of the pointers is null: > x && y So this comparison (x == y) verifies that both pointers are null, i.e. both lists are of the same size. On Mon, Mar 11, 2019 at 11:03 AM Derek Pan wrote: > > Hi > > > > I think below function should be used by c