Dibbler - a portable DHCPv6  1.0.2RC1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
DHCPDefaults.h
Go to the documentation of this file.
1 /*
2  * Dibbler - a portable DHCPv6
3  *
4  * authors: Tomasz Mrugalski <thomson@klub.com.pl>
5  * changes:
6  *
7  * Released under GNU GPL v2 licence
8  *
9  */
10 
11 #include <limits.h>
12 
13 #ifndef DHCPDEFAULTS_H
14 #define DHCPDEFAULTS_H
15 
16 // How long should we wait before we assume that OS detected duplicated addresses (in secs)
17 #define DADTIMEOUT ((unsigned long) 3)
18 
19 // addresses reported as DECLINED are not used for 2 hours
20 #define DECLINED_TIMEOUT ((unsigned long) 7200)
21 
22 // 1 (quiet) - 8 (debug)
23 #define DEFAULT_LOGLEVEL 7
24 
25 // DHCPv6 server default values
26 #define SERVER_DEFAULT_DOMAIN ""
27 #define SERVER_DEFAULT_TIMEZONE ""
28 #define SERVER_DEFAULT_CLNTMAXLEASE 10
29 #define SERVER_DEFAULT_CLASSMAXLEASE 1048576
30 #define SERVER_DEFAULT_IFACEMAXLEASE UINT_MAX
31 #define SERVER_DEFAULT_PREFERENCE 0
32 #define SERVER_DEFAULT_RAPIDCOMMIT false
33 #define SERVER_DEFAULT_LEASEQUERY false
34 #define SERVER_DEFAULT_DNSUPDATE_MODE DNSUPDATE_MODE_NONE
35 #define SERVER_DEFAULT_DNSUPDATE_REVDNS_ZONE_LEN 64
36 
37 #define SERVER_DEFAULT_MIN_T1 5
38 #define SERVER_DEFAULT_MAX_T1 3600 /* 1 hour */
39 #define SERVER_DEFAULT_MIN_T2 10
40 #define SERVER_DEFAULT_MAX_T2 5400 /* 1,5 hour */
41 #define SERVER_DEFAULT_MIN_PREF 7200 /* 2 hours */
42 #define SERVER_DEFAULT_MAX_PREF 86400 /* 1 day */
43 #define SERVER_DEFAULT_MIN_VALID 10800 /* 3 hours */
44 #define SERVER_DEFAULT_MAX_VALID 172800 /* 2 days */
45 #define SERVER_DEFAULT_CLASS_SHARE 100
46 #define SERVER_DEFAULT_CLASS_MAX_LEASE UINT_MAX
47 #define SERVER_DEFAULT_TA_PREF_LIFETIME 3600
48 #define SERVER_DEFAULT_TA_VALID_LIFETIME 7200
49 #define SERVER_DEFAULT_CACHE_SIZE 1048576 /* cache size, specified in bytes */
50 
51 #define SERVER_MAX_IA_RANDOM_TRIES 100
52 #define SERVER_MAX_TA_RANDOM_TRIES 100
53 #define SERVER_MAX_PD_RANDOM_TRIES 100
54 
55 // see DHCPConst.h for available enums
56 #define SERVER_DEFAULT_UNKNOWN_FQDN UNKNOWN_FQDN_REJECT
57 
58 #define CLIENT_DEFAULT_T1 UINT_MAX
59 #define CLIENT_DEFAULT_T2 UINT_MAX
60 
61 #define CLIENT_DEFAULT_UNICAST false
62 #define CLIENT_DEFAULT_RAPID_COMMIT false
63 
64 // It is now /128. See discussion in bug #222
65 #define CLIENT_DEFAULT_PREFIX_LENGTH 128
66 
67 #define CLIENT_DEFAULT_FQDN_FLAG_S true
68 
69 
70 #endif /* DHCPDEFAULTS_H */
71