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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <60f766ec7553471f774314459e849dc3f3324aea.camel@gmail.com>
Date:   Fri, 13 Nov 2020 12:54:05 -0800
From:   Andreas Roeseler <andreas.a.roeseler@...il.com>
To:     davem@...emloft.net
Cc:     kuznet@....inr.ac.ru, yoshfuji@...ux-ipv6.org, kuba@...nel.org,
        netdev@...r.kernel.org
Subject: Re: [PATCH 1/3] net: add support for sending probe messages

On Thu, 2020-11-12 at 21:02 -0800, Andreas Roeseler wrote:
> Modifying the ping_supported function to support probe messages
> allows
> users to send probe messages while using the existing framework for
> sending ping messages.
> 
> Signed-off-by: Andreas Roeseler <andreas.a.roeseler@...il.com>
> ---
>  net/ipv4/ping.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/net/ipv4/ping.c b/net/ipv4/ping.c
> index 248856b301c4..0077ef838fef 100644
> --- a/net/ipv4/ping.c
> +++ b/net/ipv4/ping.c
> @@ -453,7 +453,9 @@ EXPORT_SYMBOL_GPL(ping_bind);
>  static inline int ping_supported(int family, int type, int code)
>  {
>         return (family == AF_INET && type == ICMP_ECHO && code == 0)
> ||
> -              (family == AF_INET6 && type == ICMPV6_ECHO_REQUEST &&
> code == 0);
> +              (family == AF_INET && type == ICMP_EXT_ECHO  && code
> == 0) ||
> +              (family == AF_INET6 && type == ICMPV6_ECHO_REQUEST &&
> code == 0) ||
> +              (family == AF_INET6 && type == ICMPV6_EXT_ECHO_REQUEST
> && code == 0);
>  }
>  
>  /*


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ