state: add lif_state_record::is_explicit
This commit is contained in:
parent
817262fa33
commit
4f7063ba0f
2 changed files with 4 additions and 0 deletions
|
@ -99,6 +99,7 @@ lif_state_upsert(struct lif_dict *state, const char *ifname, struct lif_interfac
|
||||||
|
|
||||||
rec->mapped_if = strdup(iface->ifname);
|
rec->mapped_if = strdup(iface->ifname);
|
||||||
rec->refcount = iface->refcount;
|
rec->refcount = iface->refcount;
|
||||||
|
rec->is_explicit = iface->is_explicit;
|
||||||
|
|
||||||
lif_dict_add(state, ifname, rec);
|
lif_dict_add(state, ifname, rec);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,11 +17,14 @@
|
||||||
#define LIBIFUPDOWN_STATE_H__GUARD
|
#define LIBIFUPDOWN_STATE_H__GUARD
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdbool.h>
|
||||||
#include "libifupdown/interface.h"
|
#include "libifupdown/interface.h"
|
||||||
|
|
||||||
struct lif_state_record {
|
struct lif_state_record {
|
||||||
char *mapped_if;
|
char *mapped_if;
|
||||||
size_t refcount;
|
size_t refcount;
|
||||||
|
|
||||||
|
bool is_explicit;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern bool lif_state_read(struct lif_dict *state, FILE *f);
|
extern bool lif_state_read(struct lif_dict *state, FILE *f);
|
||||||
|
|
Loading…
Reference in a new issue