AF_UNSPECを指定してる証拠にIPv6も引けてる。 0372名無しさん@お腹いっぱい。2010/11/24(水) 12:25:49 バージョンは? 0373名無しさん@お腹いっぱい。2010/11/24(水) 13:43:27 FreeBSD 8.1 とか Solaris10 とかその他諸々試したからバージョンは関係なし。 というか、>>372 自身で適当なサンプルプログラムで実験してみればわかることだろ。 0374名無しさん@お腹いっぱい。2010/11/24(水) 17:08:17 RFC3484のDestination Address SelectionのRule 9で選択してるんだろ。 正しい動作。DNSラウンドロビンによる負荷分散は時代遅れ。 Rule 9: Use longest matching prefix. When DA and DB belong to the same address family (both are IPv6 or both are IPv4): If CommonPrefixLen(DA, Source(DA)) > CommonPrefixLen(DB, Source(DB)), then prefer DA. Similarly, if CommonPrefixLen(DA, Source(DA)) < CommonPrefixLen(DB, Source(DB)), then prefer DB.
Source(D)は We write Source(D) to indicate the selected source address for a destination D. For IPv6 addresses, the previous section specifies the source address selection algorithm. Source address selection for IPv4 addresses is not specified in this document. 0375名無しさん@お腹いっぱい。2010/11/24(水) 17:28:16>>374 自分のホストのIPアドレスに一番近いプリフィックスのIPアドレスを選んでる ってわけか。で、一番近いプリフィックスのIPアドレスが1個しかない場合は その1個が固定的に選ばれるw
http://www.freebsd.org/cgi/cvsweb.cgi/src/etc/rc.d/ntpd Revision 1.9: download - view: text, markup, annotated - select for diffs Tue Sep 14 03:01:38 2004 UTC (6 years, 4 months ago) by seanc Branches: MAIN Diff to: previous 1.8: preferred, colored Changes since revision 1.8: +5 -0 lines Stop using ntpdate(1) in our startup proceedure. Replace ntpdate(1) with calls to ntpd -g. ntpd is noticably slower than ntpdate, but is also more accurate. This removes the nasty hackery in rc.d/ntpdate that would parse out ntp servers from /etc/ntp.conf (ntpd knows how to read its own config file). By default, ntpd *will* sync with its listed time servers. To turn this off so that ntpd does not sync, ntpd_sync_on_start="NO" can be added to /etc/rc.conf. If ntpd is not enabled (the default), then time is not synced on startup. ntpdate's use has been depreciated by the ntpd authors for quite some time so this change shouldn't be unexpected. 0421名無しさん@お腹いっぱい。2011/01/26(水) 19:16:28 そこはつっこんでもあんまり意味なくね。 0422名無しさん@お腹いっぱい。2011/01/26(水) 19:33:28 クロックがバッテリバックアップされていない等、起動時に大きくずれているケースがある。 年単位でずれてるんだから、オプショナルで-gを追加せざるを得ない。
DESCRIPTION Note: The functionality of this program is now available in the ntpd(8) program. See the -q command line option in the ntpd(8) page. After a suitable period of mourning, the ntpdate utility is to be retired from this distribution.