34 lines
1.5 KiB
Diff
34 lines
1.5 KiB
Diff
diff -up radvd-1.8/process.c.logs radvd-1.8/process.c
|
|
--- radvd-1.8/process.c.logs 2011-04-18 00:23:21.000000000 +0200
|
|
+++ radvd-1.8/process.c 2011-08-12 07:45:39.345324023 +0200
|
|
@@ -132,12 +132,12 @@ process(struct Interface *ifacel, unsign
|
|
|
|
if (icmph->icmp6_type == ND_ROUTER_SOLICIT)
|
|
{
|
|
- flog(LOG_WARNING, "received RS from %s", addr_str);
|
|
+ dlog(LOG_WARNING, 4, "received RS from %s", addr_str);
|
|
process_rs(iface, msg, len, addr);
|
|
}
|
|
else if (icmph->icmp6_type == ND_ROUTER_ADVERT)
|
|
{
|
|
- flog(LOG_WARNING, "received RA from %s", addr_str);
|
|
+ dlog(LOG_WARNING, 4, "received RA from %s", addr_str);
|
|
process_ra(iface, msg, len, addr);
|
|
}
|
|
}
|
|
@@ -194,13 +194,12 @@ process_rs(struct Interface *iface, unsi
|
|
delay = MAX_RA_DELAY_TIME * rand() / (RAND_MAX +1.0);
|
|
|
|
if (iface->UnicastOnly) {
|
|
- dlog(LOG_DEBUG, 3, "random mdelay for %s: %g seconds.", iface->Name, delay/1000.0);
|
|
+ dlog(LOG_DEBUG, 5, "random mdelay for %s: %g seconds.", iface->Name, delay/1000.0);
|
|
mdelay(delay);
|
|
send_ra_forall(iface, &addr->sin6_addr);
|
|
}
|
|
else if ( timevaldiff(&tv, &iface->last_multicast) / 1000.0 < iface->MinDelayBetweenRAs ) {
|
|
/* last RA was sent only a few moments ago, don't send another immediately. */
|
|
- dlog(LOG_DEBUG, 3, "random mdelay for %s: %g seconds.", iface->Name, delay/1000.0);
|
|
next = iface->MinDelayBetweenRAs - (tv.tv_sec + tv.tv_usec / 1000000.0) + (iface->last_multicast.tv_sec + iface->last_multicast.tv_usec / 1000000.0) + delay/1000.0;
|
|
iface->next_multicast = next_timeval(next);
|
|
}
|