state: migrate to lif_state_record from a bare dictionary containing the mapped ifs
This commit is contained in:
parent
923b96fab8
commit
8e4eb5d00c
3 changed files with 30 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue