[radvd-devel-l] Solicited Router Advertisements not coming when the test asks for them.
ninad.adi at elitecore.com
Thu Jul 30 02:35:59 EDT 2009
I am running radvd daemon for ipv6 ready tests,
but I am not getting radvd solicited router advertisements.
I debugged the code in gdb and found that the problem was
the destination address was not getting set to --> all nodes/hosts multicast
address i.e ff02::1.
The problem I faced is -->
In the file send.c , in the routine send_ra() Line 114/115
There is one condition
if ( dest == NULL )
116 struct timeval tv;
118 dest = (struct in6_addr *)all_hosts_addr;
119 gettimeofday(&tv, NULL);
121 iface->last_multicast_sec = tv.tv_sec;
122 iface->last_multicast_usec = tv.tv_usec;
Even if my dest. is NULL and source address is unspecified( :: )
This condition is not fulfilled and so solicited router advertisements are
I changed the condition to
if ( dest == NULL || dest != NULL )
for specific tests which were depending on solicited router advertisements
and the things started working fine. My Tests are passing.
But the question is First of all why I need to change the code and get
solicited router advertisements.
Why the original condition was not getting satisfied ?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the radvd-devel-l