From: Guus Sliepen Date: Sat, 12 Jul 2014 12:24:16 +0000 (+0200) Subject: Reserve legacy active bit in connection_status_t. X-Git-Tag: release-1.1pre11~68 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=5aed916ef4fd75e6843f8fe739444dae91ea106a;p=tinc Reserve legacy active bit in connection_status_t. This is so the positions of the other bits don't change, making it easier to debug problems with different versions of tinc. Also fix the padding so connection_status_t is exactly 32 bits. --- diff --git a/src/connection.h b/src/connection.h index b62d41b7..b74b582a 100644 --- a/src/connection.h +++ b/src/connection.h @@ -36,6 +36,7 @@ typedef struct connection_status_t { unsigned int pinged:1; /* sent ping */ + unsigned int unused_active:1; unsigned int connecting:1; /* 1 if we are waiting for a non-blocking connect() to finish */ unsigned int unused_termreq:1; /* the termination of this connection was requested */ unsigned int remove_unused:1; /* Set to 1 if you want this connection removed */ @@ -48,7 +49,7 @@ typedef struct connection_status_t { unsigned int log:1; /* 1 if this is a control connection requesting log dump */ 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; + unsigned int unused:18; } connection_status_t; #include "ecdsa.h"