Added ip2long function that returns an unsigned int.