add addr_perm() and range_perm()