Date: Thu, 19 Jul 2007 19:54:16 +0200 From: Nicolas Rachinsky <fbsd-stable-0@ml.turing-complete.org> To: FreeBSD Stable <freebsd-stable@freebsd.org> Subject: Re: ntpd just sits there and does nothing Message-ID: <20070719175416.GA73915@mid.pc5.i.0x5.de> In-Reply-To: <D06F0E19-AC3E-45DC-82DA-443B59863D4F@lafn.org> References: <469F9A85.4090209@gmx.de> <D06F0E19-AC3E-45DC-82DA-443B59863D4F@lafn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline * Doug Hardie <bc979@lafn.org> [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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070719175416.GA73915>