[quagga-dev 3509] Re: IPv6 and netlink problems revisited

Paul Jakma paul at clubi.ie
Thu Jun 9 15:14:00 BST 2005


On Thu, 9 Jun 2005, Hasso Tepper wrote:

> Pointless. Why you always have to think about so complicated 
> solutions?

Wow, you're in a good mood today ;)

Sorry, I was just trying to think of RIB-side solutions, as I dont 
really understand whats going on on the netlink side. (I presumed if 
there were an easy solution on that side, you'd have suggested it).

> If you accept breaking it, there is much simpler solution:
>
> diff -u -3 -p -r1.36 rt_netlink.c
> --- rt_netlink.c        9 Apr 2005 16:59:28 -0000       1.36
> +++ rt_netlink.c        9 Jun 2005 14:04:18 -0000
> @@ -874,7 +874,7 @@ netlink_route_change (struct sockaddr_nl
>   if (rtm->rtm_protocol == RTPROT_KERNEL)
>     return 0;
>
> -  if (rtm->rtm_protocol == RTPROT_ZEBRA && h->nlmsg_type == RTM_NEWROUTE)
> +  if (rtm->rtm_protocol == RTPROT_ZEBRA)
>     return 0;
>
>   if (rtm->rtm_src_len != 0)


> But it isn't solution for me, it introduces just another race condition.

Which is?

regards,
-- 
Paul Jakma	paul at clubi.ie	paul at jakma.org	Key ID: 64A2FF6A
Fortune:
Look afar and see the end from the beginning.



More information about the Quagga-dev mailing list