lib/ippool: Fix listsize calculated 1 elem too small

Take the chance this commit is changing test output to also remove use
of IPPOOL_NOGATEWAY which is going to be removed soon, and instead test
IPPOOL_NOBROADCAST.

Change-Id: I95c24bc690490155bec9e3933d678e4668d7745f
diff --git a/tests/lib/ippool_test.c b/tests/lib/ippool_test.c
index 79e43e7..f38c1be 100644
--- a/tests/lib/ippool_test.c
+++ b/tests/lib/ippool_test.c
@@ -90,20 +90,20 @@
 
 static void test_pool_sizes(void)
 {
-	/* 255 addresses [0..254] */
-	test_pool_size("192.168.23.0/24", 0, 255);
+	/* 256 addresses [0..255] */
+	test_pool_size("192.168.23.0/24", 0, 256);
+
+	/* 255 addresses [1..255] */
+	test_pool_size("192.168.23.0/24", IPPOOL_NONETWORK, 255);
 
 	/* 254 addresses [1..254] */
-	test_pool_size("192.168.23.0/24", IPPOOL_NONETWORK, 254);
+	test_pool_size("192.168.23.0/24", IPPOOL_NONETWORK | IPPOOL_NOBROADCAST, 254);
 
-	/* 253 addresses [2..254] */
-	test_pool_size("192.168.23.0/24", IPPOOL_NOGATEWAY, 253);
+	/* 65534 addresses [0.1..255.254] */
+	test_pool_size("192.168.0.0/16", IPPOOL_NONETWORK | IPPOOL_NOBROADCAST, 65534);
 
-	/* 65533 addresses [3..255.254] */
-	test_pool_size("192.168.0.0/16", IPPOOL_NOGATEWAY, 65533);
-
-	/* 255 prefixes of /64 each */
-	test_pool_size("2001:DB8::/56", 0, 255);
+	/* 256 prefixes of /64 each */
+	test_pool_size("2001:DB8::/56", 0, 256);
 }
 
 int main(int argc, char **argv)