Commit d8e74ded authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Micro-optimise v4mapped.

parent 8896ceb6
...@@ -435,7 +435,7 @@ martian_prefix(const unsigned char *prefix, int plen) ...@@ -435,7 +435,7 @@ martian_prefix(const unsigned char *prefix, int plen)
int int
v4mapped(const unsigned char *address) v4mapped(const unsigned char *address)
{ {
return in_prefix(address, v4prefix, 96); return memcmp(address, v4prefix, 12) == 0;
} }
void void
......
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