From 4f7063ba0f3af228811a1af0819c131ab8b57a7a Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Wed, 21 Oct 2020 08:15:52 -0600 Subject: [PATCH] state: add lif_state_record::is_explicit --- libifupdown/state.c | 1 + libifupdown/state.h | 3 +++ 2 files changed, 4 insertions(+) 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);