Convert IP sublists to netmasks