X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnode.h;h=b5cd8a741b5ad8283a1ef63ddd346c0268263ee4;hb=2a7f11c0e90f5f0465bbc3c75de715454066ff72;hp=e4dcd5249f7ac62cc76ddebab95c6621d734c825;hpb=f75dcef72a81a337e847adf0bae54198894f65b9;p=tinc diff --git a/src/node.h b/src/node.h index e4dcd524..b5cd8a74 100644 --- a/src/node.h +++ b/src/node.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: node.h,v 1.1.2.20 2002/09/09 21:24:41 guus Exp $ + $Id: node.h,v 1.1.2.23 2003/07/06 23:16:28 guus Exp $ */ #ifndef __TINC_NODE_H__ @@ -54,7 +54,8 @@ typedef struct node_t { const EVP_CIPHER *cipher; /* Cipher type for UDP packets */ char *key; /* Cipher key and iv */ int keylength; /* Cipher key and iv length */ - + EVP_CIPHER_CTX packet_ctx; /* Cipher context */ + const EVP_MD *digest; /* Digest type for MAC */ int maclength; /* Length of MAC */ @@ -73,6 +74,7 @@ typedef struct node_t { uint32_t sent_seqno; /* Sequence number last sent to this node */ uint32_t received_seqno; /* Sequence number last received from this node */ + unsigned char late[16]; /* Bitfield marking late packets */ } node_t; extern struct node_t *myself; @@ -81,7 +83,7 @@ extern avl_tree_t *node_udp_tree; extern void init_nodes(void); extern void exit_nodes(void); -extern node_t *new_node(void); +extern node_t *new_node(void) __attribute__ ((malloc)); extern void free_node(node_t *); extern void node_add(node_t *); extern void node_del(node_t *);