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