diff --git a/libifupdown/state.c b/libifupdown/state.c index ed4f344..6e26066 100644 --- a/libifupdown/state.c +++ b/libifupdown/state.c @@ -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); } diff --git a/libifupdown/state.h b/libifupdown/state.h index bec039c..ae2ba5c 100644 --- a/libifupdown/state.h +++ b/libifupdown/state.h @@ -17,11 +17,14 @@ #define LIBIFUPDOWN_STATE_H__GUARD #include +#include #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);