summaryrefslogtreecommitdiff
path: root/clients/cloud-setup/nmcs-provider.h
diff options
context:
space:
mode:
Diffstat (limited to 'clients/cloud-setup/nmcs-provider.h')
-rw-r--r--clients/cloud-setup/nmcs-provider.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/clients/cloud-setup/nmcs-provider.h b/clients/cloud-setup/nmcs-provider.h
index 3edd874337..3b0c2529ed 100644
--- a/clients/cloud-setup/nmcs-provider.h
+++ b/clients/cloud-setup/nmcs-provider.h
@@ -12,11 +12,16 @@
typedef struct {
in_addr_t *ipv4s_arr;
gsize ipv4s_len;
- gssize iface_idx;
- in_addr_t cidr_addr;
- guint8 cidr_prefix;
- bool has_ipv4s : 1;
- bool has_cidr : 1;
+
+ /* If the interface was seen, get_config() should set this to a
+ * unique, increasing, positive index. If the interface is requested,
+ * it is initialized to -1. */
+ gssize iface_idx;
+
+ in_addr_t cidr_addr;
+ guint8 cidr_prefix;
+ bool has_ipv4s : 1;
+ bool has_cidr : 1;
NMIPRoute **iproutes_arr;
gsize iproutes_len;