[IPV6]: Check length of int/boolean optval provided by user in setsockopt().