test: 192.0.2.0/24 is the actual -TEST-NET-1 (#4133)

Section 3 of rfc 5737 lists 192.0.2.0/24 as TEST-NET-1,
fix confusion about /8 and /24.
This commit is contained in:
prubel 2023-10-17 22:24:34 +00:00 committed by GitHub
parent dc1bb0088e
commit 815dd8a25c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -79,7 +79,7 @@ static void send_cb(uv_udp_send_t* req, int status) {
TEST_IMPL(udp_send_hang_loop) {
ASSERT_OK(uv_idle_init(uv_default_loop(), &idle_handle));
/* 192.0.2.0/8 is "TEST-NET" and reserved for documentation.
/* 192.0.2.0/24 is "TEST-NET" and reserved for documentation.
* Good for us, though. Since we want to have something unreachable.
*/
ASSERT_OK(uv_ip4_addr("192.0.2.3", TEST_PORT, &addr));