X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fnode.h;h=82294a7fc12ab0bea153040af1889e64e4ad04f9;hb=4124b9682f8f890acb25d0c92f2583eef670274a;hp=7b777288c82639719930e63e4a14b134c797d351;hpb=551cd19406a560d0d206bff5b4e9da064ec222b6;p=tinc diff --git a/src/node.h b/src/node.h index 7b777288..82294a7f 100644 --- a/src/node.h +++ b/src/node.h @@ -1,6 +1,6 @@ /* node.h -- header for node.c - Copyright (C) 2001-2006 Guus Sliepen , + Copyright (C) 2001-2009 Guus Sliepen , 2001-2005 Ivo Timmermans This program is free software; you can redistribute it and/or modify @@ -54,13 +54,14 @@ typedef struct node_t { node_status_t status; - cipher_t cipher; /* Cipher for UDP packets */ - digest_t digest; /* Digest for UDP packets */ - int maclength; /* Portion of digest to use */ + cipher_t incipher; /* Cipher for UDP packets */ + digest_t indigest; /* Digest for UDP packets */ - int compression; /* Compressionlevel, 0 = no compression */ + cipher_t outcipher; /* Cipher for UDP packets */ + digest_t outdigest; /* Digest for UDP packets */ - list_t *queue; /* Queue for packets awaiting to be encrypted */ + int incompression; /* Compressionlevel, 0 = no compression */ + int outcompression; /* Compressionlevel, 0 = no compression */ int distance; struct node_t *nexthop; /* nearest node from us to him */ @@ -96,5 +97,6 @@ extern void node_del(node_t *); extern node_t *lookup_node(char *); extern node_t *lookup_node_udp(const sockaddr_t *); extern int dump_nodes(struct evbuffer *); +extern void update_node_udp(node_t *, const sockaddr_t *); #endif /* __TINC_NODE_H__ */