module JamRuby
def ip_address_to_int(ip)
ip.split('.').inject(0) { |total, value| (total << 8) + value.to_i }
end