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.25 by pcg, Thu Mar 3 16:54:34 2005 UTC vs.
Revision 1.27 by pcg, Fri Mar 18 01:53:05 2005 UTC

17 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
18 along with gvpe; if not, write to the Free Software 18 along with gvpe; if not, write to the Free Software
19 Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 19 Foundation, Inc. 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20*/ 20*/
21 21
22#ifndef VPE_CONF_H__ 22#ifndef GVPE_CONF_H__
23#define VPE_CONF_H__ 23#define GVPE_CONF_H__
24 24
25#include <vector> 25#include <vector>
26 26
27#include <openssl/rsa.h> 27#include <openssl/rsa.h>
28 28
31 31
32#define DEFAULT_REKEY 3600 32#define DEFAULT_REKEY 3600
33#define DEFAULT_KEEPALIVE 60 // one keepalive/minute (it's just 8 bytes...) 33#define DEFAULT_KEEPALIVE 60 // one keepalive/minute (it's just 8 bytes...)
34#define DEFAULT_UDPPORT 655 // same as tinc, conflicts would be rare 34#define DEFAULT_UDPPORT 655 // same as tinc, conflicts would be rare
35#define DEFAULT_MTU 1500 // let's ether-net 35#define DEFAULT_MTU 1500 // let's ether-net
36#define DEFAULT_MAX_RETRY 28800 // retry at least this often 36#define DEFAULT_MAX_RETRY 3600 // retry at least this often
37 37
38enum { 38enum {
39 PROT_UDPv4 = 0x01, // udp over ipv4 39 PROT_UDPv4 = 0x01, // udp over ipv4
40 PROT_IPv4 = 0x02, // generic ip protocol 40 PROT_IPv4 = 0x02, // generic ip protocol
41 PROT_TCPv4 = 0x04, // tcp over ipv4 (server) 41 PROT_TCPv4 = 0x04, // tcp over ipv4 (server)
42 PROT_ICMPv4 = 0x08, // icmp over ipv4 42 PROT_ICMPv4 = 0x08, // icmp over ipv4
43 PROT_DNSv4 = 0x10, // dns tunnel ipv4 (server) 43 PROT_DNSv4 = 0x10, // dns tunnel ipv4 (server)
44}; 44};
45
46#define PROT_RELIABLE (PROT_TCPv4 | PROT_DNSv4)
47#define PROT_SLOW PROT_DNSv4
45 48
46// select the "best" protocol of the available ones 49// select the "best" protocol of the available ones
47u8 best_protocol (u8 protset); 50u8 best_protocol (u8 protset);
48const char *strprotocol (u8 protocol); 51const char *strprotocol (u8 protocol);
49 52

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines