+ bool default_blacklist;
+ bool discovery; // Whether mDNS discovery is enabled or not
+ bool inviter_commits_first;
+
+ // Configuration
+ char *confbase;
+ FILE *lockfile;
+ void *config_key;
+ char *external_address_url;
+ struct list_t *invitation_addresses;
+ meshlink_storage_policy_t storage_policy;
+
+ // Thread management
+ pthread_t thread;
+ pthread_cond_t cond;
+ pthread_mutex_t discovery_mutex;
+ pthread_cond_t discovery_cond;
+ bool threadstarted;
+ bool discovery_threadstarted;
+
+ // mDNS discovery
+ io_t pfroute_io;
+ int *discovery_ifaces;
+ struct discovery_address *discovery_addresses;
+ int discovery_iface_count;
+ int discovery_address_count;
+ io_t discovery_sockets[2];
+
+ // ADNS
+ pthread_t adns_thread;
+ pthread_cond_t adns_cond;
+ meshlink_queue_t adns_queue;
+ meshlink_queue_t adns_done_queue;
+ signal_t adns_signal;