local ipOps = require "ipOps"

prerule = function() return true end
action = function()
  local output = {}
  local ranges = ipOps.get_ranges_from_ips("0.0.0.1", "255.255.255.254")
  for _, range in ipairs(ranges) do
    local first, last = ipOps.get_ips_from_range(range)
    output[#output+1] = string.format("%s\t%s-%s", range, first, last)
  end
  return output
end
