Add IPv6 support to dntpd
authorMatthias Schmidt <matthias@dragonflybsd.org>
Fri, 9 Jan 2009 11:35:25 +0000 (12:35 +0100)
committerMatthias Schmidt <matthias@dragonflybsd.org>
Fri, 9 Jan 2009 11:35:25 +0000 (12:35 +0100)
commit4d1d74ba3c1fe85df343e4059c80bc704eec0312
tree06180a6c9d23128a7200df73213afd382261863d
parentb9c3e75403e5d983e1a3526d8618a914a6076d6b
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.

Reviewed-by: sephe@
usr.sbin/dntpd/client.h
usr.sbin/dntpd/defs.h
usr.sbin/dntpd/dntpd.8
usr.sbin/dntpd/main.c
usr.sbin/dntpd/socket.c