state: add lif_state_record::is_explicit

This commit is contained in:
Ariadne Conill 2020-10-21 08:15:52 -06:00
parent 817262fa33
commit 4f7063ba0f
2 changed files with 4 additions and 0 deletions

View file

@ -99,6 +99,7 @@ lif_state_upsert(struct lif_dict *state, const char *ifname, struct lif_interfac
rec->mapped_if = strdup(iface->ifname);
rec->refcount = iface->refcount;
rec->is_explicit = iface->is_explicit;
lif_dict_add(state, ifname, rec);
}

View file

@ -17,11 +17,14 @@
#define LIBIFUPDOWN_STATE_H__GUARD
#include <stdio.h>
#include <stdbool.h>
#include "libifupdown/interface.h"
struct lif_state_record {
char *mapped_if;
size_t refcount;
bool is_explicit;
};
extern bool lif_state_read(struct lif_dict *state, FILE *f);