ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gvpe/src/conf.h
(Generate patch)

Comparing gvpe/src/conf.h (file contents):
Revision 1.1 by pcg, Sat Mar 1 15:53:03 2003 UTC vs.
Revision 1.6 by pcg, Fri Mar 21 23:17:01 2003 UTC

29# include <rsa.h> 29# include <rsa.h>
30#endif 30#endif
31 31
32#include <vector> 32#include <vector>
33 33
34#include "slog.h"
34#include "global.h" 35#include "global.h"
35 36
36#define DEFAULT_REKEY 3600 37#define DEFAULT_REKEY 3600
37#define DEFAULT_KEEPALIVE 60 // one keepalive/minute (it's just 48 bytes...) 38#define DEFAULT_KEEPALIVE 60 // one keepalive/minute (it's just 48 bytes...)
38#define DEFAULT_PORT 655 // same as tinc, conflicts would be rara 39#define DEFAULT_PORT 655 // same as tinc, conflicts would be rara
44 char *nodename; // nodename, an internal nickname. 45 char *nodename; // nodename, an internal nickname.
45 46
46 char *hostname; // hostname, if known, or NULL. 47 char *hostname; // hostname, if known, or NULL.
47 u16 port; // the port to bind to 48 u16 port; // the port to bind to
48 49
49 enum { C_ONDEMAND, C_NEVER, C_ALWAYS } connectmode; 50 enum connectmode { C_ONDEMAND, C_NEVER, C_ALWAYS } connectmode;
50 bool compress; 51 bool compress;
52 bool inherit_tos; // inherit TOS in packets send to this destination
53 u32 can_recv, can_send;
51 54
52 u32 routerprio; 55 u32 routerprio;
53 56
54 void print (); 57 void print ();
55 58
71struct configuration { 74struct configuration {
72 typedef vector<conf_node *> node_vector; 75 typedef vector<conf_node *> node_vector;
73 node_vector nodes; 76 node_vector nodes;
74 conf_node default_node; 77 conf_node default_node;
75 conf_node *thisnode; 78 conf_node *thisnode;
76 int mtu; // the mtu used for outgoing tunnel packets 79 int mtu; // the mtu used for outgoing tunnel packets
77 int rekey; // rekey interval 80 double rekey; // rekey interval
78 int keepalive; // keepalive probes interval 81 double keepalive; // keepalive probes interval
79 char *ifname; // the interface name (tap0 ...) 82 char *ifname; // the interface name (tap0 ...)
80 bool ifpersist; // should the interface be persistent 83 bool ifpersist; // should the interface be persistent
81 char *prikeyfile; 84 char *prikeyfile;
85 loglevel llevel;
82 RSA *rsa_key; // our private rsa key 86 RSA *rsa_key; // our private rsa key
83 87
84 char *script_if_up; 88 char *script_if_up;
85 char *script_node_up; 89 char *script_node_up;
86 char *script_node_down; 90 char *script_node_down;
87 91

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines