More updates to new node/vertex/connection combo.
[tinc] / src / connection.h
index c60562c..9a35461 100644 (file)
@@ -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 */