From owner-freebsd-hackers Sun Feb 3 9:16:23 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from cheer.mahoroba.org (flets19-017.kamome.or.jp [218.45.19.17]) by hub.freebsd.org (Postfix) with ESMTP id A07F337B41A for ; Sun, 3 Feb 2002 09:16:18 -0800 (PST) Received: from mille.mahoroba.org (IDENT:DIEE9hEvzul4nFjD4tgkixf7t1hLQhCkr8eM1lpNiVYhHN2Z3qOcIcLcvbA2VZFW@mille.mahoroba.org [IPv6:2001:200:301:0:202:2dff:fe0a:6bee]) (user=ume mech=CRAM-MD5 bits=0) by cheer.mahoroba.org (8.12.2/8.12.2) with ESMTP/inet6 id g13HGBHk091054 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Mon, 4 Feb 2002 02:16:11 +0900 (JST) (envelope-from ume@mahoroba.org) Date: Mon, 04 Feb 2002 02:16:11 +0900 Message-ID: From: Hajimu UMEMOTO To: Marco Wertejuk Cc: freebsd-hackers@freebsd.org Subject: Re: rtadvd bugfix? In-Reply-To: <20020202024949.A2176@motoko.hayai.de> References: <20020202024949.A2176@motoko.hayai.de> User-Agent: xcite1.38> Wanderlust/2.8.1 (Something) SEMI/1.14.3 (Ushinoya) FLIM/1.14.3 (=?ISO-8859-4?Q?Unebigory=F2mae?=) APEL/10.3 Emacs/21.1 (i386--freebsd) MULE/5.0 (=?ISO-2022-JP?B?GyRCOC1MWhsoQg==?=) X-Operating-System: FreeBSD 4.5-RELEASE MIME-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by AMaViS-perl11-milter (http://amavis.org/) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, >>>>> On Sat, 2 Feb 2002 02:49:49 +0100 >>>>> Marco Wertejuk said: wertejuk> I was really nerved when I noticed that rtadvd is exiting wertejuk> without any notice if the host is not an ipv6 gateway. wertejuk> Since it took me a lot of time to find this problem wertejuk> I wrote a patch for rtadvd to show a message and wertejuk> noticed something strange: wertejuk> rtadvd won't exit even if ipv6 forwarding is not wertejuk> enabled, take a look at this patch. (attachement) wertejuk> Watch out for the changed if-condition. wertejuk> Is that really a bug ? No, I don't think it is a bug. The value of `forwarding' is checked later. From config.c: /* * Basically, hosts MUST NOT send Router Advertisement messages at any * time (RFC 2461, Section 6.2.3). However, it would sometimes be * useful to allow hosts to advertise some parameters such as prefix * information and link MTU. Thus, we allow hosts to invoke rtadvd * only when router lifetime (on every advertising interface) is * explicitly set zero. (see also the above section) */ if (val && forwarding == 0) { syslog(LOG_WARNING, "<%s> non zero router lifetime is specified for %s, " "which must not be allowed for hosts.", __FUNCTION__, intface); exit(1); } And, I believe the message goes to syslog in this case. Sincerely, -- Hajimu UMEMOTO @ Internet Mutual Aid Society Yokohama, Japan ume@mahoroba.org ume@bisd.hitachi.co.jp ume@{,jp.}FreeBSD.org http://www.imasy.org/~ume/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message