X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fconnection.h;h=5160422b346b9a01d054d7f828983dbe8421416a;hp=fd633b3ffcb9e7535ba8c0263ff16dd938b07e62;hb=8c8b506da9ce578fe6e6e406a91bbd21af13f7a3;hpb=282b99f3c71705bd6e34d4e4f9e8369ea63c87ed diff --git a/src/connection.h b/src/connection.h index fd633b3f..5160422b 100644 --- a/src/connection.h +++ b/src/connection.h @@ -34,12 +34,13 @@ typedef struct connection_status_t { uint16_t pinged: 1; /* sent ping */ uint16_t active: 1; /* 1 if active.. */ uint16_t connecting: 1; /* 1 if we are waiting for a non-blocking connect() to finish */ - uint16_t mst: 1; /* 1 if this connection is part of a minimum spanning tree */ + uint16_t unused: 1; uint16_t control: 1; /* 1 if this is a control connection */ uint16_t pcap: 1; /* 1 if this is a control connection requesting packet capture */ 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" @@ -66,6 +67,7 @@ typedef struct connection_t { int tcplen; /* length of incoming TCPpacket */ int allow_request; /* defined if there's only one request possible */ time_t last_ping_time; /* last time we saw some activity from the other end or pinged them */ + time_t last_key_renewal; /* last time we renewed the SPTPS key */ struct outgoing_t *outgoing; /* used to keep track of outgoing connections */