From 36a108a9bf9da074f98ee91206ba982e82b96262 Mon Sep 17 00:00:00 2001 From: Jiri Skala Date: Fri, 12 Aug 2011 12:19:51 +0200 Subject: [PATCH] fixes #729367 - supress unadvisable messages - applied upstream changes --- radvd-1.8-logs.patch | 33 +++++++++++++++++++++++++++++++++ radvd.spec | 9 ++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 radvd-1.8-logs.patch diff --git a/radvd-1.8-logs.patch b/radvd-1.8-logs.patch new file mode 100644 index 0000000..695085e --- /dev/null +++ b/radvd-1.8-logs.patch @@ -0,0 +1,33 @@ +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); + } diff --git a/radvd.spec b/radvd.spec index 8bc54cb..9af4c44 100644 --- a/radvd.spec +++ b/radvd.spec @@ -4,7 +4,7 @@ Summary: A Router Advertisement daemon Name: radvd Version: 1.8 -Release: 1%{?dist} +Release: 2%{?dist} # The code includes the advertising clause, so it's GPL-incompatible License: BSD with advertising Group: System Environment/Daemons @@ -20,6 +20,8 @@ Requires(pre): /usr/sbin/useradd BuildRequires: flex, flex-static, byacc BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Patch1: radvd-1.8-logs.patch + %description radvd is the router advertisement daemon for IPv6. It listens to router solicitations and sends router advertisements as described in "Neighbor @@ -34,6 +36,8 @@ services. %prep %setup -q +%patch1 -p1 -b .logs + %build export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIE" export LDFLAGS='-pie -Wl,-z,relro,-z,now,-z,noexecstack,-z,nodlopen' @@ -109,6 +113,9 @@ exit 0 %{_sbindir}/radvdump %changelog +* Fri Aug 12 2011 Jiri Skala - 1.8-2 +- fixes #729367 - supress unadvisable messages - applied upstream changes + * Tue May 17 2011 Jiri Skala - 1.8-1 - update to latest upstream version 1.8