More ipallocator refactoring

Now x1.5 faster

Signed-off-by: Alexandr Morozov <lk4d4math@gmail.com>
Implementing IPv6

Signed-off-by: Malte Janduda <mail@janduda.net>