Commit ffa30f04 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Change our chosen "bad_ip" to 192.0.2.255 which is a broadcast address

from RFC5737's TEST-NET-1 and put a comment there to explain.

I fear this is a loosing battle, but at least this is more "official"
than the previous "10.255.255.255" choice.

Fixes #1159
parent 610d3cbe
......@@ -563,7 +563,15 @@ exec_file(const char *fn, const char *script, const char *tmpdir,
cwd = getcwd(NULL, PATH_MAX);
macro_def(vltop, NULL, "pwd", "%s", cwd);
macro_def(vltop, NULL, "topbuild", "%s/%s", cwd, TOP_BUILDDIR);
macro_def(vltop, NULL, "bad_ip", "10.255.255.255");
/*
* We need an IP number which will not repond, ever, and that is a
* lot harder than it sounds. This IP# is from RFC5737 and a
* C-class broadcast at that.
* If tests involving ${bad_ip} fails and you run linux, you should
* check your /proc/sys/net/ipv4/ip_nonlocal_bind setting.
*/
macro_def(vltop, NULL, "bad_ip", "192.0.2.255");
/* Move into our tmpdir */
AZ(chdir(tmpdir));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment