… | |
… | |
17 | */ |
17 | */ |
18 | |
18 | |
19 | #ifndef VPE_CONF_H__ |
19 | #ifndef VPE_CONF_H__ |
20 | #define VPE_CONF_H__ |
20 | #define VPE_CONF_H__ |
21 | |
21 | |
22 | #include <sys/types.h> |
|
|
23 | #include <sys/socket.h> |
|
|
24 | #include <netdb.h> |
|
|
25 | |
|
|
26 | #ifdef HAVE_OPENSSL_RSA_H |
|
|
27 | # include <openssl/rsa.h> |
22 | #include <openssl/rsa.h> |
28 | #else |
|
|
29 | # include <rsa.h> |
|
|
30 | #endif |
|
|
31 | |
23 | |
32 | #include <vector> |
24 | #include <vector> |
33 | |
25 | |
34 | #include "slog.h" |
26 | #include "slog.h" |
35 | #include "global.h" |
27 | #include "global.h" |
… | |
… | |
55 | char *nodename; // nodename, an internal nickname. |
47 | char *nodename; // nodename, an internal nickname. |
56 | |
48 | |
57 | char *hostname; // hostname, if known, or NULL. |
49 | char *hostname; // hostname, if known, or NULL. |
58 | |
50 | |
59 | u8 protocols; // protocols this host can send & receive |
51 | u8 protocols; // protocols this host can send & receive |
60 | u16 udp_port; // the port to bind to |
52 | u16 udp_port, tcp_port; // the port to bind to |
61 | |
53 | |
62 | enum connectmode { C_ONDEMAND, C_NEVER, C_ALWAYS, C_DISABLED } connectmode; |
54 | enum connectmode { C_ONDEMAND, C_NEVER, C_ALWAYS, C_DISABLED } connectmode; |
63 | bool compress; |
55 | bool compress; |
64 | bool inherit_tos; // inherit TOS in packets send to this destination |
56 | bool inherit_tos; // inherit TOS in packets send to this destination |
65 | |
57 | |