Commit 1ae7154c authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix check for 172.16.0.0/12.

parent 4e0e8c0e
...@@ -298,7 +298,7 @@ main(int argc, char **argv) ...@@ -298,7 +298,7 @@ main(int argc, char **argv)
v4mapped(routes[i].prefix) && v4mapped(routes[i].prefix) &&
routes[i].prefix[12] != 10 && routes[i].prefix[12] != 10 &&
(routes[i].prefix[12] != 172 || (routes[i].prefix[12] != 172 ||
routes[i].prefix[13] != 16) && (routes[i].prefix[13] & 0xF0) != 16) &&
(routes[i].prefix[12] != 192 || (routes[i].prefix[12] != 192 ||
routes[i].prefix[13] != 168)) { routes[i].prefix[13] != 168)) {
memcpy(myid, routes[i].prefix, 16); memcpy(myid, routes[i].prefix, 16);
......
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