+next_alias:
+ continue;
+ }
+ if (set && !strcmp(net->name, "lan")) {
+ ucimap_free_item(&net->map, &net->ipaddr);
+ ucimap_set_changed(&net->map, &net->ipaddr);
+ ucimap_resize_list(&net->map, &net->aliases, n_aliases);
+ net->aliases->n_items = 0;
+ list_for_each_entry(alias, &net->alias, list) {
+ net->aliases->item[net->aliases->n_items++].ptr = alias;
+ }
+ ucimap_set_changed(&net->map, &net->aliases);
+ ucimap_store_section(&network_map, pkg, &net->map);
+ uci_save(ctx, pkg);