setsockopt setting IP_TTL on an AF_INET6 socket succeeds but it should fail because it's supported on AF_INET sockets only.