[IPV6]: Fix the return value of ipv6_getsockopt