X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fconnection.h;h=ef688549062689e6b66cac2006ee4e9b03147188;hb=947f09ff2c507a80bbe7f92ed0d41b06c98d5375;hp=27513e975fbb1ef73e89b7abb573b5041769093c;hpb=3bcd5ec746a5575c0c66f8b34922c038eb363b0a;p=meshlink diff --git a/src/connection.h b/src/connection.h index 27513e97..ef688549 100644 --- a/src/connection.h +++ b/src/connection.h @@ -40,6 +40,7 @@ typedef struct connection_status_t { uint16_t log: 1; /* 1 if this is a control connection requesting log dump */ uint16_t invitation: 1; /* 1 if this is an invitation */ uint16_t invitation_used: 1; /* 1 if the invitation has been consumed */ + uint16_t initiator: 1; /* 1 if we initiated this connection */ } connection_status_t; #include "ecdsa.h" @@ -76,11 +77,6 @@ typedef struct connection_t { ecdsa_t *ecdsa; /* his public ECDSA key */ int protocol_major; /* used protocol */ int protocol_minor; /* used protocol */ - - // Unused/deprecated - uint32_t options; /* options for this connection */ - int incompression; - int outcompression; } connection_t; extern void init_connections(struct meshlink_handle *mesh);