ifquery: when querying state, denote presence of the explicit flag

This commit is contained in:
Ariadne Conill 2020-10-21 08:32:29 -06:00
parent b09d622cfc
commit 61097b1db2

View file

@ -182,7 +182,8 @@ list_state(struct lif_dict *state, struct match_options *opts)
if (listing_running)
printf("%s\n", entry->key);
else
printf("%s=%s %zu\n", entry->key, rec->mapped_if, rec->refcount);
printf("%s=%s %zu%s\n", entry->key, rec->mapped_if, rec->refcount,
rec->is_explicit ? " explicit" : "");
}
}