… | |
… | |
45 | char *nodename; // nodename, an internal nickname. |
45 | char *nodename; // nodename, an internal nickname. |
46 | |
46 | |
47 | char *hostname; // hostname, if known, or NULL. |
47 | char *hostname; // hostname, if known, or NULL. |
48 | u16 port; // the port to bind to |
48 | u16 port; // the port to bind to |
49 | |
49 | |
50 | enum connectmode { C_ONDEMAND, C_NEVER, C_ALWAYS } connectmode; |
50 | enum connectmode { C_ONDEMAND, C_NEVER, C_ALWAYS, C_DISABLED } connectmode; |
51 | bool compress; |
51 | bool compress; |
|
|
52 | bool inherit_tos; // inherit TOS in packets send to this destination |
|
|
53 | u32 can_recv, can_send; |
52 | |
54 | |
53 | u32 routerprio; |
55 | u32 routerprio; |
54 | |
56 | |
55 | void print (); |
57 | void print (); |
56 | |
58 | |
… | |
… | |
72 | struct configuration { |
74 | struct configuration { |
73 | typedef vector<conf_node *> node_vector; |
75 | typedef vector<conf_node *> node_vector; |
74 | node_vector nodes; |
76 | node_vector nodes; |
75 | conf_node default_node; |
77 | conf_node default_node; |
76 | conf_node *thisnode; |
78 | conf_node *thisnode; |
77 | int mtu; // the mtu used for outgoing tunnel packets |
79 | int mtu; // the mtu used for outgoing tunnel packets |
78 | int rekey; // rekey interval |
80 | double rekey; // rekey interval |
79 | int keepalive; // keepalive probes interval |
81 | double keepalive; // keepalive probes interval |
80 | char *ifname; // the interface name (tap0 ...) |
82 | char *ifname; // the interface name (tap0 ...) |
81 | bool ifpersist; // should the interface be persistent |
83 | bool ifpersist; // should the interface be persistent |
82 | char *prikeyfile; |
84 | char *prikeyfile; |
83 | loglevel llevel; |
85 | loglevel llevel; |
84 | RSA *rsa_key; // our private rsa key |
86 | RSA *rsa_key; // our private rsa key |
85 | |
87 | |
86 | char *script_if_up; |
88 | char *script_if_up; |
87 | char *script_node_up; |
89 | char *script_node_up; |
88 | char *script_node_down; |
90 | char *script_node_down; |
89 | |
91 | |