DragonFly-220.127.116.116.g4d1d7 master usr.sbin/dntpd client.h defs.h dntpd.8 main.c socket.c
Simon 'corecode' Schubert
corecode at fs.ei.tum.de
Fri Jan 9 04:20:27 PST 2009
Matthias Schmidt wrote:
Author: Matthias Schmidt <matthias at dragonflybsd.org>
Date: Fri Jan 9 12:35:25 2009 +0100
Add IPv6 support to dntpd
This commit allows dntpd to work with either IPv4 or IPv6 NTP servers. I added
two new command line switches (-4/-6) to force dntpd to use only v4/v6 addresses.
Thanks to sephe@ for some good hints.
Are you sure this works if the ipv6 server is unreachable? I don't think
that a connect(2) on a udp socket will find that out. You'd actually have
to connect the server to realize that something doesn't work.
Also, you could pass "ntp" instead of 123 to udp_socket/getaddrinfo.
<3 the future +++ RENT this banner advert +++ ASCII Ribbon /"\
rock the past +++ space for low â¬â¬â¬ NOW!1 +++ Campaign \ /
Party Enjoy Relax | http://dragonflybsd.org Against HTML \
Dude 2c 2 the max ! http://golden-apple.biz Mail + News / \
More information about the Commits