projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use bools and enums where appropriate.
[tinc]
/
src
/
node.h
diff --git
a/src/node.h
b/src/node.h
index
6e5e68e
..
3dd112e
100644
(file)
--- a/
src/node.h
+++ b/
src/node.h
@@
-1,7
+1,7
@@
/*
node.h -- header for node.c
/*
node.h -- header for node.c
- Copyright (C) 2001-200
2
Guus Sliepen <guus@sliepen.eu.org>,
- 2001-200
2
Ivo Timmermans <ivo@o2w.nl>
+ Copyright (C) 2001-200
3
Guus Sliepen <guus@sliepen.eu.org>,
+ 2001-200
3
Ivo Timmermans <ivo@o2w.nl>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@
-17,20
+17,16
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
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
1 2003/04/18 21:18:36
guus Exp $
+ $Id: node.h,v 1.1.2.2
6 2003/07/22 20:55:20
guus Exp $
*/
#ifndef __TINC_NODE_H__
#define __TINC_NODE_H__
*/
#ifndef __TINC_NODE_H__
#define __TINC_NODE_H__
-#ifdef HAVE_INTTYPES_H
-#include <inttypes.h>
-#endif
-
-#include <avl_tree.h>
-
-#include "subnet.h"
+#include "avl_tree.h"
#include "connection.h"
#include "connection.h"
+#include "list.h"
+#include "subnet.h"
typedef struct node_status_t {
int active:1; /* 1 if active.. */
typedef struct node_status_t {
int active:1; /* 1 if active.. */
@@
-49,12
+45,13
@@
typedef struct node_t {
sockaddr_t address; /* his real (internet) ip to send UDP packets to */
char *hostname; /* the hostname of its real ip */
sockaddr_t address; /* his real (internet) ip to send UDP packets to */
char *hostname; /* the hostname of its real ip */
-
struct
node_status_t status;
+ node_status_t status;
const EVP_CIPHER *cipher; /* Cipher type for UDP packets */
char *key; /* Cipher key and iv */
int keylength; /* Cipher key and iv length */
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 */
const EVP_MD *digest; /* Digest type for MAC */
int maclength; /* Length of MAC */
@@
-82,7
+79,7
@@
extern avl_tree_t *node_udp_tree;
extern void init_nodes(void);
extern void exit_nodes(void);
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 *);
extern void free_node(node_t *);
extern void node_add(node_t *);
extern void node_del(node_t *);