X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fconnection.h;h=1410c5cc7d6d333f1a5cb61e46a8d7840a545035;hb=8d7a4c48cac3708dc8bc88b7d6ede01b80268b4d;hp=5b6a94c46c39ba8ebb4c34b1098df01970ae6a6c;hpb=9b9230a0a79c670b86f54fadd2807b864ff9d91f;p=meshlink diff --git a/src/connection.h b/src/connection.h index 5b6a94c4..1410c5cc 100644 --- a/src/connection.h +++ b/src/connection.h @@ -47,7 +47,9 @@ typedef struct connection_status_t { unsigned int control:1; /* 1 if this is a control connection */ unsigned int pcap:1; /* 1 if this is a control connection requesting packet capture */ unsigned int log:1; /* 1 if this is a control connection requesting log dump */ - unsigned int unused:20; + unsigned int invitation:1; /* 1 if this is an invitation */ + unsigned int invitation_used:1; /* 1 if the invitation has been consumed */ + unsigned int unused:19; } connection_status_t; #include "ecdsa.h" @@ -108,6 +110,5 @@ extern connection_t *new_connection(void) __attribute__ ((__malloc__)); extern void free_connection(connection_t *); extern void connection_add(connection_t *); extern void connection_del(connection_t *); -extern bool dump_connections(struct connection_t *); #endif /* __TINC_CONNECTION_H__ */