[PATCH net-next] selftests: add IPv4 unicast extensions tests

2021-01-20 Thread Seth David Schoen
may not be used as unicast. Signed-off-by: Seth David Schoen Suggested-by: John Gilmore --- tools/testing/selftests/net/Makefile | 1 + .../selftests/net/unicast_extensions.sh | 230 ++ 2 files changed, 231 insertions(+) create mode 100755 tools/testing

[PATCH net-next v2] selftests: add IPv4 unicast extensions tests

2021-01-25 Thread Seth David Schoen
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/

[PATCH net-next v3] selftests: add IPv4 unicast extensions tests

2021-01-26 Thread Seth David Schoen
/4 may not be used as unicast. Signed-off-by: Seth David Schoen Suggested-by: John Gilmore Acked-by: Dave Taht --- tools/testing/selftests/net/Makefile | 1 + .../selftests/net/unicast_extensions.sh | 228 ++ 2 files changed, 229 insertions(+) create mode

[PATCH net-next 1/2] ip: Treat IPv4 segment's lowest address as unicast

2021-03-19 Thread Seth David Schoen
Treat the lowest-numbered address in each IPv4 network segment as unicast, not broadcast. Signed-off-by: Seth David Schoen Suggested-by: John Gilmore Acked-by: Dave Taht --- net/ipv4/fib_frontend.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/ipv4/fib_frontend.c

[PATCH net-next 0/2] Treat IPv4 lowest address as ordinary unicast address

2021-03-19 Thread Seth David Schoen
on about behavior of other systems in this regard by e-mail or as future patches to kernel documentation files. Seth David Schoen (2): ip: Treat IPv4 segment's lowest address as unicast selftests: Lowest IPv4 address in a subnet is valid net/ipv4/fib_frontend.c

[PATCH net-next 2/2] selftests: Lowest IPv4 address in a subnet is valid

2021-03-19 Thread Seth David Schoen
Expect the lowest IPv4 address in a subnet to be assignable and addressable as a unicast (non-broadcast) address on a local network segment. Signed-off-by: Seth David Schoen Acked-by: Dave Taht --- .../testing/selftests/net/unicast_extensions.sh | 17 + 1 file changed, 9