Framework implementation for SOL_SOCKET level options in setsockopt(2)