lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:   Wed, 25 Oct 2017 08:56:06 -0700
From:   Shannon Nelson <shannon.lee.nelson@...il.com>
To:     David Miller <davem@...emloft.net>
Cc:     netdev@...r.kernel.org
Subject: Re: [RFC PATCH 05/12] net: Create and use new helper xfrm_dst_child().

On Wed, Oct 25, 2017 at 7:03 AM, David Miller <davem@...emloft.net> wrote:
>
>
> diff --git a/include/net/xfrm.h b/include/net/xfrm.h
> index f002a2c5e33c..4fa951112873 100644
> --- a/include/net/xfrm.h
> +++ b/include/net/xfrm.h
> @@ -994,6 +994,15 @@ struct xfrm_dst {
>  };
>
>  #ifdef CONFIG_XFRM

Perhaps the new xfrm_dst_child() code needs to go before this #ifdef?
sln

>
> +static inline struct dst_entry *xfrm_dst_child(const struct dst_entry *dst)
> +{
> +#ifdef CONFIG_XFRM
> +       if (dst->xfrm)
> +               return dst->child;
> +#endif
> +       return NULL;
> +}
> +


-- 
==============================================
Mr. Shannon Nelson         Parents can't afford to be squeamish.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ