Isn't it possible to use `long2ip` for better performance, with a long integer calculated to match either `192.168.x.x`, or  `10.x.x.x`?