📄 115
字号:
Received: from snow-white.ee.udel.edu by whimsy.udel.edu id aa10420; 28 Mar 97 5:00 GMTReceived: from fang.dsto.defence.gov.au (fang.dsto.defence.gov.au [131.185.2.5]) by digger1.defence.gov.au (8.7.5/8.7.3) with ESMTP id PAA27717; Fri, 28 Mar 1997 15:30:38 +1030 (CST)Received: from sibyl.chez-dall.org.au (dall-i.remote.dsto.defence.gov.au [131.185.44.51]) by fang.dsto.defence.gov.au (8.7.6/8.7.6) with ESMTP id PAA10167; Fri, 28 Mar 1997 15:30:14 +1030 (CST)Received: (from ian@localhost) by sibyl.chez-dall.org.au (8.8.5/8.8.5) id PAA20983; Fri, 28 Mar 1997 15:30:11 +1030 (CST)Date: Fri, 28 Mar 1997 15:30:11 +1030 (CST)Message-Id: <199703280500.PAA20983@sibyl.chez-dall.org.au>From: Ian Dall <Ian.Dall@dsto.defence.gov.au>MIME-Version: 1.0Content-Type: text/plain; charset=us-asciiContent-Transfer-Encoding: 7bitTo: Mills@huey.udel.edu, stenn@whimsy.udel.eduSubject: Re: xntpd gets confused by unreachable networksIn-Reply-To: <9703252242.aa20070@huey.udel.edu>References: <9703252242.aa20070@huey.udel.edu>X-Mailer: VM 6.22 under Emacs 19.34.2OK. I have solved the problem. It is not, as I thought, packets notbeing delivered, but rather, packets not being received. This is fixedby configuring with --enable-udp-wildcard=yes. I note from theChangeLog that this became the default for freebsd recently. Perhapsit should be the default for netbsd as well. In fact, from the longlist of systems in configure.in for this condition, I wonder if itshould be the default and only list the systems where it *shouldn't*be enabled.On inspection, the code in ntp_io does use sendto. There is some codeto make sure you don't get swamped by messages. I did add the followinginformation message:--- ntp_io.c~ Thu Mar 13 17:56:27 1997+++ ntp_io.c Thu Mar 27 23:03:33 1997@@ -1277,8 +1277,10 @@ /* * He's not bad any more */- if (slot >= 0)+ if (slot >= 0) {+ msyslog(LOG_INFO, "Connection to %s", ntoa(dest)); badaddrs[slot].port = 0;+ } } The idea is if you get a message saying there is "no route to xxx"it would be nice to get a message when there it becomes reachableagain. But this is still assymetric the no route to host isat LOG_ERR.This all arises because if ppp is not up when xntpd is started, itdoesn't recognize the interface, and it sends on the "default"interface. If udp-wildcard is not enabled, data arriving on the default interface is dropped.This interface bit is all pretty contorted and non portable, I wouldhave thought it would be easier to specify interfaces in the configfile (only relevant for broadcast anyway I think).Ian
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -