From owner-freebsd-stable@FreeBSD.ORG Tue May 8 16:08:09 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 75EDB16A403 for ; Tue, 8 May 2007 16:08:09 +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 13DCF13C44C for ; Tue, 8 May 2007 16:08:08 +0000 (UTC) (envelope-from nicolas@i.0x5.de) Received: by pc5.i.0x5.de (Postfix, from userid 1003) id 7506961DF7; Tue, 8 May 2007 18:08:07 +0200 (CEST) Date: Tue, 8 May 2007 18:08:07 +0200 From: Nicolas Rachinsky To: freebsd-stable@FreeBSD.ORG Message-ID: <20070508160807.GA35747@mid.pc5.i.0x5.de> Mail-Followup-To: freebsd-stable@FreeBSD.ORG References: <20070508151525.Y839@thinkpad.dieringer.dyndns.org> <200705081429.l48ETYYr087578@lurza.secnetix.de> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="VS++wcV0S1rZb1Fb" Content-Disposition: inline In-Reply-To: <200705081429.l48ETYYr087578@lurza.secnetix.de> 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) Cc: Subject: Re: clock problem 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: Tue, 08 May 2007 16:08:09 -0000 --VS++wcV0S1rZb1Fb Content-Type: text/plain; charset=us-ascii Content-Disposition: inline * Oliver Fromme [2007-05-08 16:29 +0200]: > How are you redialling? If you get a new dynamic IP > address, it might be necessary to restart ntpd. > For example, if you use ppp(8) for dial-up, you can > write a "linkup" script that performs the restart. I use the attached patch. Nicolas -- http://www.rachinsky.de/nicolas --VS++wcV0S1rZb1Fb 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); --VS++wcV0S1rZb1Fb--