X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnode.h;h=16bdb7c08d200910818a766357e425ff7db88935;hb=ec34f25228d7a0007ce6bcb1e97f263868e9129d;hp=f96c56e383ac24bd555aa1af9c08eeab6c2e5561;hpb=f22b9417510cca258785f8958c8dfed90e26d81b;p=tinc diff --git a/src/node.h b/src/node.h index f96c56e3..16bdb7c0 100644 --- a/src/node.h +++ b/src/node.h @@ -17,9 +17,14 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: node.h,v 1.1.2.2 2001/10/09 19:37:10 guus Exp $ + $Id: node.h,v 1.1.2.4 2001/10/10 20:35:10 guus Exp $ */ +#ifndef __TINC_NODE_H__ +#define __TINC_NODE_H__ + +#include + typedef struct node_t { char *name; /* name of this connection */ int protocol_version; /* used protocol */ @@ -29,8 +34,6 @@ typedef struct node_t { short unsigned int port; /* port number of UDP connection */ char *hostname; /* the hostname of its real ip */ - status_bits_t status; /* status info */ - EVP_CIPHER *cipher; /* Cipher type for UDP packets */ char *key; /* Cipher key and iv */ int keylength; /* Cipher key and iv length*/ @@ -45,3 +48,8 @@ typedef struct node_t { struct config_t *config; /* Pointer to configuration tree belonging to this node */ } node_t; + +struct node_t *myself; +extern avl_tree_t *node_tree; + +#endif /* __TINC_NODE_H__ */