-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNWBACKUP.CFG
157 lines (98 loc) · 3.28 KB
/
NWBACKUP.CFG
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
/*
mTCP Ftp.cfg
Copyright (C) 2009-2011 Michael B. Brutman (mbbrutman@gmail.com)
mTCP web page: http://www.brutman.com/mTCP
This file is part of mTCP.
mTCP is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
mTCP is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with mTCP. If not, see <http://www.gnu.org/licenses/>.
Description: Configuration file for Ftp client
Changes:
2011-05-27: Initial release as open source software
*/
#ifndef CONFIG_H
#define CONFIG_H
// FTP Config.H
//
// Each application should have a configuration file like this to set
// compile-time options.
//
// Note:
// - Use only #defines here
// - All times are in milliseconds
// Global options, can be overridden locally. Use for setting tracing
// and torture testing/consistency testing.
#include "Global.Cfg"
// Major options to include/exclude
//
#define COMPILE_UDP
#define COMPILE_TCP
#define COMPILE_DNS
#define COMPILE_ICMP
// Tracing support
//
// If we didn't set it globally then make sure it is turned off locally.
#if !defined(NOTRACE)
#undef NOTRACE
// #define NOTRACE
#endif
#define PKT_DUMP_BYTES (256)
// Packet Layer defines
//
#define PACKET_BUFFERS (20) // Number of incoming buffers
#define PACKET_BUFFER_LEN (1514) // Size of each incoming buffer
// ARP configuration defines
//
#define ARP_MAX_ENTRIES (10) // Size of ARP cache
#define ARP_MAX_PENDING (5) // Max number of pending requests
#define ARP_RETRIES (3) // Total number of attempts to make
#define ARP_TIMEOUT (500ul) // Time between retries
// IP Defines
#define IP_FRAGMENTS_ON
#define IP_MAX_FRAG_PACKETS (4)
#define IP_MAX_FRAGS_PER_PACKET (10)
#define IP_BIGPACKET_SIZE (1500)
#define IP_FRAG_REASSEMBLY_TIMEOUT (4000ul)
//#define IP_SEND_UDP_FRAGS
// ICMP Defines
#ifdef COMPILE_ICMP
#define ICMP_ECHO_OPT_DATA (256)
#endif
// TCP configuration defines
//
#ifdef COMPILE_TCP
#define TCP_MAX_SOCKETS (3) // 8 bits only
#define TCP_MAX_XMIT_BUFS (20) // 8 bits only
#define TCP_SOCKET_RING_SIZE (4) // Must be power of 2
//#define TCP_RETRANS_COUNT (5)
#define TCP_CLOSE_TIMEOUT (3000ul)
#define TCP_PA_TIMEOUT (10000ul) // Pending accept timeout
#define TCP_RETRANS_TIMEOUT (4000ul)
//#define TCP_PROBE_INTERVAL (2000ul)
// Optional code
#define TCP_LISTEN_CODE
#endif
// UDP configuration defines
//
#ifdef COMPILE_UDP
#define UDP_MAX_CALLBACKS (5)
#endif
// DNS
//
#ifdef COMPILE_DNS
#define DNS_MAX_NAME_LEN (128)
#define DNS_MAX_ENTRIES (1) // 7 bits only (max 127)
#define DNS_HANDLER_PORT (57)
#define DNS_RECURSION_DESIRED (1)
#define DNS_INITIAL_SEND_TIMEOUT (500ul) // 0.5 seconds
#define DNS_RETRY_THRESHOLD (2000ul) // 2 seconds
#define DNS_TIMEOUT (10000ul) // 10 seconds
#endif
#endif