X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fconnection.h;h=9a35461f7b4434e8c51703ec6c7db32d88a4da1b;hb=ec34f25228d7a0007ce6bcb1e97f263868e9129d;hp=c60562c245471a247a7990240ce74b05bcc084c4;hpb=ec0c16b9b63f361b11a757ee1641d562e4811f93;p=tinc diff --git a/src/connection.h b/src/connection.h index c60562c2..9a35461f 100644 --- a/src/connection.h +++ b/src/connection.h @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: connection.h,v 1.1.2.14 2001/10/10 08:49:47 guus Exp $ + $Id: connection.h,v 1.1.2.16 2001/10/10 20:35:10 guus Exp $ */ #ifndef __TINC_CONNECTION_H__ @@ -72,6 +72,7 @@ typedef struct connection_t { int protocol_version; /* used protocol */ int socket; /* socket used for this connection */ + long int options; /* options for this connection */ status_bits_t status; /* status info */ struct node_t *node; /* node associated with the other end */ @@ -89,7 +90,7 @@ typedef struct connection_t { char *mychallenge; /* challenge we received from him */ char *hischallenge; /* challenge we sent to him */ - char *buffer; /* metadata input buffer */ + char buffer[MAXBUFSIZE]; /* metadata input buffer */ int buflen; /* bytes read into buffer */ int tcplen; /* length of incoming TCPpacket */ int allow_request; /* defined if there's only one request possible */