don't rely on AF_MAX (comes from kernel include): check for nil explicitly,