Commit 6a467e93 authored by Michael Tremer's avatar Michael Tremer

networks: Test if we can add localhost (IPv6)

Signed-off-by: default avatarMichael Tremer <michael.tremer@ipfire.org>
parent 13ad6e69
......@@ -175,6 +175,13 @@ int main(int argc, char** argv) {
exit(EXIT_FAILURE);
}
// Try adding localhost
err = loc_writer_add_network(writer, &network, "::1/128");
if (err != -EINVAL) {
fprintf(stderr, "It was possible to add localhost (::1/128): %d\n", err);
exit(EXIT_FAILURE);
}
FILE* f = tmpfile();
if (!f) {
fprintf(stderr, "Could not open file for writing: %s\n", strerror(errno));
......
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