+ struct ecdsa *private_key;
+ struct ecdsa *invitation_key;
+
+ int32_t devclass;
+
+ int invitation_timeout;
+ int pinginterval; /* seconds between pings */
+ int pingtimeout; /* seconds to wait for response */
+ int maxtimeout;
+ int udp_choice;
+
+ int netns;
+
+ bool default_blacklist;
+ bool discovery; // Whether Catta is enabled or not
+
+
+ // Configuration
+ char *confbase;
+ FILE *conffile;
+ void *config_key;
+
+ // Thread management
+ pthread_t thread;
+ bool threadstarted;
+ bool discovery_threadstarted;
+
+ // Catta
+ pthread_t discovery_thread;
+ struct CattaServer *catta_server;
+ struct CattaSServiceBrowser *catta_browser;
+ struct CattaSimplePoll *catta_poll;
+ struct CattaSEntryGroup *catta_group;
+ char *catta_servicetype;
+ unsigned int catta_interfaces;
+
+ // State used for meshlink_join()
+ int sock;
+ char cookie[18], hash[18];
+ bool success;
+ sptps_t sptps;
+ char *data;
+ size_t thedatalen;
+ size_t blen;
+ char line[4096];
+ char buffer[4096];
+
+ // Proxy configuration, currently not exposed.