{
.map = {
UCIMAP_OPTION(struct uci_network, aliases),
- .type = UCIMAP_LIST | UCIMAP_SECTION,
+ .type = UCIMAP_LIST | UCIMAP_SECTION | UCIMAP_LIST_AUTO,
.data.sm = &network_alias
}
}
(net->enabled ? "on" : "off"));
for (i = 0; i < net->aliases->n_items; i++) {
- alias = net->aliases->item[i].section;
+ alias = net->aliases->item[i].ptr;
printf("New alias: %s\n", alias->name);
}
#if 0