[PATCH 4/9] util: move IP stuff from util.[ch] to ip.[ch]