From owner-svn-src-all@FreeBSD.ORG Mon Jun 6 09:32:54 2011 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1DA021065672; Mon, 6 Jun 2011 09:32:54 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 7B2688FC1D; Mon, 6 Jun 2011 09:32:53 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:fd51:79c7:b47f:35f4] (unknown [IPv6:2001:7b8:3a7:0:fd51:79c7:b47f:35f4]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 877E65C37; Mon, 6 Jun 2011 11:32:52 +0200 (CEST) Message-ID: <4DEC9EC1.9070206@FreeBSD.org> Date: Mon, 06 Jun 2011 11:32:49 +0200 From: Dimitry Andric Organization: The FreeBSD Project User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.18pre) Gecko/20110527 Lanikai/3.1.11pre MIME-Version: 1.0 To: Hiroki Sato References: <201106060306.p5636hR5008901@svn.freebsd.org> In-Reply-To: <201106060306.p5636hR5008901@svn.freebsd.org> Content-Type: multipart/mixed; boundary="------------060203090403090309070709" Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r222732 - in head: sys/netinet usr.sbin/rtadvd usr.sbin/rtsold X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Jun 2011 09:32:54 -0000 This is a multi-part message in MIME format. --------------060203090403090309070709 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2011-06-06 05:06, Hiroki Sato wrote: > Author: hrs > Date: Mon Jun 6 03:06:43 2011 > New Revision: 222732 > URL: http://svn.freebsd.org/changeset/base/222732 > > Log: > - Implement RDNSS and DNSSL options (RFC 6106, IPv6 Router Advertisement > Options for DNS Configuration) into rtadvd(8) and rtsold(8). DNS > information received by rtsold(8) will go to resolv.conf(5) by > resolvconf(8) script. This is based on work by J.R. Oldroyd (kern/156259) > but revised extensively[1]. > > - rtadvd(8) now supports "noifprefix" to disable gathering on-link prefixes > from interfaces when no "addr" is specified[2]. An entry in rtadvd.conf > with "noifprefix" + no "addr" generates an RA message with no prefix > information option. > > - rtadvd(8) now supports RTM_IFANNOUNCE message to fix crashes when an > interface is added or removed. > > - Correct bogus ND_OPT_ROUTE_INFO value to one in RFC 4191. ... > Modified: head/usr.sbin/rtadvd/Makefile > ============================================================================== > --- head/usr.sbin/rtadvd/Makefile Mon Jun 6 02:46:22 2011 (r222731) > +++ head/usr.sbin/rtadvd/Makefile Mon Jun 6 03:06:43 2011 (r222732) > @@ -23,6 +23,6 @@ LDADD= -lutil > > CFLAGS+= -DHAVE_ARC4RANDOM -DHAVE_POLL_H -DROUTEINFO > > -WARNS?= 1 > +WARNS?= 6 Hi, This code is not yet WARNS=6 clean, at least not on amd64: cc1: warnings being treated as errors /usr/src/usr.sbin/rtadvd/rtadvd.c: In function 'rtadvd_input': /usr/src/usr.sbin/rtadvd/rtadvd.c:793: warning: format '%d' expects type 'int', but argument 4 has type 'ssize_t' /usr/src/usr.sbin/rtadvd/rtadvd.c:834: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t' /usr/src/usr.sbin/rtadvd/rtadvd.c:880: warning: format '%d' expects type 'int', but argument 6 has type 'ssize_t' *** Error code 1 (continuing) cc1: warnings being treated as errors /usr/src/usr.sbin/rtadvd/config.c: In function 'dname_labelenc': /usr/src/usr.sbin/rtadvd/config.c:112: warning: format '%d' expects type 'int', but argument 4 has type 'long int' *** Error code 1 (continuing) `all' not remade because of errors. 1 error Please apply the attached patch, which fixes the warnings. --------------060203090403090309070709 Content-Type: text/plain; name="rtadvd-fmt-1.diff" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="rtadvd-fmt-1.diff" SW5kZXg6IHVzci5zYmluL3J0YWR2ZC9jb25maWcuYwo9PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSB1c3Iu c2Jpbi9ydGFkdmQvY29uZmlnLmMJKHJldmlzaW9uIDIyMjczNykKKysrIHVzci5zYmluL3J0 YWR2ZC9jb25maWcuYwkod29ya2luZyBjb3B5KQpAQCAtMTA5LDcgKzEwOSw3IEBAIGRuYW1l X2xhYmVsZW5jKGNoYXIgKmRzdCwgY29uc3QgY2hhciAqc3JjKQogCS8qIEFsd2F5cyBuZWVk IGEgMC1sZW5ndGggbGFiZWwgYXQgdGhlIHRhaWwuICovCiAJKmRzdCsrID0gJ1wwJzsKIAot CXN5c2xvZyhMT0dfREVCVUcsICI8JXM+IGxhYmVsbGVuID0gJWQiLCBfX2Z1bmNfXywgZHN0 IC0gZHN0X29yaWdpbik7CisJc3lzbG9nKExPR19ERUJVRywgIjwlcz4gbGFiZWxsZW4gPSAl dGQiLCBfX2Z1bmNfXywgZHN0IC0gZHN0X29yaWdpbik7CiAJcmV0dXJuIChkc3QgLSBkc3Rf b3JpZ2luKTsKIH0KIApJbmRleDogdXNyLnNiaW4vcnRhZHZkL2R1bXAuYwo9PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09Ci0tLSB1c3Iuc2Jpbi9ydGFkdmQvZHVtcC5jCShyZXZpc2lvbiAyMjI3MzcpCisrKyB1 c3Iuc2Jpbi9ydGFkdmQvZHVtcC5jCSh3b3JraW5nIGNvcHkpCkBAIC0zMTAsNyArMzEwLDcg QEAg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XQpKSB7CiAJCQlzeXNsb2coTE9HX05PVElDRSwKIAkJCSAgICAiPCVzPiBS UyBmcm9tICVzIG9uICVzIGRvZXMgbm90IGhhdmUgZW5vdWdoICIKLQkJCSAgICAibGVuZ3Ro IChsZW4gPSAlZCkiLAorCQkJICAgICJsZW5ndGggKGxlbiA9ICV6ZCkiLAogCQkJICAgIF9f ZnVuY19fLAogCQkJICAgIGluZXRfbnRvcChBRl9JTkVUNiwgJnJjdmZyb20uc2luNl9hZGRy LCBudG9wYnVmLAogCQkJICAgIHNpemVvZihudG9wYnVmKSksCkBAIC04NzMsNyArODczLDcg QEAgcnRhZHZkX2lucHV0KHZvaWQpCiAJCWlmICgoc2l6ZV90KWkgPCBzaXplb2Yoc3RydWN0 IG5kX3JvdXRlcl9hZHZlcnQpKSB7CiAJCQlzeXNsb2coTE9HX05PVElDRSwKIAkJCSAgICAi PCVzPiBSQSBmcm9tICVzIG9uICVzIGRvZXMgbm90IGhhdmUgZW5vdWdoICIKLQkJCSAgICAi bGVuZ3RoIChsZW4gPSAlZCkiLAorCQkJICAgICJsZW5ndGggKGxlbiA9ICV6ZCkiLAogCQkJ ICAgIF9fZnVuY19fLAogCQkJICAgIGluZXRfbnRvcChBRl9JTkVUNiwgJnJjdmZyb20uc2lu Nl9hZGRyLCBudG9wYnVmLAogCQkJICAgIHNpemVvZihudG9wYnVmKSksCg== --------------060203090403090309070709--