Bjoern A. Zeeb 541ab6a6c5 The argument to setsockopt for IP_MULTICAST_LOOP depends on operating
system and is decided upon by configure and could be an u_int or a
u_char.  For FreeBSD it is a u_char.

For IPv6 however RFC 3493, 5.2 defines the argument to
IPV6_MULTICAST_LOOP to be an unsigned integer so make sure we always
use that using a second variable for the IPV6 case.
This is to get rid of these error messages every 5 minutes on some
systems:
ntpd[1530]: setsockopt IPV6_MULTICAST_LOOP failure: Invalid argument
  on socket 22, addr fe80::... for multicast address ff02::101

While here also fix the copy&paste error in the log message for
IPV6_MULTICAST_LOOP.

Reviewed by:	roberto
Sponsored by:	The FreeBSD Foundation
Sponsored by:	iXsystems
MFC after:	10 days
Filed as:	Bug 1936 on ntp.org
2011-05-29 07:40:48 +00:00
..
2011-05-22 22:16:19 +00:00
2010-11-09 18:32:57 +00:00
2010-02-28 22:06:07 +00:00
2010-10-08 09:43:06 +00:00
2011-05-22 22:17:06 +00:00
2011-05-22 22:14:15 +00:00
2011-03-12 07:03:06 +00:00
2011-05-18 21:06:20 +00:00
2011-05-18 21:04:29 +00:00
2010-11-18 18:22:58 +00:00
2011-05-09 21:51:59 +00:00
2011-05-11 21:52:26 +00:00
2011-05-25 14:13:53 +00:00
2010-03-22 11:00:57 +00:00
2010-10-28 19:10:15 +00:00
2011-04-28 14:43:38 +00:00
2010-10-27 07:14:46 +00:00
2011-04-26 22:14:10 +00:00
2010-11-03 10:46:39 +00:00
2011-02-24 13:42:35 +00:00