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
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 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
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
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
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