Commit e66658b0 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Filter ::1 in martian_filter.

parent aec9bd98
...@@ -317,7 +317,8 @@ martian_prefix(const unsigned char *prefix, int plen) ...@@ -317,7 +317,8 @@ martian_prefix(const unsigned char *prefix, int plen)
return return
(plen >= 8 && prefix[0] == 0xFF) || (plen >= 8 && prefix[0] == 0xFF) ||
(plen >= 10 && prefix[0] == 0xFE && (prefix[1] & 0xC0) == 0x80) || (plen >= 10 && prefix[0] == 0xFE && (prefix[1] & 0xC0) == 0x80) ||
(plen >= 128 && memcmp(prefix, zeroes, 16) == 0) || (plen >= 128 && memcmp(prefix, zeroes, 15) == 0 &&
(prefix[15] == 0 || prefix[15] == 1)) ||
(plen >= 96 && v4mapped(prefix) && (plen >= 96 && v4mapped(prefix) &&
((plen >= 104 && (prefix[12] == 127 || prefix[12] == 0)) || ((plen >= 104 && (prefix[12] == 127 || prefix[12] == 0)) ||
(plen >= 100 && (plen >= 100 &&
......
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