From owner-freebsd-stable@FreeBSD.ORG Thu Jul 19 18:19:31 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C4D8616A400 for ; Thu, 19 Jul 2007 18:19:31 +0000 (UTC) (envelope-from nicolas@i.0x5.de) Received: from n.0x5.de (n.0x5.de [217.197.85.144]) by mx1.freebsd.org (Postfix) with ESMTP id 3E85A13C4A5 for ; Thu, 19 Jul 2007 18:19:31 +0000 (UTC) (envelope-from nicolas@i.0x5.de) Received: by pc5.i.0x5.de (Postfix, from userid 1003) id 842DA61C54; Thu, 19 Jul 2007 19:54:16 +0200 (CEST) Date: Thu, 19 Jul 2007 19:54:16 +0200 From: Nicolas Rachinsky To: FreeBSD Stable Message-ID: <20070719175416.GA73915@mid.pc5.i.0x5.de> Mail-Followup-To: FreeBSD Stable References: <469F9A85.4090209@gmx.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline In-Reply-To: X-Powered-by: FreeBSD X-Homepage: http://www.rachinsky.de X-PGP-Keyid: 887BAE72 X-PGP-Fingerprint: 039E 9433 115F BC5F F88D 4524 5092 45C4 887B AE72 X-PGP-Keys: http://www.rachinsky.de/nicolas/gpg/nicolas_rachinsky.asc User-Agent: Mutt/1.5.15 (2007-04-06) Subject: Re: ntpd just sits there and does nothing X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Jul 2007 18:19:31 -0000 --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline * Doug Hardie [2007-07-19 10:32 -0700]: > Are you on a static IP address? If not, ntpd obtains its IP address when it > starts up and uses it forever. If your IP address changes then it will not > be able to communicate with the upstream ntp servers. It has to be > restarted everytime your IP address changes. I use the attached patch to avoid the restarts. I used a similar patch on 4.X for some years and noticed no bad effects. Nicolas -- http://www.rachinsky.de/nicolas --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename=ntpd --- contrib/ntp/ntpd/ntp_io.c.orig Tue Jul 20 17:01:27 2004 +++ contrib/ntp/ntpd/ntp_io.c Fri Oct 6 00:32:31 2006 @@ -466,6 +466,14 @@ if (scan_ipv6 == ISC_FALSE && family == AF_INET6) continue; + if(strncmp(isc_if.name,"tun",3)==0) + { + if (debug) + printf("ignoring <%s> (tun*)\n", isc_if.name); + continue; + } + + /* Check to see if we are going to use the interface */ if (address_okay(&isc_if) == ISC_TRUE) { convert_isc_if(&isc_if, &inter_list[idx], port); --qDbXVdCdHGoSgWSk--