[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <eee96675-38b8-0252-a004-97c3537230be@gmail.com>
Date: Mon, 25 Jan 2021 21:26:41 -0700
From: David Ahern <dsahern@...il.com>
To: Seth David Schoen <schoen@...alty.org>,
Jakub Kicinski <kuba@...nel.org>, netdev@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>,
David Ahern <dsahern@...nel.org>, John Gilmore <gnu@...d.com>
Subject: Re: [PATCH net-next v3] selftests: add IPv4 unicast extensions tests
On 1/25/21 9:08 PM, Seth David Schoen wrote:
> Add selftests for kernel behavior with regard to various classes of
> unallocated/reserved IPv4 addresses, checking whether or not these
> addresses can be assigned as unicast addresses on links and used in
> routing.
>
> Expect the current kernel behavior at the time of this patch. That is:
>
> * 0/8 and 240/4 may be used as unicast, with the exceptions of 0.0.0.0
> and 255.255.255.255;
> * the lowest address in a subnet may only be used as a broadcast address;
> * 127/8 may not be used as unicast (the route_localnet option, which is
> disabled by default, still leaves it treated slightly specially);
> * 224/4 may not be used as unicast.
>
> Signed-off-by: Seth David Schoen <schoen@...alty.org>
> Suggested-by: John Gilmore <gnu@...d.com>
> Acked-by: Dave Taht <dave.taht@...il.com>
> ---
> tools/testing/selftests/net/Makefile | 1 +
> .../selftests/net/unicast_extensions.sh | 228 ++++++++++++++++++
> 2 files changed, 229 insertions(+)
> create mode 100755 tools/testing/selftests/net/unicast_extensions.sh
>
Reviewed-by: David Ahern <dsahern@...nel.org>
Powered by blists - more mailing lists