|
1586
|
1 # ==================================================================== |
|
|
2 # |
|
|
3 # ppp.cdl |
|
|
4 # |
|
|
5 # PPP configuration data |
|
|
6 # |
|
|
7 # ==================================================================== |
|
|
8 #####ECOSGPLCOPYRIGHTBEGIN#### |
|
|
9 ## ------------------------------------------- |
|
|
10 ## This file is part of eCos, the Embedded Configurable Operating System. |
|
|
11 ## Copyright (C) 2003, 2004 eCosCentric Limited |
|
|
12 ## |
|
|
13 ## eCos is free software; you can redistribute it and/or modify it under |
|
|
14 ## the terms of the GNU General Public License as published by the Free |
|
|
15 ## Software Foundation; either version 2 or (at your option) any later version. |
|
|
16 ## |
|
|
17 ## eCos is distributed in the hope that it will be useful, but WITHOUT ANY |
|
|
18 ## WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
|
19 ## FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
|
20 ## for more details. |
|
|
21 ## |
|
|
22 ## You should have received a copy of the GNU General Public License along |
|
|
23 ## with eCos; if not, write to the Free Software Foundation, Inc., |
|
|
24 ## 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. |
|
|
25 ## |
|
|
26 ## As a special exception, if other files instantiate templates or use macros |
|
|
27 ## or inline functions from this file, or you compile this file and link it |
|
|
28 ## with other works to produce a work based on this file, this file does not |
|
|
29 ## by itself cause the resulting work to be covered by the GNU General Public |
|
|
30 ## License. However the source code for this file must still be made available |
|
|
31 ## in accordance with section (3) of the GNU General Public License. |
|
|
32 ## |
|
|
33 ## This exception does not invalidate any other reasons why a work based on |
|
|
34 ## this file might be covered by the GNU General Public License. |
|
|
35 ## |
|
|
36 ## ------------------------------------------- |
|
|
37 #####ECOSGPLCOPYRIGHTEND#### |
|
|
38 # ==================================================================== |
|
|
39 ######DESCRIPTIONBEGIN#### |
|
|
40 # |
|
|
41 # Author(s): nickg |
|
|
42 # Original data: nickg |
|
|
43 # Contributors: |
|
|
44 # Date: 2002-10-15 |
|
|
45 # |
|
|
46 #####DESCRIPTIONEND#### |
|
|
47 # |
|
|
48 # ==================================================================== |
|
|
49 |
|
|
50 cdl_package CYGPKG_PPP { |
|
|
51 display "PPP daemon" |
|
|
52 parent CYGPKG_NET |
|
|
53 doc ref/net-ppp.html |
|
|
54 include_dir cyg/ppp |
|
|
55 requires CYGPKG_IO |
|
|
56 requires CYGPKG_IO_SERIAL |
|
|
57 |
|
|
58 requires CYGPKG_IO_SERIAL_DEVICES |
|
|
59 requires CYGOPT_IO_SERIAL_SUPPORT_NONBLOCKING |
|
|
60 requires CYGPKG_NET |
|
|
61 requires CYGPKG_IO_SERIAL_FLOW_CONTROL |
|
|
62 |
|
|
63 description "PPP support for eCos. This package contains the PPP |
|
|
64 daemon functionality, BSD kernel device drivers for |
|
|
65 the network stack, plus other parts of the PPP |
|
|
66 infrastructure." |
|
|
67 |
|
|
68 compile pppd.c sys-ecos.c ppp_io.c |
|
|
69 compile auth.c ccp.c fsm.c magic.c |
|
|
70 compile cbcp.c ipcp.c lcp.c |
|
|
71 |
|
|
72 compile if_ppp.c slcompress.c |
|
|
73 |
|
|
74 cdl_option CYGNUM_PPP_PPPD_THREAD_PRIORITY { |
|
|
75 display "PPP thread priority" |
|
|
76 flavor data |
|
|
77 default_value { CYGNUM_KERNEL_SCHED_PRIORITIES/2 } |
|
|
78 legal_values 0 to CYGNUM_KERNEL_SCHED_PRIORITIES |
|
|
79 description "The PPP system contains two threads, One is used for receiving |
|
|
80 data from the link and processing control packets. |
|
|
81 The other is used to transmit data asynchronously to the link |
|
|
82 when it cannot be completed synchronously. The receive thread |
|
|
83 runs at the priority given here, and the transmit thread |
|
|
84 runs at the next lower priority. |
|
|
85 The exact priority needed here depends on the importance of the |
|
|
86 PPP subsystem relative to the rest of the system. The default |
|
|
87 is to put it in the middle of the priority range to provide |
|
|
88 reasonable response without impacting genuine high |
|
|
89 priority threads." |
|
|
90 } |
|
|
91 |
|
|
92 cdl_component CYGPKG_PPP_DEBUG_WARN_ONLY { |
|
|
93 display "PPP protocol debug error only" |
|
|
94 default_value 1 |
|
|
95 description "The runtime debug option enables logging of high |
|
|
96 level debug messages. Too many of these can interfere |
|
|
97 with the PPP device and may result in missed messages. |
|
|
98 This is because these messages are emitted via the diag_printf() |
|
|
99 mechanism, which disables interrupts while it prints. |
|
|
100 By default, therefore, we only report errors and warnings, and not |
|
|
101 all events. Setting this option to zero will enable the logging of |
|
|
102 all events." |
|
|
103 } |
|
|
104 |
|
|
105 cdl_component CYGPKG_PPP_AUTH { |
|
|
106 display "PPP authentication defaults" |
|
|
107 flavor none |
|
|
108 no_define |
|
|
109 |
|
|
110 cdl_option CYGPKG_PPP_AUTH_DEFAULT_USER { |
|
|
111 display "Default user name" |
|
|
112 flavor data |
|
|
113 default_value {"\"eCos\""} |
|
|
114 description "This option gives the default value |
|
|
115 for the user name used to intialize |
|
|
116 the user field in the PPP options." |
|
|
117 } |
|
|
118 |
|
|
119 cdl_option CYGPKG_PPP_AUTH_DEFAULT_PASSWD { |
|
|
120 display "Default password" |
|
|
121 flavor data |
|
|
122 default_value {"\"secret\""} |
|
|
123 description "This option gives the default value |
|
|
124 for the password used to intialize |
|
|
125 the passwd field in the PPP options." |
|
|
126 } |
|
|
127 |
|
|
128 } |
|
|
129 |
|
|
130 cdl_option CYGPKG_PPP_DEFAULT_DIALUP_NUMBER { |
|
|
131 display "Default dialup number" |
|
|
132 flavor data |
|
|
133 default_value { "\"5551234\""} |
|
|
134 description "This option provides a default dialup number for use in |
|
|
135 chat scripts. This value is not used anywhere |
|
|
136 in the PPP package, but is provided to complete the information |
|
|
137 needed, alongside the user name and password, for accessing a |
|
|
138 typical dialup server." |
|
|
139 } |
|
|
140 |
|
|
141 cdl_component CYGPKG_PPP_PAP { |
|
|
142 display "PAP support" |
|
|
143 default_value 1 |
|
|
144 description "This component enables the inclusion of PAP authentication |
|
|
145 support." |
|
|
146 compile upap.c |
|
|
147 |
|
|
148 } |
|
|
149 |
|
|
150 cdl_component CYGPKG_PPP_CHAP { |
|
|
151 display "CHAP support" |
|
|
152 default_value 1 |
|
|
153 description "This component enables the inclusion of CHAP authentication |
|
|
154 support." |
|
|
155 |
|
|
156 compile chap.c chap_ms.c |
|
|
157 |
|
|
158 } |
|
|
159 |
|
|
160 cdl_component CYGPKG_PPP_COMPRESSION { |
|
|
161 display "PPP compression options" |
|
|
162 default_value 0 |
|
|
163 description "This component provides control over |
|
|
164 PPP compression features. WARNING: at |
|
|
165 present there are problems with this, and |
|
|
166 the compression code needs to allocate large |
|
|
167 amounts of memory. Hence this is all currently |
|
|
168 disabled." |
|
|
169 |
|
|
170 cdl_option PPP_BSDCOMP { |
|
|
171 display "Enable BSD compression" |
|
|
172 default_value 0 |
|
|
173 compile bsd_comp.c |
|
|
174 description "This option enables inclusion of BSD |
|
|
175 compression into the PPP protocol." |
|
|
176 } |
|
|
177 |
|
|
178 cdl_option PPP_DEFLATE { |
|
|
179 display "Enable ZLIB compression" |
|
|
180 default_value 0 |
|
|
181 compile ppp_deflate.c zlib.c |
|
|
182 description "This option enables inclusion of ZLIB |
|
|
183 compression into the PPP protocol." |
|
|
184 } |
|
|
185 |
|
|
186 } |
|
|
187 |
|
|
188 cdl_component CYGPKG_PPP_CHAT { |
|
|
189 display "Chat script support" |
|
|
190 default_value 1 |
|
|
191 description "This component enables the inclusion of a |
|
|
192 simple scripting system to bring up PPP connections. |
|
|
193 It implements a subset of the CHAT scripting language." |
|
|
194 |
|
|
195 compile chat.c |
|
|
196 |
|
|
197 cdl_option CYGNUM_PPP_CHAT_ABORTS_MAX { |
|
|
198 display "Maximum number of ABORT strings" |
|
|
199 flavor data |
|
|
200 default_value 10 |
|
|
201 legal_values 5 to 500 |
|
|
202 description "This option defines the maximum number of ABORT |
|
|
203 strings that the CHAT system will store." |
|
|
204 } |
|
|
205 |
|
|
206 cdl_option CYGNUM_PPP_CHAT_ABORTS_SIZE { |
|
|
207 display "Maximum size of each ABORT string" |
|
|
208 flavor data |
|
|
209 default_value 20 |
|
|
210 legal_values 10 to 100 |
|
|
211 description "This option defines the maximum size of each ABORT |
|
|
212 strings that the CHAT system will store." |
|
|
213 } |
|
|
214 |
|
|
215 cdl_option CYGNUM_PPP_CHAT_STRING_LENGTH { |
|
|
216 display "Maximum size of CHAT strings" |
|
|
217 flavor data |
|
|
218 default_value 256 |
|
|
219 legal_values 32 to 32768 |
|
|
220 description "This option defines the maximum size of any |
|
|
221 expect or reply strings that the CHAT system |
|
|
222 will be given." |
|
|
223 } |
|
|
224 |
|
|
225 } |
|
|
226 |
|
|
227 |
|
|
228 cdl_component CYGPKG_PPP_OPTIONS { |
|
|
229 display "PPP build options" |
|
|
230 flavor none |
|
|
231 no_define |
|
|
232 |
|
|
233 cdl_option CYGPKG_PPP_CFLAGS_ADD { |
|
|
234 display "Additional compiler flags" |
|
|
235 flavor data |
|
|
236 no_define |
|
|
237 default_value { "-D__ECOS" } |
|
|
238 description " |
|
|
239 This option modifies the set of compiler flags for |
|
|
240 building the PPP package. |
|
|
241 These flags are used in addition |
|
|
242 to the set of global flags." |
|
|
243 } |
|
|
244 |
|
|
245 cdl_option CYGPKG_PPP_CFLAGS_REMOVE { |
|
|
246 display "Suppressed compiler flags" |
|
|
247 flavor data |
|
|
248 no_define |
|
|
249 default_value { "" } |
|
|
250 description " |
|
|
251 This option modifies the set of compiler flags for |
|
|
252 building the PPP package. These flags are removed from |
|
|
253 the set of global flags if present." |
|
|
254 } |
|
|
255 } |
|
|
256 |
|
|
257 cdl_option CYGPKG_PPP_TESTS { |
|
|
258 display "PPP tests" |
|
|
259 flavor data |
|
|
260 no_define |
|
|
261 calculated { "tests/ppp_up " . |
|
|
262 "tests/ppp_updown " . |
|
|
263 "tests/chat " . |
|
|
264 "tests/ppp_auth " . |
|
|
265 ((CYGPKG_PPP_TESTS_ALL) ? |
|
|
266 "tests/isp " . |
|
|
267 "tests/tcp_echo " . |
|
|
268 "tests/nc_test_slave " |
|
|
269 : |
|
|
270 "" ) |
|
|
271 } |
|
|
272 description " |
|
|
273 This option specifies the set of tests |
|
|
274 for the PPP package." |
|
|
275 } |
|
|
276 |
|
|
277 cdl_option CYGPKG_PPP_TESTS_ALL { |
|
|
278 display "Include all PPP tests" |
|
|
279 default_value 0 |
|
|
280 description "This option enables the inclusion of extra PPP tests |
|
|
281 that are not normally suitable for automated testing." |
|
|
282 } |
|
|
283 |
|
|
284 cdl_option CYGPKG_PPP_TEST_DEVICE { |
|
|
285 display "PPP test device" |
|
|
286 flavor data |
|
|
287 default_value { "\"/dev/ser0\"" } |
|
|
288 description "This is the name of the device used by the PPP tests |
|
|
289 to make the PPP connection." |
|
|
290 } |
|
|
291 |
|
|
292 cdl_component CYGPKG_PPP_TESTS_AUTOMATE { |
|
|
293 display "PPP test automation" |
|
|
294 default_value 1 |
|
|
295 description "This component controls the automation of PPP tests using the |
|
|
296 test_server.sh script to control the remote end. Without this |
|
|
297 option, PPP tests are configured to run stand-alone. With this |
|
|
298 option they emit control strings to change the line baud rate |
|
|
299 and announce the test being performed." |
|
|
300 |
|
|
301 cdl_option CYGDAT_PPP_TEST_BAUD_RATES { |
|
|
302 display "PPP test automation baud rates" |
|
|
303 flavor data |
|
|
304 default_value { "CYGNUM_SERIAL_BAUD_19200," . |
|
|
305 "CYGNUM_SERIAL_BAUD_38400," . |
|
|
306 "CYGNUM_SERIAL_BAUD_57600," . |
|
|
307 "CYGNUM_SERIAL_BAUD_115200" |
|
|
308 } |
|
|
309 description "This option gives the set of baud rates for which some |
|
|
310 tests will execute." |
|
|
311 } |
|
|
312 } |
|
|
313 } |
|
|
314 |
|
|
315 # EOF ppp.cdl |