state: migrate to lif_state_record from a bare dictionary containing the mapped ifs

This commit is contained in:
Ariadne Conill 2020-09-08 14:59:58 -06:00
parent 923b96fab8
commit 8e4eb5d00c
3 changed files with 30 additions and 8 deletions

View file

@ -215,7 +215,8 @@ list_state(struct lif_dict *state, struct match_options *opts)
fnmatch(opts->include_pattern, entry->key, 0))
continue;
printf("%s=%s\n", entry->key, (const char *) entry->data);
struct lif_state_record *rec = entry->data;
printf("%s=%s %zu\n", entry->key, rec->mapped_if, rec->refcount);
}
}